Contents of /smage/trunk/core/nasm/nasm-2.13.03-r1.smage2
Parent Directory | Revision Log
Revision 11842 -
(show annotations)
(download)
Wed Aug 15 11:28:21 2018 UTC (6 years, 1 month ago) by niro
File size: 1005 byte(s)
Wed Aug 15 11:28:21 2018 UTC (6 years, 1 month ago) by niro
File size: 1005 byte(s)
-fixed ftbfs with gcc-8
1 | # $Id$ |
2 | |
3 | PNAME="nasm" |
4 | PVER="2.13.03" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-lang" |
8 | |
9 | DESCRIPTION="NASM is an 80x86 assembler designed for portability and modularity." |
10 | HOMEPAGE="http://nasm.sourceforge.net/" |
11 | |
12 | DEPEND=">= dev-lang/perl-5.22 |
13 | >= sys-dev/gcc-5.1" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools mbuild |
19 | msetfeature "!check" |
20 | |
21 | SRC_URI=( |
22 | http://www.nasm.us/pub/${PNAME}/releasebuilds/${PVER}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-2.13.01-gcc8.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd -listonly http://www.nasm.us/pub/${PNAME}/releasebuilds/'?C=M;O=A' | grep -v rc | sed -n 's:.*/\(.*\)/:\1:;$ p'" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # fix ftbfs with gcc-8 |
35 | mpatch ${PNAME}-2.13.01-gcc8.patch || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR} |
41 | |
42 | mconfigure || die |
43 | mmake all || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | mmake INSTALLROOT=${BINDIR} install install_rdf || die |
51 | minstalldocs AUTHORS ChangeLog CHANGES COPYING README TODO || die |
52 | } |