Makefile 1.8 KB

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