summaryrefslogtreecommitdiff
path: root/package/gpsd/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
commit6d7a7f4776711758cf5b59028378f01cd8eba493 (patch)
tree67cc0ff4f56a0d7e1deff1d0a39867d486c86a9b /package/gpsd/Makefile
parent18b38b0eb68cbcb8793efe989dcd8796a60288af (diff)
FreeBSD compatibility patches
- update ipset and libpri to latest upstream
Diffstat (limited to 'package/gpsd/Makefile')
-rw-r--r--package/gpsd/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/package/gpsd/Makefile b/package/gpsd/Makefile
index 61555098e..ced495739 100644
--- a/package/gpsd/Makefile
+++ b/package/gpsd/Makefile
@@ -16,6 +16,12 @@ PKG_DESCR_1:= GPS client utilities
include ${TOPDIR}/mk/package.mk
+ifeq ($(ADK_COMPILE_GPSD_WITH_UCLIBCXX),y)
+PKG_DEPENDS+= uclibc++
+else
+PKG_DEPENDS+= libstdcxx
+endif
+
$(eval $(call PKG_template,GPSD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
@@ -31,8 +37,9 @@ CONFIGURE_ARGS+= --without-x \
BUILD_STYLE= auto
INSTALL_STYLE= auto
-ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
-TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
+ifeq ($(ADK_COMPILE_GPSD_WITH_UCLIBCXX),y)
+TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \
+ -I${STAGING_DIR}/usr/include/uClibc++
TLDFLAGS+= -luClibc++ -lc -lm -nodefaultlibs
else
TLDFLAGS+= -shared
@@ -41,6 +48,13 @@ endif
post-extract:
@find ${WRKBUILD} -name *.rej -delete
+ifeq (${ADK_COMPILE_GPSD_WITH_UCLIBCXX},y)
+# add workaround because libtool tries to link libstdc++
+post-configure:
+ ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
+ ${WRKBUILD}/libtool
+endif
+
post-install:
${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
${CP} ${WRKINST}/usr/lib/libgps.so.* ${IDIR_GPSD}/usr/lib