blob: e2996c71987d6bd0f3f9a6fcd19399dedacb8c61 (
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
|
require libtool.inc
PR = "r2"
DEFAULT_PREFERENCE = "-1"
SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz"
S = "${WORKDIR}/${BPN}-2.2.6"
PACKAGES =+ "libltdl libltdl-dev libltdl-dbg"
FILES_${PN} += "${datadir}/aclocal*"
FILES_libltdl = "${libdir}/libltdl.so.*"
FILES_libltdl-dev = "${libdir}/libltdl.* ${includedir}/ltdl.h"
FILES_libltdl-dbg = "${libdir}/.debug/"
inherit autotools
EXTRA_AUTORECONF = "--exclude=libtoolize"
do_configure_prepend () {
# Skip this for native build:
if test -n "$CONFIG_SITE" ; then
if test -z "$LIBTOOL_BB_DO_NOT_SET_PATHS" ; then
export ac_cv_path_SED="${ac_cv_path_SED=/bin/sed}"
export ac_cv_path_GREP="${ac_cv_path_GREP=/bin/grep}"
export ac_cv_path_EGREP="${ac_cv_path_EGREP=/bin/grep -E}"
export ac_cv_path_FGREP="${ac_cv_path_FGREP=/bin/grep -F}"
fi
fi
}
do_stage () {
install -d ${STAGING_INCDIR}/libltdl
install -m 0644 libltdl/ltdl.h ${STAGING_INCDIR}/
install -m 0644 libltdl/libltdl/*.h ${STAGING_INCDIR}/libltdl/
oe_libinstall -a -so -C libltdl libltdl ${STAGING_LIBDIR}
}
|