Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= wiringPi
  5. PKG_VERSION:= 0a9fdeb29d31609ef834f050bdb8a7a65cd35e2b
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= gpio access library for the raspberry pi
  8. PKG_SECTION:= libs/misc
  9. PKG_HASH:= ddc71b86f71e7e5104a89f88a68bea20122b6ea9f8c535219d180bf89502a69d
  10. PKG_URL:= http://wiringpi.com/
  11. PKG_SITES:= git://git.drogon.net/wiringPi
  12. PKG_SYSTEM_DEPENDS:= raspberry-pi
  13. include $(ADK_TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,WIRINGPI,wiringPi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. TARGET_CPPFLAGS+= -I../wiringPi
  19. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  20. do-build:
  21. (cd $(WRKBUILD); $(MAKE) -C wiringPi)
  22. (cd $(WRKBUILD); $(MAKE) -C devLib)
  23. wiringPi-install:
  24. $(INSTALL_DIR) $(IDIR_WIRINGPI)/usr/lib
  25. $(CP) $(WRKBUILD)/wiringPi/libwiringPi.so* $(IDIR_WIRINGPI)/usr/lib
  26. $(CP) $(WRKBUILD)/devLib/libwiringPiDev.so* $(IDIR_WIRINGPI)/usr/lib
  27. (cd $(IDIR_WIRINGPI)/usr/lib; ln -sf libwiringPi.so.2.0 libwiringPi.so)
  28. (cd $(IDIR_WIRINGPI)/usr/lib; ln -sf libwiringPiDev.so.2.0 libwiringPiDev.so)
  29. $(CP) $(WRKBUILD)/wiringPi/*.h $(STAGING_TARGET_DIR)/usr/include
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk