2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://download.berlios.de
/gpsd
/
16 PKG_MD5SUM
:=a23c728b8734c542d559c485857238d2
18 PKG_FIXUP
:=libtool-ucxx
21 PKG_BUILD_DEPENDS
:=libncurses
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+libpthread
+uclibcxx
29 TITLE
:=An interface daemon for GPS receivers
30 URL
:=http
://gpsd.berlios.de
/
47 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
48 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
49 LDFLAGS
="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib" \
50 LIBS
="-nodefaultlibs -luClibc++ -lm $(LIBGCC_S)" \
51 CC
="$(TARGET_CC)" CXX
="$(TARGET_CXX)" \
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gps.h
$(1)/usr
/include/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps.
{a
,so
*} $(1)/usr
/lib
/
60 define Package
/gpsd
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps.so.
* $(1)/usr
/lib
/
63 $(INSTALL_DIR
) $(1)/usr
/sbin
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/gpsd
$(1)/usr
/sbin
/
67 $(eval
$(call BuildPackage
,gpsd
))