diff options
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libcap/libcap.inc | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc index 08f4cfedde..a21420fd9b 100644 --- a/meta/recipes-support/libcap/libcap.inc +++ b/meta/recipes-support/libcap/libcap.inc | |||
@@ -5,10 +5,7 @@ HOMEPAGE = "http://sites.google.com/site/fullycapable/" | |||
5 | LICENSE = "BSD | GPLv2" | 5 | LICENSE = "BSD | GPLv2" |
6 | LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1" | 6 | LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1" |
7 | 7 | ||
8 | DEPENDS = "attr perl-native-runtime" | 8 | DEPENDS = "perl-native-runtime" |
9 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
10 | # attr and pam are disabled by EXTRA_OEMAKE_class-native | ||
11 | DEPENDS_class-native = "perl-native-runtime" | ||
12 | 9 | ||
13 | SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz \ | 10 | SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz \ |
14 | file://fix-CAP_LAST_CAP.patch" | 11 | file://fix-CAP_LAST_CAP.patch" |
@@ -29,25 +26,30 @@ do_configure() { | |||
29 | sed -e '/shell gperf/cifeq (,yes)' -i libcap/Makefile | 26 | sed -e '/shell gperf/cifeq (,yes)' -i libcap/Makefile |
30 | } | 27 | } |
31 | 28 | ||
32 | EXTRA_OEMAKE = " \ | 29 | PACKAGECONFIG ??= "attr ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
33 | LIBATTR=yes \ | 30 | PACKAGECONFIG_class-native ??= "" |
34 | PAM_CAP=${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \ | 31 | |
35 | INDENT= SYSTEM_HEADERS=${STAGING_INCDIR} RAISE_SETFCAP=no \ | 32 | PACKAGECONFIG[attr] = "LIBATTR=yes,LIBATTR=no,attr" |
36 | lib=${@os.path.basename('${libdir}')} \ | 33 | PACKAGECONFIG[pam] = "PAM_CAP=yes,PAM_CAP=no,libpam" |
37 | " | 34 | |
38 | EXTRA_OEMAKE_class-native = " \ | 35 | EXTRA_OEMAKE += " \ |
39 | LIBATTR=no \ | 36 | INDENT= \ |
40 | PAM_CAP=no \ | ||
41 | INDENT= \ | ||
42 | lib=${@os.path.basename('${libdir}')} \ | 37 | lib=${@os.path.basename('${libdir}')} \ |
38 | RAISE_SETFCAP=no \ | ||
43 | " | 39 | " |
44 | 40 | ||
41 | EXTRA_OEMAKE_append_class-target = " SYSTEM_HEADERS=${STAGING_INCDIR}" | ||
42 | |||
45 | do_compile() { | 43 | do_compile() { |
46 | oe_runmake | 44 | oe_runmake ${EXTRA_OECONF} |
47 | } | 45 | } |
48 | 46 | ||
49 | do_install() { | 47 | do_install() { |
50 | oe_runmake install DESTDIR="${D}" prefix="${prefix}" SBINDIR="${D}${sbindir}" | 48 | oe_runmake install \ |
49 | ${EXTRA_OECONF} \ | ||
50 | DESTDIR="${D}" \ | ||
51 | prefix="${prefix}" \ | ||
52 | SBINDIR="${D}${sbindir}" | ||
51 | } | 53 | } |
52 | 54 | ||
53 | do_install_append() { | 55 | do_install_append() { |