Magellan Linux

Contents of /trunk/core/apr-util/apr-util-1.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10494 - (show annotations) (download)
Mon Jan 23 09:28:10 2012 UTC (12 years, 4 months ago) by niro
File size: 1187 byte(s)
-explicitly enable odbc
1 # $Id$
2
3 PNAME="apr-util"
4 PVER="1.4.1"
5 PBUILD="r1"
6
7 PCAT="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.3"
14
15 DEPEND=">= dev-libs/expat-2
16 >= dev-libs/apr-${PVER}
17 >= dev-db/db-${DB_VERSION}
18 >= dev-db/unixodbc-2.3"
19
20 SRCFILE="${PNAME}-${PVER}.tar.bz2"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude mbuild
24
25 SRC_URI=(
26 http://archive.apache.org/dist/apr/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-db53.patch
29 )
30
31 UP2DATE="updatecmd 'http://archive.apache.org/dist/apr/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # support db-5.2 and db-5.3
39 mpatch ${PNAME}-${PVER}-db53.patch || die
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 --with-odbc \
55 --without-gdbm \
56 --without-mysql \
57 --without-pgsql \
58 --without-sqlite2 \
59 --without-sqlite3 \
60 || die
61
62 mmake || die
63 }