Contents of /branches/R11-stable/extras/iasl/iasl-20141107-r1.smage2
Parent Directory | Revision Log
Revision 24289 -
(show annotations)
(download)
Fri Feb 20 09:41:45 2015 UTC (9 years, 7 months ago) by niro
File size: 1128 byte(s)
Fri Feb 20 09:41:45 2015 UTC (9 years, 7 months ago) by niro
File size: 1128 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="iasl" |
4 | PVER="20141107" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-util" |
8 | |
9 | DESCRIPTION="The latest IASL compiler for Linux." |
10 | HOMEPAGE="https://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 | https://acpica.org/sites/acpica/files/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd -listonly ${HOMEPAGE}/downloads | firsttarball 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 | local bits |
43 | case ${ARCH} in |
44 | i*86) bits=32;; |
45 | x86_64) bits=64;; |
46 | *) die "unkown architecture '${ARCH}" ;; |
47 | esac |
48 | |
49 | # only the compiler |
50 | cd ${SRCDIR} |
51 | mmake -j1 BITS=${bits} iasl || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | minstallexec generate/unix/bin\*/iasl || die |
58 | minstalldocs changes.txt source/compiler/*.txt || die |
59 | } |