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/attr.inc | 43 ++++++------------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) (limited to 'meta/packages/attr/attr.inc') diff --git a/meta/packages/attr/attr.inc b/meta/packages/attr/attr.inc index 69b7442f7..da7924631 100644 --- a/meta/packages/attr/attr.inc +++ b/meta/packages/attr/attr.inc @@ -9,43 +9,12 @@ LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" -DEPENDS = "gettext" +SRC_URI = "http://nongnu.askapache.com/attr/${BP}.src.tar.gz" -SRC_URI = "http://nongnu.askapache.com/attr/${BPN}-${PV}.src.tar.gz" +require ea-acl.inc -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" - -# absolute path will be used in ln -s if PKG_LIB_DIR and -# PKG_DEVLIB_DIR are different -EXTRA_OEMAKE = "PKG_LIB_DIR=${libdir} PKG_DEVLIB_DIR=${libdir}" - -do_install () { - oe_runmake install install-lib install-dev DIST_ROOT="${D}" +# libdir should point to .la +do_install_append() { + sed -i ${D}${libdir}/libattr.la -e \ + s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', } - -PACKAGES = "${PN} ${PN}-doc ${PN}-dbg ${PN}-locale lib${PN} lib${PN}-dev lib${PN}-doc" - -FILES_${PN} = "${bindir}" - -FILES_${PN}-dbg = "${bindir}/.debug" - -FILES_${PN}-doc = "${docdir} \ - ${mandir}/man1 \ - ${mandir}/man5" - -FILES_lib${PN} = "${libdir}/lib*.so.*" - -FILES_lib${PN}-dev = "${includedir} \ - ${libdir}/lib*.so \ - ${libdir}/lib*.a \ - ${libdir}/lib*.la" - -FILES_lib${PN}-doc = "${mandir}/man2 \ - ${mandir}/man3" - -BBCLASSEXTEND = "native" -- cgit v1.2.3