Contents of /branches/magellan-next/core/nasm/nasm-2.09.08-r1.smage2
Parent Directory | Revision Log
Revision 7601 -
(show annotations)
(download)
Fri May 27 18:32:21 2011 UTC (12 years, 11 months ago) by niro
File size: 1228 byte(s)
Fri May 27 18:32:21 2011 UTC (12 years, 11 months ago) by niro
File size: 1228 byte(s)
auto added: ver bump to 2.09.08-r1
1 | # $Id$ |
2 | |
3 | PNAME="nasm" |
4 | PVER="2.09.08" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-lang" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="NASM is an 80x86 assembler designed for portability and modularity." |
11 | HOMEPAGE="http://nasm.sourceforge.net/" |
12 | |
13 | DEPEND=">= dev-lang/perl-5.14 |
14 | >= sys-dev/gcc-4.6" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools mbuild |
20 | |
21 | SRC_URI=( |
22 | http://www.nasm.us/pub/${PNAME}/releasebuilds/${PVER}/${SRCFILE} |
23 | #sourceforge://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-2.02-remove-doc-target.patch |
26 | ) |
27 | |
28 | # the sources are called 'nasm sources' on sf.net |
29 | #UP2DATE="updatecmd_sourceforge ${PNAME} '${PNAME} sources'" |
30 | UP2DATE="updatecmd -listonly http://www.nasm.us/pub/${PNAME}/releasebuilds/'?C=M;O=A' | grep -v rc | sed -n 's:.*/\(.*\)/:\1:;$ p'" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # removes docs from install |
38 | mpatch ${PNAME}-2.02-remove-doc-target.patch || die |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | mconfigure || die |
46 | # eglibc doesnt like parallel builds |
47 | mmake -j1 everything || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | mmake INSTALLROOT=${BINDIR} install install_rdf || die |
55 | minstalldocs AUTHORS ChangeLog CHANGES COPYING README TODO || die |
56 | } |