Contents of /trunk/extras/dev86/dev86-0.16.17-r4.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1535 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1535 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/dev86/dev86-0.16.17-r4.smage2,v 1.2 2008/03/27 12:21:52 niro Exp $ |
2 | |
3 | PNAME="dev86" |
4 | PVER="0.16.17" |
5 | PBUILD="r4" |
6 | |
7 | PCATEGORIE="dev-lang" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="This is a cross development C compiler, assembler and linker environment for the production of 8086 executables." |
11 | HOMEPAGE="http://www.debath.co.uk/" |
12 | |
13 | DEPEND=">= dev-lang/bin86-${PVER} |
14 | >= dev-util/gperf-3" |
15 | |
16 | SRCFILE="Dev86src-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | http://homepage.ntlworld.com/robert.debath/dev86/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-${PVER}-noelks.patch |
25 | mirror://${PNAME}/${PNAME}-${PVER}-x86_64.patch |
26 | ) |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | if [[ ${ARCH} = x86_64 ]] |
34 | then |
35 | # don't build elksemu, its not happy on x86_64 |
36 | mpatch ${PNAME}-${PVER}-noelks.patch || die |
37 | # fix bcc search patches |
38 | mpatch ${PNAME}-${PVER}-x86_64.patch || die |
39 | fi |
40 | |
41 | # fix hardcoded cflags |
42 | sed -i "s:-O2 -g:${CFLAGS}:" makefile.in || die |
43 | } |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | mmake -j1 DIST=${BINDIR} || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | make DIST=${BINDIR} \ |
55 | LIBDIR=/usr/$(mlibdir)/bcc \ |
56 | INCLDIR=/usr/$(mlibdir)/bcc \ |
57 | install-all || die |
58 | |
59 | # move man dir to proper location |
60 | minstalldir /usr/share || die |
61 | mv ${BINDIR}/usr/{,share/}man || die |
62 | |
63 | # provided by dev-lang/bin86 |
64 | rm ${BINDIR}/usr/bin/{as,ld,nm,objdump,size}86 || die |
65 | rm ${BINDIR}/usr/share/man/man1/{as,ld}86.1 || die |
66 | |
67 | minstalldocs Changes COPYING MAGIC README || die |
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |