Magellan Linux

Contents of /trunk/core/elfutils/elfutils-0.155-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17056 - (show annotations) (download)
Mon Apr 8 13:19:44 2013 UTC (11 years, 1 month ago) by niro
File size: 2435 byte(s)
-added patch to fix build with gcc-4.8
1 # $Id$
2
3 PNAME="elfutils"
4 PVER="0.155"
5 PBUILD="r4"
6
7 SPLIT_PACKAGES="libelf elfutils-libs elfutils"
8
9 PCAT="dev-libs"
10 HOMEPAGE="https://fedorahosted.org/elfutils/"
11
12 LIB_DEPEND=">= virtual/glibc"
13
14 SDEPEND=">= virtual/sed
15 >= sys-dev/gettext-0.18"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild multilib
21
22 # disable src_check
23 msetfeature "!check"
24
25 SRC_URI=(
26 https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-portability.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-sizeof-pointer-memaccess.patch
31 )
32
33 UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz"
34
35 split_info_libelf()
36 {
37 DESCRIPTION="Library to read and write ELF files."
38 DEPEND="${LIB_DEPEND}"
39 PCAT="sys-libs"
40 }
41
42 split_info_elfutils-libs()
43 {
44 DESCRIPTION="Libs to handle elf objects."
45 DEPEND="== sys-libs/libelf-${PVER}"
46 }
47
48 split_info_elfutils()
49 {
50 DESCRIPTION="Utils to handle elf objects."
51 DEPEND="== sys-libs/libelf-${PVER}
52 == dev-libs/elfutils-libs-${PVER}"
53 }
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58 cd ${SRCDIR}
59
60 # redhat patches:
61 mpatch ${PNAME}-${PVER}-portability.patch || die
62 mpatch ${PNAME}-${PVER}-robustify.patch || die
63
64 # with issues with gcc-4.8
65 mpatch ${PNAME}-${PVER}-sizeof-pointer-memaccess.patch || die
66
67 mautoreconf || die
68
69 # fix some noisiness (taken from gentoo ebuild)
70 find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
71 }
72
73 src_compile()
74 {
75 cd ${SRCDIR}
76
77 mconfigure \
78 --program-prefix="eu-" \
79 --enable-shared \
80 --enable-nls \
81 || die
82
83 mmake || die
84 }
85
86 src_install_libelf()
87 {
88 cd ${SRCDIR}
89 mmake -C libelf DESTDIR=${BINDIR} install || die
90 # install version.h
91 mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
92 }
93
94 src_install_elfutils-libs()
95 {
96 cd ${SRCDIR}
97 mmake -C libebl DESTDIR=${BINDIR} install || die
98 mmake -C libdw DESTDIR=${BINDIR} install || die
99 mmake -C libdwfl DESTDIR=${BINDIR} install || die
100 mmake -C libasm DESTDIR=${BINDIR} install || die
101 mmake -C backends DESTDIR=${BINDIR} install || die
102 }
103
104 src_install_elfutils()
105 {
106 cd ${SRCDIR}
107 mmake -C src DESTDIR=${BINDIR} install || die
108 mmake -C po DESTDIR=${BINDIR} install || die
109
110 minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
111 GPG-KEY NEWS NOTES README THANKS TODO || die
112 }