Annotation of /branches/R11-stable/core/elfutils/elfutils-0.161-r1.smage2
Parent Directory | Revision Log
Revision 23503 -
(hide annotations)
(download)
Tue Jan 13 11:27:15 2015 UTC (9 years, 8 months ago) by niro
Original Path: trunk/core/elfutils/elfutils-0.161-r1.smage2
File size: 1909 byte(s)
Tue Jan 13 11:27:15 2015 UTC (9 years, 8 months ago) by niro
Original Path: trunk/core/elfutils/elfutils-0.161-r1.smage2
File size: 1909 byte(s)
-linux-libc-headers-3.18.2, binutils-2.15, glibc-2.20, gcc-4.8.4 bootstrap phase1
1 | niro | 23503 | # $Id$ |
2 | |||
3 | PNAME="elfutils" | ||
4 | PVER="0.161" | ||
5 | PBUILD="r1" | ||
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 | # disable src_check | ||
21 | msetfeature "!check" | ||
22 | |||
23 | sminclude mbuild multilib | ||
24 | |||
25 | SRC_URI=( | ||
26 | https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | grep '/${PNAME}/.*/$' | sed -n 's:.*/${PNAME}/\(.*\)/$:\1:;$ p'" | ||
31 | |||
32 | split_info_libelf() | ||
33 | { | ||
34 | DESCRIPTION="Library to read and write ELF files." | ||
35 | DEPEND="${LIB_DEPEND}" | ||
36 | PCAT="sys-libs" | ||
37 | } | ||
38 | |||
39 | split_info_elfutils-libs() | ||
40 | { | ||
41 | DESCRIPTION="Libs to handle elf objects." | ||
42 | DEPEND="== sys-libs/libelf-${PVER} | ||
43 | >= app-arch/bzip2-1.0.6" | ||
44 | } | ||
45 | |||
46 | split_info_elfutils() | ||
47 | { | ||
48 | DESCRIPTION="Utils to handle elf objects." | ||
49 | DEPEND="== sys-libs/libelf-${PVER} | ||
50 | == dev-libs/elfutils-libs-${PVER}" | ||
51 | } | ||
52 | |||
53 | src_compile() | ||
54 | { | ||
55 | # required for test-suite | ||
56 | # export CFLAGS+=" -g" | ||
57 | |||
58 | mconfigure \ | ||
59 | --program-prefix="eu-" \ | ||
60 | --enable-shared \ | ||
61 | --enable-nls \ | ||
62 | || die | ||
63 | |||
64 | mmake || die | ||
65 | } | ||
66 | |||
67 | src_install_libelf() | ||
68 | { | ||
69 | mmake -C libelf DESTDIR=${BINDIR} install || die | ||
70 | # install version.h | ||
71 | mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die | ||
72 | } | ||
73 | |||
74 | src_install_elfutils-libs() | ||
75 | { | ||
76 | mmake -C libebl DESTDIR=${BINDIR} install || die | ||
77 | mmake -C libdw DESTDIR=${BINDIR} install || die | ||
78 | mmake -C libdwfl DESTDIR=${BINDIR} install || die | ||
79 | mmake -C libasm DESTDIR=${BINDIR} install || die | ||
80 | mmake -C backends DESTDIR=${BINDIR} install || die | ||
81 | } | ||
82 | |||
83 | src_install_elfutils() | ||
84 | { | ||
85 | mmake -C src DESTDIR=${BINDIR} install || die | ||
86 | mmake -C po DESTDIR=${BINDIR} install || die | ||
87 | |||
88 | minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \ | ||
89 | GPG-KEY NEWS NOTES README THANKS TODO || die | ||
90 | } |