Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= libhugetlbfs
  5. PKG_VERSION:= 2.11
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 35e68f16b704f2e339622a8ca07fdee0
  8. PKG_DESCR:= easy hugepage access
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://libhugetlbfs.ozlabs.org/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libhugetlbfs/}
  12. PKG_CFLINE_LIBHUGETLBFS:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
  13. PKG_ARCH_DEPENDS:= x86 x86_64 arm
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,LIBHUGETLBFS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. XAKE_FLAGS+= PREFIX=/usr DESTDIR=${WRKINST} ADK_ARCH=${CPU_ARCH}
  18. ALL_TARGET:= libs tools
  19. post-install:
  20. $(INSTALL_DIR) $(IDIR_LIBHUGETLBFS)/usr/{bin,lib,share/libhugetlbfs/ldscripts}
  21. $(INSTALL_BIN) $(WRKINST)/usr/bin/{cpupcstat,huge{adm,ctl,edit},pagesize} \
  22. $(IDIR_LIBHUGETLBFS)/usr/bin
  23. ${INSTALL_DATA} ${WRKINST}/usr/lib/libhugetlbfs* \
  24. ${IDIR_LIBHUGETLBFS}/usr/lib
  25. ${INSTALL_BIN} ${WRKINST}/usr/share/libhugetlbfs/ld.hugetlbfs \
  26. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  27. ${INSTALL_DATA} ${WRKINST}/usr/share/libhugetlbfs/ldscripts/* \
  28. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs/ldscripts
  29. ${CP} ${WRKINST}/usr/share/libhugetlbfs/ld \
  30. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  31. include ${TOPDIR}/mk/pkg-bottom.mk