Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= sysfsutils
  5. PKG_VERSION:= 2.1.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 14e7dcd0436d2f49aa403f67e1ef7ddc
  8. PKG_DESCR:= utilites built upon sysfs
  9. PKG_SECTION:= utils
  10. PKG_URL:= http://linux-diag.sourceforge.net/Sysfsutils.html
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=linux-diag/sysfsutils/2.1.0/}
  12. PKG_SUBPKGS:= SYSFSUTILS SYSFSUTILS_DEV
  13. PKGSC_SYSFSUTILS_DEV:= devel
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,SYSFSUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,SYSFSUTILS_DEV,sysfsutils-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_SYSFSUTILS_DEV}))
  17. post-install:
  18. $(INSTALL_DIR) $(IDIR_SYSFSUTILS)/usr/bin
  19. $(INSTALL_DIR) $(IDIR_SYSFSUTILS)/usr/lib
  20. $(CP) $(WRKINST)/usr/lib/libsysfs.so* \
  21. $(IDIR_SYSFSUTILS)/usr/lib
  22. $(INSTALL_BIN) $(WRKINST)/usr/bin/systool \
  23. $(IDIR_SYSFSUTILS)/usr/bin
  24. sysfsutils-dev-install:
  25. $(INSTALL_DIR) $(IDIR_SYSFSUTILS_DEV)/usr/include
  26. $(CP) $(WRKINST)/usr/include/* \
  27. $(IDIR_SYSFSUTILS_DEV)/usr/include
  28. include ${TOPDIR}/mk/pkg-bottom.mk