libgpg-error: fix riscv64
[openadk.git] / package / libcap / Makefile
blob29c417237c2eb2d67aaadba419c581e935ee4907
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.59
8 PKG_RELEASE:= 1
9 PKG_HASH:= 49f64ae40b113e53cbc161e22af7094e3bb4a0611fa33ef5a4257b011779f034
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
28 MAKE_ENV+= BUILD_CC="${HOST_CC}"
29 ifeq ($(ADK_PACKAGE_PAM),)
30 MAKE_ENV+= PAM_CAP=no
31 endif
33 host-build:
34 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
35 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
37 libcap-hostinstall:
38 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
39 ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
41 libcap-install:
42 $(INSTALL_DIR) $(IDIR_LIBCAP)/usr/lib
43 $(CP) $(WRKINST)/usr/lib/libcap*.so* \
44 $(IDIR_LIBCAP)/usr/lib
46 include $(ADK_TOPDIR)/mk/host-bottom.mk
47 include $(ADK_TOPDIR)/mk/pkg-bottom.mk