Magellan Linux

Contents of /trunk/extras/iasl/iasl-20121114-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14242 - (show annotations) (download)
Tue Dec 4 09:43:59 2012 UTC (11 years, 6 months ago) by niro
File size: 1025 byte(s)
-do not use mmake()
1 # $Id$
2
3 PNAME="iasl"
4 PVER="20121114"
5 PBUILD="r1"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="The latest IASL compiler for Linux."
10 HOMEPAGE="http://www.acpica.org/"
11
12 DEPEND=">= virtual/glibc"
13 SDEPEND=">= sys-dev/bison-2.5
14 >= sys-dev/flex-2.5.35"
15
16 SRCFILE="acpica-unix-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/acpica-unix-${PVER}"
18
19 sminclude mtools
20
21 SRC_URI=(
22 http://www.acpica.org/download/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd ${HOMEPAGE}/downloads/unix_source_code.php | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE}
31 cd ${SRCDIR}
32
33 # disable -werror to fix build with gcc-4.6
34 sed -i 's:-Werror::g' generate/unix/Makefile.config || die
35
36 # remove -D_FORTIFY_SOURCE=2 because it only works with -O
37 sed -i 's:-D_FORTIFY_SOURCE=2::g' generate/unix/Makefile.config || die
38 }
39
40 src_compile()
41 {
42 # only the compiler
43 cd ${SRCDIR}
44 # does not support our mmake
45 make iasl || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51 minstallexec generate/unix/bin\*/iasl || die
52 minstalldocs changes.txt source/compiler/*.txt || die
53 }