Annotation of /trunk/extras/iasl/iasl-20180531-r1.smage2
Parent Directory | Revision Log
Revision 31192 -
(hide annotations)
(download)
Tue Jun 12 10:34:12 2018 UTC (6 years, 3 months ago) by niro
File size: 1125 byte(s)
Tue Jun 12 10:34:12 2018 UTC (6 years, 3 months ago) by niro
File size: 1125 byte(s)
auto added: ver bump to 20180531-r1
1 | niro | 31192 | # $Id$ |
2 | |||
3 | PNAME="iasl" | ||
4 | PVER="20180531" | ||
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.6" | ||
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 | } |