From 680f8bf8ae8a850327d68fb24c7ee0c8631d2e45 Mon Sep 17 00:00:00 2001 From: Qing He Date: Thu, 29 Jul 2010 18:34:42 +0800 Subject: attr: various improvements changes: - separate the build system to ea-acl.inc, it is also used by upcoming acl (ea stands for extended attributes) - the .so.* is moved to /lib, so it can be used by packages like udev - change absolute symbolic links to relative path, code inspired by udev - manual fix to .la Signed-off-by: Qing He --- meta/packages/attr/ea-acl.inc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta/packages/attr/ea-acl.inc (limited to 'meta/packages/attr/ea-acl.inc') diff --git a/meta/packages/attr/ea-acl.inc b/meta/packages/attr/ea-acl.inc new file mode 100644 index 000000000..77fa2b4fd --- /dev/null +++ b/meta/packages/attr/ea-acl.inc @@ -0,0 +1,35 @@ +# this build system is mostly shared by attr and acl + +DEPENDS =+ "gettext" + +SRC_URI += "file://relative-libdir.patch;striplevel=0" + +inherit autotools + +# the package comes with a custom config.h.in, it cannot be +# overwritten by autoheader +export AUTOHEADER = "true" +EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root" + +EXTRA_OEMAKE = "PKG_LIB_DIR=${base_libdir} PKG_DEVLIB_DIR=${libdir}" + +do_install () { + oe_runmake install install-lib install-dev DIST_ROOT="${D}" +} + +PACKAGES =+ "lib${PN} lib${PN}-dev lib${PN}-doc" + +FILES_lib${PN} = "${base_libdir}/lib*.so.*" + +FILES_lib${PN}-dev = "${includedir} \ + ${libdir}/lib*.so \ + ${libdir}/lib*.a \ + ${libdir}/lib*.la \ + ${base_libdir}/lib*.so \ + ${base_libdir}/lib*.a \ + ${base_libdir}/lib*.la" + +FILES_lib${PN}-doc = "${mandir}/man2 \ + ${mandir}/man3" + +BBCLASSEXTEND = "native" -- cgit v1.2.3