summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/attr/ea-acl.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/attr/ea-acl.inc')
-rw-r--r--meta/recipes-support/attr/ea-acl.inc52
1 files changed, 0 insertions, 52 deletions
diff --git a/meta/recipes-support/attr/ea-acl.inc b/meta/recipes-support/attr/ea-acl.inc
deleted file mode 100644
index 9336ffc938..0000000000
--- a/meta/recipes-support/attr/ea-acl.inc
+++ /dev/null
@@ -1,52 +0,0 @@
1# this build system is mostly shared by attr and acl
2
3SRC_URI += "file://relative-libdir.patch;striplevel=0 \
4 "
5# This patch should be applied after '(attr\|acl)-Missing-configure.ac.patch'
6SRC_URI_append = " file://0001-Added-configure-option-to-enable-disable-static-libr.patch"
7
8inherit autotools-brokensep gettext
9
10# When upstream is using automake properly, this can be removed
11CLEANBROKEN = "1"
12
13# the package comes with a custom config.h.in, it cannot be
14# overwritten by autoheader
15EXTRA_AUTORECONF += "--exclude=autoheader"
16EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
17EXTRA_OECONF_append_class-native = " --enable-gettext=no"
18EXTRA_OECONF_append_class-target = "${@['', ' --disable-gettext '][(d.getVar('USE_NLS') == 'no')]}"
19
20EXTRA_OEMAKE = "PKG_LIB_DIR=${base_libdir} PKG_DEVLIB_DIR=${libdir}"
21
22do_install () {
23 oe_runmake install install-lib install-dev DIST_ROOT="${D}" ZIP="gzip -n"
24}
25
26do_install_append_class-native () {
27 if test "${libdir}" = "${base_libdir}" ; then
28 return
29 fi
30 librelpath=${@os.path.relpath(d.getVar('libdir'), d.getVar('base_libdir'))}
31 baselibrelpath=${@os.path.relpath(d.getVar('base_libdir'), d.getVar('libdir'))}
32
33 # Remove bad symlinks & create the correct symlinks
34 if test -L ${D}${libdir}/lib${BPN}.so ; then
35 rm -rf ${D}${libdir}/lib${BPN}.so
36 ln -sf $baselibrelpath/lib${BPN}.so ${D}${libdir}/lib${BPN}.so
37 fi
38 if test -L ${D}${base_libdir}/lib${BPN}.a ; then
39 rm -rf ${D}${base_libdir}/lib${BPN}.a
40 ln -sf $librelpath/lib${BPN}.a ${D}${base_libdir}/lib${BPN}.a
41 fi
42 if test -L ${D}${base_libdir}/lib${BPN}.la ; then
43 rm -rf ${D}${base_libdir}/lib${BPN}.la
44 ln -sf $librelpath/lib${BPN}.la ${D}${base_libdir}/lib${BPN}.la
45 fi
46}
47
48PACKAGES =+ "lib${BPN}"
49
50FILES_lib${BPN} = "${base_libdir}/lib*${SOLIBS}"
51
52BBCLASSEXTEND = "native"