Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:= libhugetlbfs
  5. PKG_VERSION:= 2.11
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= e02a612eb64386d16270ad4f8ea0196f941f35eba3f651683564d149195ad0bb
  8. PKG_DESCR:= easy hugepage access
  9. PKG_SECTION:= libs/misc
  10. PKG_URL:= http://libhugetlbfs.ozlabs.org/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libhugetlbfs/}
  12. PKG_OPTS:= dev
  13. PKG_LIBC_DEPENDS:= glibc musl
  14. PKG_ARCH_DEPENDS:= x86 x86_64
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBHUGETLBFS,libhugetlbfs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. CONFIG_STYLE:= manual
  19. XAKE_FLAGS+= PREFIX=/usr DESTDIR=${WRKINST} ADK_ARCH=${ADK_TARGET_CPU_ARCH}
  20. ALL_TARGET:= libs tools
  21. libhugetlbfs-install:
  22. $(INSTALL_DIR) $(IDIR_LIBHUGETLBFS)/usr/{bin,lib,share/libhugetlbfs/ldscripts}
  23. $(INSTALL_BIN) $(WRKINST)/usr/bin/{cpupcstat,huge{adm,ctl,edit},pagesize} \
  24. $(IDIR_LIBHUGETLBFS)/usr/bin
  25. ${INSTALL_DATA} ${WRKINST}/usr/lib/libhugetlbfs* \
  26. ${IDIR_LIBHUGETLBFS}/usr/lib
  27. ${INSTALL_BIN} ${WRKINST}/usr/share/libhugetlbfs/ld.hugetlbfs \
  28. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  29. ${INSTALL_DATA} ${WRKINST}/usr/share/libhugetlbfs/ldscripts/* \
  30. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs/ldscripts
  31. ${CP} ${WRKINST}/usr/share/libhugetlbfs/ld \
  32. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk