Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.92
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 50b60d9f6dd51e001f4dfbaeb825c988
  8. PKG_DESCR:= An interface daemon for GPS receivers
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP+= ncurses
  12. PKG_CXX:= GPSD
  13. PKG_SITES:= http://download.berlios.de/gpsd/
  14. PKG_URL:= http://gpsd.berlios.de/
  15. PKG_DESCR_1:= GPS client utilities
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,GPSD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  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. CONFIGURE_ARGS+= --without-x \
  25. --disable-dbus
  26. TCFLAGS+= -fPIC
  27. ifeq ($(ADK_COMPILE_GPSD_WITH_UCLIBCXX),y)
  28. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \
  29. -I${STAGING_DIR}/usr/include/uClibc++
  30. TLDFLAGS+= -luClibc++ -lc -lm -pthread -nodefaultlibs
  31. else
  32. TLDFLAGS+= -shared -pthread
  33. endif
  34. post-extract:
  35. @find ${WRKBUILD} -name *.rej -exec rm {} \;
  36. ifeq (${ADK_COMPILE_GPSD_WITH_UCLIBCXX},y)
  37. # add workaround because libtool tries to link libstdc++
  38. post-configure:
  39. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  40. ${WRKBUILD}/libtool
  41. endif
  42. post-install:
  43. ${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
  44. ${CP} ${WRKINST}/usr/lib/libgps.so.* ${IDIR_GPSD}/usr/lib
  45. ${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
  46. ${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
  47. ${CP} ${WRKINST}/usr/bin/{cgps,gpxlogger} \
  48. ${IDIR_GPSD_CLIENTS}/usr/bin
  49. include ${TOPDIR}/mk/pkg-bottom.mk