Contents of /trunk/core/attr/attr-2.4.43-r3.smage2
Parent Directory | Revision Log
Revision 3110 -
(show annotations)
(download)
Tue Oct 13 13:55:25 2009 UTC (14 years, 11 months ago) by niro
File size: 2053 byte(s)
Tue Oct 13 13:55:25 2009 UTC (14 years, 11 months ago) by niro
File size: 2053 byte(s)
-build fixes
1 | # $Id$ |
2 | |
3 | PNAME="attr" |
4 | PVER="2.4.43" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="attr: Extended Attributes Of Filesystem Objects." |
11 | HOMEPAGE="http://xfs.org/" |
12 | |
13 | DEPEND="" |
14 | SDEPEND=">= sys-dev/autoconf-5 |
15 | >= sys-dev/gettext-0.17" |
16 | |
17 | SRCFILE="${PNAME}_${PVER}-1.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mtools multilib |
21 | |
22 | SRC_URI=( |
23 | ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE} |
24 | ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${PNAME}-${PVER}-gettext.patch |
27 | mirror://${PNAME}/${PNAME}-${PVER}-only-symlink-when-needed.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | mpatch ${PNAME}-${PVER}-gettext.patch || die |
38 | mpatch ${PNAME}-${PVER}-only-symlink-when-needed.patch || die |
39 | |
40 | local abi |
41 | for abi in ${MULTILIB_ABIS} |
42 | do |
43 | cd ${SRCDIR}-${abi} |
44 | sed -i \ |
45 | -e "/^PKG_DOC_DIR/s:@pkg_name@:${PNAME}-${PVER}:" \ |
46 | -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ |
47 | include/builddefs.in \ |
48 | || die |
49 | |
50 | # libtool fixes |
51 | sed -i -e '/autoconf/d' -e 's@default: $(CONFIGURE)@default:@' Makefile || die |
52 | sed -i "/AC_OUTPUT/i\AC_PROG_LIBTOOL" configure.in || die |
53 | |
54 | # libtool will clobber install-sh which is really a custom file |
55 | mv install-sh attr.install-sh || die |
56 | libtoolize --install --force || die |
57 | mv attr.install-sh install-sh || die |
58 | aclocal -I m4 || die |
59 | autoconf || die |
60 | done |
61 | } |
62 | |
63 | src_compile() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | # enable CFLAGS |
68 | export OPTIMIZER="${CFLAGS}" |
69 | |
70 | # disable debug code |
71 | export DEBUG="-DNDEBUG" |
72 | |
73 | mconfigure \ |
74 | --bindir=/bin \ |
75 | --libdir=/'$(mlibdir)' \ |
76 | --libexecdir=/usr/'$(mlibdir)' \ |
77 | --enable-gettext \ |
78 | || die |
79 | |
80 | mmake LIBTOOL=$PWD/libtool || die |
81 | } |
82 | |
83 | src_install() |
84 | { |
85 | cd ${SRCDIR} |
86 | mmake LIBTOOL=$PWD/libtool DIST_ROOT=${BINDIR} install install-dev install-lib || die |
87 | minstalldocs README VERSION doc/{CHANGES,COPYING} || die |
88 | |
89 | # provided by man-pages |
90 | rm -r ${BINDIR}/usr/share/man/man2 || die |
91 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |