Magellan Linux

Contents of /trunk/core/elfutils/elfutils-0.131-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1462 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/elfutils/elfutils-0.131-r2.smage2,v 1.1 2008/04/20 23:59:08 niro Exp $
2
3 PNAME="elfutils"
4 PVER="0.131"
5 PBUILD="r2"
6
7 PCATEGORIE="dev-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Utils and libs to handle elf objects."
11 HOMEPAGE="http://www.redhat.com/"
12
13 DEPEND=">= sys-dev/binutils-2.18
14 >= sys-dev/gcc-3.3"
15
16 SDEPEND=">= sys-apps/sed-4
17 >= sys-dev/gettext-0.17"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild
23
24 SRC_URI=(
25 ftp://sources.redhat.com/pub/systemtap/${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-${PVER}-portability.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-strip-copy-symtab.patch
30 )
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # redhat patches:
38 mpatch ${PNAME}-${PVER}-portability.patch || die
39 mpatch ${PNAME}-${PVER}-robustify.patch || die
40 mpatch ${PNAME}-${PVER}-strip-copy-symtab.patch || die
41
42 # fixes prelink compile issues:
43 # configure: error: libelf does not properly convert Elf64_Sxword quantities.
44 sed -i 's:\<off64_t\>:__off64_t:g' libelf/libelf.h || die
45
46 autoreconf --verbose --install --force || die
47
48 # fix some noisiness (taken from gentoo ebuild)
49 find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 mconfigure \
57 --program-prefix="eu-" \
58 --enable-shared \
59 --enable-nls \
60 || die
61
62 mmake || die
63 }

Properties

Name Value
svn:keywords Id