Magellan Linux

Contents of /smage/trunk/core/apr-util/apr-util-1.3.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2921 - (show annotations) (download)
Tue Sep 6 17:17:39 2011 UTC (12 years, 9 months ago) by niro
File size: 1175 byte(s)
-added patch to support berkeley db 5.2
1 # $Id$
2
3 PNAME="apr-util"
4 PVER="1.3.12"
5 PBUILD="r2"
6
7 PCATEGORIE="dev-libs"
8
9 DESCRIPTION="APR-Util - Apache Portable Runtime Utility library."
10 HOMEPAGE="http://apr.apache.org/"
11
12 # our supported db version
13 DB_VERSION="5.2"
14
15 DEPEND=">= dev-libs/expat-2
16 >= dev-libs/apr-${PVER}
17 >= dev-db/db-${DB_VERSION}"
18
19 SRCFILE="${PNAME}-${PVER}.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild alx
23
24 SRC_URI=(
25 http://archive.apache.org/dist/apr/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-${PVER}-db52.patch
28 )
29
30 UP2DATE="updatecmd 'http://archive.apache.org/dist/apr/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # support berkely db 5.2
38 mpatch ${PNAME}-${PVER}-db52.patch || die
39
40 mautoreconf || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 mconfigure \
48 --datadir=/usr/share/${PNAME}-${PVER:0:1} \
49 --includedir=/usr/include/apr-${PVER:0:1} \
50 --with-apr=/usr \
51 --with-expat=/usr \
52 --with-dbm=db${DB_VERSION/./} \
53 --with-berkeley-db \
54 --without-gdbm \
55 --without-mysql \
56 --without-pgsql \
57 --without-sqlite2 \
58 --without-sqlite3 \
59 --without-odbc \
60 || die
61
62 mmake || die
63 }