Magellan Linux

Contents of /branches/magellan-next/core/nasm/nasm-2.09.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8415 - (show annotations) (download)
Mon Jul 18 17:40:58 2011 UTC (12 years, 9 months ago) by niro
File size: 1211 byte(s)
auto added: ver bump to 2.09.10-r1
1 # $Id$
2
3 PNAME="nasm"
4 PVER="2.09.10"
5 PBUILD="r1"
6
7 PCATEGORIE="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.14
13 >= sys-dev/gcc-4.6"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools mbuild
19
20 SRC_URI=(
21 http://www.nasm.us/pub/${PNAME}/releasebuilds/${PVER}/${SRCFILE}
22 #sourceforge://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-2.02-remove-doc-target.patch
25 )
26
27 # the sources are called 'nasm sources' on sf.net
28 #UP2DATE="updatecmd_sourceforge ${PNAME} '${PNAME} sources'"
29 UP2DATE="updatecmd -listonly http://www.nasm.us/pub/${PNAME}/releasebuilds/'?C=M;O=A' | grep -v rc | sed -n 's:.*/\(.*\)/:\1:;$ p'"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # removes docs from install
37 mpatch ${PNAME}-2.02-remove-doc-target.patch || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 mconfigure || die
45 # eglibc doesnt like parallel builds
46 mmake -j1 everything || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 mmake INSTALLROOT=${BINDIR} install install_rdf || die
54 minstalldocs AUTHORS ChangeLog CHANGES COPYING README TODO || die
55 }