Makefile 1.8 KB

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