Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= gpsd
  5. PKG_VERSION:= 3.10
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320
  8. PKG_DESCR:= interface daemon for gps receivers
  9. PKG_SECTION:= sys/hw
  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 ${ADK_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. TARGET_CPPFLAGS:=
  21. CONFIG_STYLE:= manual
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. do-install:
  25. (cd $(WRKBUILD); env PATH='$(TARGET_PATH)' CCFLAGS='' DESTDIR='$(WRKINST)' \
  26. scons install prefix=/usr platform=linux python=no chrpath=no bluez=no usb=no libgpsmm=no)
  27. gpsd-install:
  28. ${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
  29. ${CP} ${WRKINST}/usr/lib/libgps.so* ${IDIR_GPSD}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libgpsd.so* ${IDIR_GPSD}/usr/lib
  31. ${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
  32. gpsd-clients-install:
  33. ${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
  34. ${CP} ${WRKINST}/usr/bin/{cgps,gpxlogger} \
  35. ${IDIR_GPSD_CLIENTS}/usr/bin
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk