Magellan Linux

Contents of /branches/magellan-next/core/acl/acl-2.2.51-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9454 - (show annotations) (download)
Thu Dec 1 11:58:27 2011 UTC (12 years, 5 months ago) by niro
File size: 1408 byte(s)
-disable static libs
1 # $Id$
2
3 PNAME="acl"
4 PVER="2.2.51"
5 PBUILD="r2"
6
7 PCATEGORIE="sys-apps"
8
9 DESCRIPTION="acl: POSIX Access Control Lists."
10 HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
11
12 DEPEND=">= sys-apps/attr-2.4"
13
14 SDEPEND=">= sys-dev/autoconf-5
15 >= sys-dev/gettext-0.18"
16
17 SRCFILE="${PNAME}-${PVER}.src.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools multilib
21
22 SRC_URI=(
23 http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-${PVER}-fix-includes.patch
26 )
27
28 UP2SUBSTITUTE=".src"
29 UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34
35 # fix missing includes
36 mpatch ${PNAME}-${PVER}-fix-includes.patch || die
37
38 local abi
39 for abi in ${MULTILIB_ABIS}
40 do
41 cd ${SRCDIR}-${abi}
42 sed -i \
43 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \
44 -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
45 include/builddefs.in \
46 || die
47 done
48 }
49
50 src_compile()
51 {
52 # enable CFLAGS
53 export OPTIMIZER="${CFLAGS}"
54
55 # disable debug code
56 export DEBUG="-DNDEBUG"
57
58 mconfigure \
59 --bindir=/bin \
60 --libdir=/'$(mlibdir)' \
61 --libexecdir=/usr/'$(mlibdir)' \
62 --enable-gettext \
63 --disable-static \
64 || die
65
66 mmake || die
67 }
68
69 src_install()
70 {
71 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
72 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
73 }