1
0

Makefile 1.4 KB

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