summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2006-12-10 22:45:41 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2006-12-10 22:45:41 +0000
commit6883f65588c6aa7e9780ff7c11b15a397382a422 (patch)
tree9f160e3e7a4d1bc869dd92671eca13d18c3f6c26 /packages
parente38c46cff172df7934471ee397aa9b92729259c7 (diff)
libcap: Append include directory to CFLAGS. Reenables compilation and fixes 1628.
Seizing the opportunity to remove some cruft and beautify the bb. RP approved.
Diffstat (limited to 'packages')
-rw-r--r--packages/libcap/libcap_1.10.bb21
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/libcap/libcap_1.10.bb b/packages/libcap/libcap_1.10.bb
index 7e3b89ae82..0526f63bb0 100644
--- a/packages/libcap/libcap_1.10.bb
+++ b/packages/libcap/libcap_1.10.bb
@@ -4,17 +4,15 @@ SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "bison-native flex-native"
-SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \
+CFLAGS_append = " -I${S}/libcap/include"
+
+SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${PN}-${PV}.tar.bz2 \
file://makenames.patch;patch=1 \
file://make.patch;patch=1 "
-S = "${WORKDIR}/libcap-${PV}"
-
-do_stage() {
- install -d ${STAGING_INCDIR}/sys
- install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
- oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
-}
+FILES_${PN} = "${libdir}"
+FILES_${PN}-dev = "${includedir}"
+#S = "${WORKDIR}/libcap-${PV}"
do_install() {
install -d ${D}${includedir}/sys
@@ -23,5 +21,8 @@ do_install() {
oe_libinstall -s -C libcap libcap ${D}${libdir}
}
-FILES_${PN} = "${libdir}"
-FILES_${PN}-dev = "${includedir}"
+do_stage() {
+ install -d ${STAGING_INCDIR}/sys
+ install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
+ oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
+}