123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= gpsd
- PKG_VERSION:= 2.39
- PKG_RELEASE:= 1
- PKG_MD5SUM:= 3db437196a6840c252fca99b6c19d4d0
- PKG_DESCR:= An interface daemon for GPS receivers
- PKG_SECTION:= net
- PKG_DEPENDS:= libpthread
- PKG_SITES:= http://download.berlios.de/gpsd/
- 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}))
- CONFIGURE_STYLE:= gnu
- CONFIGURE_ENV+= EGREP="grep -E" \
- CPP="$(TARGET_CC) -E" \
- ac_cv_func_strlcpy=no \
- ac_cv_func_strlcat=no \
- ac_cv_lib_nsl_gethostbyname=no
- # --disable-python breaks configure script
- CONFIGURE_ARGS+= --without-x \
- --disable-dbus
- BUILD_STYLE= auto
- INSTALL_STYLE= auto
- 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
- 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
- ${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
- ${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
- ${CP} ${WRKINST}/usr/bin/{cgps,gpxlogger} \
- ${IDIR_GPSD_CLIENTS}/usr/bin
- include ${TOPDIR}/mk/pkg-bottom.mk
|