Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3894 - (show annotations) (download)
Mon Jul 23 13:13:43 2012 UTC (11 years, 10 months ago) by niro
File size: 1166 byte(s)
auto added: ver bump to 1.4.1-r1
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
19 SRCFILE="${PNAME}-${PVER}.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild
23
24 SRC_URI=(
25 http://archive.apache.org/dist/apr/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-${PVER}-db53.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 db-5.2 and db-5.3
38 mpatch ${PNAME}-${PVER}-db53.patch || die
39 mautoreconf || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 mconfigure \
47 --datadir=/usr/share/${PNAME}-${PVER:0:1} \
48 --includedir=/usr/include/apr-${PVER:0:1} \
49 --with-apr=/usr \
50 --with-expat=/usr \
51 --with-dbm=db${DB_VERSION/./} \
52 --with-berkeley-db \
53 --without-odbc \
54 --without-gdbm \
55 --without-mysql \
56 --without-pgsql \
57 --without-sqlite2 \
58 --without-sqlite3 \
59 || die
60
61 mmake || die
62 }