binutils: fix default
[openadk.git] / package / libcap / Makefile
blobffceb83afeff63a08fe8607051e3322bbb0a713b
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= libcap
7 PKG_VERSION:= 2.25
8 PKG_RELEASE:= 2
9 PKG_HASH:= 693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162
10 PKG_DESCR:= capabilities library
11 PKG_SECTION:= libs/misc
12 PKG_URL:= http://www.friedhoff.org/posixfilecaps.html
13 PKG_SITES:= https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
14 PKG_OPTS:= dev
16 include $(ADK_TOPDIR)/mk/host.mk
17 include $(ADK_TOPDIR)/mk/package.mk
19 $(eval $(call HOST_template,LIBCAP,libcap,$(PKG_VERSION)-$(PKG_RELEASE)))
20 $(eval $(call PKG_template,LIBCAP,libcap,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
22 ifeq ($(OS_FOR_BUILD),Darwin)
23 HOST_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include
24 endif
26 HOST_STYLE:= manual
27 CONFIG_STYLE:= manual
29 host-build:
30 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
31 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
33 libcap-hostinstall:
34 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
35 ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
37 libcap-install:
38 $(INSTALL_DIR) $(IDIR_LIBCAP)/usr/lib
39 $(CP) $(WRKINST)/usr/lib/libcap*.so* \
40 $(IDIR_LIBCAP)/usr/lib
42 include $(ADK_TOPDIR)/mk/host-bottom.mk
43 include $(ADK_TOPDIR)/mk/pkg-bottom.mk