Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= libcap
  5. PKG_VERSION:= 2.44
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 92188359cd5be86e8e5bd3f6483ac6ce582264f912398937ef763def2205c8e1
  8. PKG_DESCR:= capabilities library
  9. PKG_SECTION:= libs/misc
  10. PKG_URL:= http://www.friedhoff.org/posixfilecaps.html
  11. PKG_SITES:= https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
  12. PKG_OPTS:= dev
  13. include $(ADK_TOPDIR)/mk/host.mk
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call HOST_template,LIBCAP,libcap,$(PKG_VERSION)-$(PKG_RELEASE)))
  16. $(eval $(call PKG_template,LIBCAP,libcap,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  17. ifeq ($(OS_FOR_BUILD),Darwin)
  18. HOST_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include
  19. endif
  20. HOST_STYLE:= manual
  21. CONFIG_STYLE:= manual
  22. host-build:
  23. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  24. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
  25. libcap-hostinstall:
  26. cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  27. ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
  28. libcap-install:
  29. $(INSTALL_DIR) $(IDIR_LIBCAP)/usr/lib
  30. $(CP) $(WRKINST)/usr/lib/libcap*.so* \
  31. $(IDIR_LIBCAP)/usr/lib
  32. include $(ADK_TOPDIR)/mk/host-bottom.mk
  33. include $(ADK_TOPDIR)/mk/pkg-bottom.mk