Magellan Linux

Contents of /branches/magellan-next/core/attr/attr-2.4.46-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9455 - (show annotations) (download)
Thu Dec 1 12:11:12 2011 UTC (12 years, 5 months ago) by niro
File size: 1558 byte(s)
-disabled static libs
1 # $Id$
2
3 PNAME="attr"
4 PVER="2.4.46"
5 PBUILD="r2"
6
7 PCATEGORIE="sys-apps"
8
9 DESCRIPTION="attr: Extended Attributes Of Filesystem Objects."
10 HOMEPAGE="http://savannah.nongnu.org/projects/${PNAME}"
11
12 DEPEND=""
13 SDEPEND=">= sys-dev/autoconf-5
14 >= sys-dev/gettext-0.18"
15
16 SRCFILE="${PNAME}-${PVER}.src.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mtools multilib
20
21 SRC_URI=(
22 http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-gettext.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-fix-includes.patch
25 )
26
27 UP2SUBSTITUTE=".src"
28 UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball gz"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 mpatch ${PNAME}-${PVER}-gettext.patch || die
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 cd ${SRCDIR}
53
54 # enable CFLAGS
55 export OPTIMIZER="${CFLAGS}"
56
57 # disable debug code
58 export DEBUG="-DNDEBUG"
59
60 mconfigure \
61 --bindir=/bin \
62 --libdir=/'$(mlibdir)' \
63 --libexecdir=/usr/'$(mlibdir)' \
64 --enable-gettext \
65 --disable-static \
66 || die
67
68 mmake || die
69 }
70
71 src_install()
72 {
73 cd ${SRCDIR}
74 mmake DIST_ROOT=${BINDIR} install install-dev install-lib || die
75 minstalldocs README VERSION doc/{CHANGES,COPYING} || die
76
77 # provided by man-pages
78 rm -r ${BINDIR}/usr/share/man/man2 || die
79 }