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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= libhugetlbfs
  5. PKG_VERSION:= 2.11
  6. PKG_RELEASE:= 2
  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_OPTS:= dev
  13. PKG_LIBC_DEPENDS:= eglibc glibc musl
  14. PKG_ARCH_DEPENDS:= x86 x86_64
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBHUGETLBFS,libhugetlbfs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. CONFIG_STYLE:= manual
  18. XAKE_FLAGS+= PREFIX=/usr DESTDIR=${WRKINST} ADK_ARCH=${CPU_ARCH}
  19. ALL_TARGET:= libs tools
  20. libhugetlbfs-install:
  21. $(INSTALL_DIR) $(IDIR_LIBHUGETLBFS)/usr/{bin,lib,share/libhugetlbfs/ldscripts}
  22. $(INSTALL_BIN) $(WRKINST)/usr/bin/{cpupcstat,huge{adm,ctl,edit},pagesize} \
  23. $(IDIR_LIBHUGETLBFS)/usr/bin
  24. ${INSTALL_DATA} ${WRKINST}/usr/lib/libhugetlbfs* \
  25. ${IDIR_LIBHUGETLBFS}/usr/lib
  26. ${INSTALL_BIN} ${WRKINST}/usr/share/libhugetlbfs/ld.hugetlbfs \
  27. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  28. ${INSTALL_DATA} ${WRKINST}/usr/share/libhugetlbfs/ldscripts/* \
  29. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs/ldscripts
  30. ${CP} ${WRKINST}/usr/share/libhugetlbfs/ld \
  31. ${IDIR_LIBHUGETLBFS}/usr/share/libhugetlbfs
  32. include ${TOPDIR}/mk/pkg-bottom.mk