1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= 3.10
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= fc5b03aae38b9b5b6880b31924d0ace3
  8. PKG_DESCR:= An interface daemon for GPS receivers
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP:= scons-host ncurses
  12. PKG_URL:= http://catb.org/gpsd/
  13. PKG_SITES:= http://download-mirror.savannah.gnu.org/releases/gpsd/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= GPSD GPSD_CLIENTS
  16. PKGSD_GPSD_CLIENTS:= GPS client utilities
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,GPSD,gpsd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_GPSD_CLIENTS},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. do-install:
  24. (cd $(WRKBUILD); env PATH='$(TARGET_PATH)' CCFLAGS='' \
  25. scons install prefix=$(WRKINST)/usr platform=linux python=no chrpath=no bluez=no usb=no libgpsmm=no)
  26. gpsd-install:
  27. ${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
  28. ${CP} ${WRKINST}/usr/lib/libgps.so* ${IDIR_GPSD}/usr/lib
  29. ${CP} ${WRKINST}/usr/lib/libgpsd.so* ${IDIR_GPSD}/usr/lib
  30. ${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
  31. gpsd-clients-install:
  32. ${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
  33. ${CP} ${WRKINST}/usr/bin/{cgps,gpxlogger} \
  34. ${IDIR_GPSD_CLIENTS}/usr/bin
  35. include ${TOPDIR}/mk/pkg-bottom.mk