1
0

Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= gpsd
  5. PKG_VERSION:= 2.39
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3db437196a6840c252fca99b6c19d4d0
  8. PKG_DESCR:= An interface daemon for GPS receivers
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libpthread
  11. PKG_SITES:= http://download.berlios.de/gpsd/
  12. PKG_DESCR_1:= GPS client utilities
  13. include ${TOPDIR}/mk/package.mk
  14. ifeq ($(ADK_COMPILE_GPSD_WITH_UCLIBCXX),y)
  15. PKG_DEPENDS+= uclibc++
  16. else
  17. PKG_DEPENDS+= libstdcxx
  18. endif
  19. $(eval $(call PKG_template,GPSD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  21. CONFIGURE_STYLE:= gnu
  22. CONFIGURE_ENV+= EGREP="grep -E" \
  23. CPP="$(TARGET_CC) -E" \
  24. ac_cv_func_strlcpy=no \
  25. ac_cv_func_strlcat=no \
  26. ac_cv_lib_nsl_gethostbyname=no
  27. # --disable-python breaks configure script
  28. CONFIGURE_ARGS+= --without-x \
  29. --disable-dbus
  30. BUILD_STYLE= auto
  31. INSTALL_STYLE= auto
  32. ifeq ($(ADK_COMPILE_GPSD_WITH_UCLIBCXX),y)
  33. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \
  34. -I${STAGING_DIR}/usr/include/uClibc++
  35. TLDFLAGS+= -luClibc++ -lc -lm -nodefaultlibs
  36. else
  37. TLDFLAGS+= -shared
  38. endif
  39. post-extract:
  40. @find ${WRKBUILD} -name *.rej -delete
  41. ifeq (${ADK_COMPILE_GPSD_WITH_UCLIBCXX},y)
  42. # add workaround because libtool tries to link libstdc++
  43. post-configure:
  44. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  45. ${WRKBUILD}/libtool
  46. endif
  47. post-install:
  48. ${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
  49. ${CP} ${WRKINST}/usr/lib/libgps.so.* ${IDIR_GPSD}/usr/lib
  50. ${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
  51. ${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
  52. ${CP} ${WRKINST}/usr/bin/{cgps,gpxlogger} \
  53. ${IDIR_GPSD_CLIENTS}/usr/bin
  54. include ${TOPDIR}/mk/pkg-bottom.mk