cornucopia: bump SRCREV
[openembedded.git] / recipes / udev / acl_2.2.49.bb
blob7b68a12313951afb905397fa5e312739f072f2bd
1 DESCRIPTION = "Commands for Manipulating POSIX Access Control Lists"
2 LICENSE = "GPLv2"
3 PR = "r5"
4 DEPENDS = "attr"
6 SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/acl/acl-${PV}.src.tar.gz \
7 file://nolargefile.patch"
9 inherit autotools lib_package
11 TOPDIR[unexport] = "1"
13 EXTRA_OECONF = " --enable-gettext=yes \
14 ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext \
15 ac_cv_path_MSGFMT=${STAGING_BINDIR_NATIVE}/msgfmt \
16 ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge "
18 do_configure_append() {
19 # Fix RPATH issues.
20 sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
21 ${S}/config.status
23 # gettext hack
24 echo "#define _(str) str" >> ${S}/include/config.h
27 do_configure_prepend() {
28 ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/include/builddefs.in', d)}
31 do_install() {
32 export PKG_BIN_DIR=${D}${bindir}
33 export PKG_SBIN_DIR=${D}${sbindir}
34 export PKG_LIB_DIR=${D}${libdir}
35 export PKG_DEVLIB_DIR=${D}${libexecdir}
36 export PKG_INC_DIR=${D}${includedir}
37 export PKG_MAN_DIR=${D}${mandir}
38 export PKG_DOC_DIR=${D}${datadir}/doc/acl
39 export PKG_LOCALE_DIR=${D}${datadir}/locale
40 # ensure the subdir Makefile do not use the (wrong) variable overrides from the include file
41 export MAKE="${MAKE} -e"
43 oe_runmake -e install install-dev install-lib
45 sed -i -e s:installed=yes:installed=no: -e s:${STAGING_LIBDIR}:${libdir}:g ${D}${libdir}/libacl.la
47 # Move .a and .la into libdir and remove symlinks pointing to ${S}
48 for file in ${D}${libexecdir}/*a ; do
49 rm ${D}${libdir}/$(basename $file)
50 mv $file ${D}${libdir}
51 done
52 rm -rf ${D}${libexecdir}
57 SRC_URI[md5sum] = "181445894cca986da9ae0099d5ce2d08"
58 SRC_URI[sha256sum] = "b9c7f4752e4ef4930a62fa5aa0d7efe1cba2b5a3a2d6ee2b45c0a70c72b7e5d5"