blob: a20568d5c1c218054af89105cd92dea6204a10a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
DESCRIPTION = "Commands for Manipulating Filesystem Extended Attributes"
LICENSE = "GPLv2"
PR = "r2"
SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/attr/attr-${PV}.src.tar.gz"
inherit gettext autotools lib_package
EXTRA_OECONF = " --enable-gettext=yes ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext"
LDFLAGS_append_libc-uclibc += " -lintl"
do_configure_append() {
# gettext hack
echo "#define _(str) str" >> ${S}/include/config.h
}
do_install() {
export PKG_BIN_DIR=${D}${bindir}
export PKG_SBIN_DIR=${D}${sbindir}
export PKG_LIB_DIR=${D}${libdir}
export PKG_DEVLIB_DIR=${D}${libexecdir}
export PKG_INC_DIR=${D}${includedir}/attr
export PKG_MAN_DIR=${D}${mandir}
export PKG_DOC_DIR=${D}${datadir}/doc/attr
export PKG_LOCALE_DIR=${D}${datadir}/locale
oe_runmake -e install install-dev install-lib
sed -i -e s:installed=yes:installed=no: -e s:${STAGING_LIBDIR}:${libdir}:g ${D}${libdir}/libattr.la
# Move .a and .la into libdir and remove symlinks pointing to ${S}
for file in ${D}${libexecdir}/*a ; do
rm ${D}${libdir}/$(basename $file)
mv $file ${D}${libdir}
done
rm ${D}${libexecdir} -rf
}
|