libdrm: drop older versions
[openembedded.git] / recipes / rpm / rpm-4.4.2.3.inc
blobb96fde929e73f509fdf42416bd20ddc480135a3f
1 DESCRIPTION = "The RPM Package Manager."
2 HOMEPAGE = "http://rpm.org/"
3 LICENSE = "LGPL GPL"
4 DEPENDS = "python-native"
5 PR = "r16"
7 SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
8            file://external-tools.patch \
9            file://cross_libpaths.patch \
10            file://rpmconfigdir.patch \
11            file://weakdeps.patch;striplevel=0 \
12            file://tagsbackport.patch;striplevel=0 \
13            file://missingok.patch;striplevel=0 \
14            file://extcond.patch;striplevel=0"
16 inherit autotools python-dir
18 S = "${WORKDIR}/rpm-${PV}"
20 ARM_INSTRUCTION_SET = "arm"
22 acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
24 PACKAGES += "python-rpm"
25 FILES_python-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/_*"
26 RDEPENDS_python-rpm += "${PN} python-core"
28 # Handle the db MUTEX settings here, the POSIX library is
29 # the default - "POSIX/pthreads/library".
30 # Don't ignore the nice SWP instruction on the ARM:
31 # These enable the ARM assembler mutex code, this won't
32 # work with thumb compilation...
33 ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
34 MUTEX = ""
35 MUTEX_arm = "${ARM_MUTEX}"
36 MUTEX_armeb = "${ARM_MUTEX}"
37 EXTRA_OECONF += "${MUTEX}"
39 export varprefix = "${localstatedir}"
41 do_configure_prepend (){
42         EXTRA_RPM_OECONF="--with-python \
43         --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR} \
44         --with-python-libdir=${libdir}/${PYTHON_DIR} \
45         --without-apidocs \
46         --without-selinux \
47         --without-lua \
48         --without-dmalloc \
49         --without-efence"
52 do_configure () {
53         rm ${S}/popt/ -Rf
54         rm ${S}/db/dist/configure.in -f
55         cd ${S}/db/dist/aclocal
56         rm libtool* -f
57         for i in `ls *.ac`; do
58             j=`echo $i | sed 's/.ac/.m4/g'`
59             mv $i $j
60         done
61         cd ${S}/db/dist/aclocal_java
62         for i in `ls *.ac`; do
63             j=`echo $i | sed 's/.ac/.m4/g'`
64             mv $i $j
65         done
66         cd ${S}
67         autotools_do_configure ${EXTRA_RPM_OECONF}
68         cd ${S}/db/dist
69         . ./RELEASE
70         # Edit version information we couldn't pre-compute.
71         sed -i -e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g"  configure
72         sed -i -e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g"  configure
73         sed -i -e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g"  configure
74         sed -i -e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g"  configure
75         sed -i -e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g"  configure
76         sed -i -e "s/__EDIT_DB_VERSION__/$DB_VERSION/g"  configure
77         cd ${S}/db3
78         ${S}/db3/configure \
79                     --build=${BUILD_SYS} \
80                     --host=${HOST_SYS} \
81                     --target=${TARGET_SYS} \
82                     --prefix=${prefix} \
83                     --exec_prefix=${exec_prefix} \
84                     --bindir=${bindir} \
85                     --sbindir=${sbindir} \
86                     --libexecdir=${libexecdir} \
87                     --datadir=${datadir} \
88                     --sysconfdir=${sysconfdir} \
89                     --sharedstatedir=${sharedstatedir} \
90                     --localstatedir=${localstatedir} \
91                     --libdir=${libdir} \
92                     --includedir=${includedir} \
93                     --oldincludedir=${oldincludedir} \
94                     --infodir=${infodir} \
95                     --mandir=${mandir} \
96                     ${EXTRA_RPM_OECONF} \
97                     --with-pic