Magellan Linux

Contents of /smage/trunk/core/nasm/nasm-2.09.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2904 - (show annotations) (download)
Tue Sep 6 15:26:41 2011 UTC (12 years, 9 months ago) by niro
File size: 1465 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 alx
19
20 SRC_URI=(
21 http://www.nasm.us/pub/${PNAME}/releasebuilds/${PVER}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-2.02-remove-doc-target.patch
24 )
25
26 UP2DATE="updatecmd -listonly http://www.nasm.us/pub/${PNAME}/releasebuilds/'?C=M;O=A' | grep -v rc | sed -n 's:.*/\(.*\)/:\1:;$ p'"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # removes docs from install
34 mpatch ${PNAME}-2.02-remove-doc-target.patch || die
35 }
36
37 src_compile()
38 {
39 cd ${SRCDIR}
40
41 mconfigure || die
42 # eglibc doesnt like parallel builds
43 mmake -j1 everything || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49
50 # needed directories
51 minstalldir /usr/bin || die
52
53 # installs binaries
54 minstallexec nasm || die
55 minstallexec ndisasm || die
56 minstallexec rdoff/ldrdf || die
57 minstallexec rdoff/rdf2bin || die
58 minstallexec rdoff/rdf2ihx || die
59 minstallexec rdoff/rdfdump || die
60 minstallexec rdoff/rdflib || die
61 minstallexec rdoff/rdx || die
62
63 # nesseccary symlink
64 mlink /usr/bin/rdf2bin /usr/bin/rdf2com || die
65
66 # man-pages
67 minstallman nasm.1 ndisasm.1 || die
68 minstalldocs AUTHORS ChangeLog CHANGES COPYING README TODO || die
69 }