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
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
/
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
28 MAKE_ENV
+= BUILD_CC
="${HOST_CC}"
29 ifeq ($(ADK_PACKAGE_PAM
),)
34 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
35 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE
)
38 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
39 ${HOST_FAKE_FLAGS} DESTDIR
='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE
)
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