Contents of /trunk/extras/dev86/dev86-0.16.19-r1.smage2
Parent Directory
|
Revision Log
Revision 13764 -
(show annotations)
(download)
Wed Oct 24 09:25:02 2012 UTC (11 years, 7 months ago) by niro
File size: 1528 byte(s)
Wed Oct 24 09:25:02 2012 UTC (11 years, 7 months ago) by niro
File size: 1528 byte(s)
-STATE broken
1 | # $Id$ |
2 | |
3 | PNAME="dev86" |
4 | PVER="0.16.19" |
5 | PBUILD="r1" |
6 | |
7 | STATE="broken" |
8 | PCAT="dev-lang" |
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 | msetfeature "!check" |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | http://www.debath.co.uk/dev86/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-0.16.17-noelks.patch |
26 | mirror://${PNAME}/${PNAME}-0.16.17-x86_64.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd http://www.debath.co.uk/${PNAME}/ | grep Dev86src | firsttarball gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | if [[ ${ARCH} = x86_64 ]] |
37 | then |
38 | # don't build elksemu, its not happy on x86_64 |
39 | mpatch ${PNAME}-0.16.17-noelks.patch || die |
40 | # fix bcc search patches |
41 | mpatch ${PNAME}-0.16.17-x86_64.patch || die |
42 | fi |
43 | |
44 | # fix hardcoded cflags |
45 | sed -i "s:-O2 -g:${CFLAGS}:" makefile.in || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | mmake -j1 DIST=${BINDIR} || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | make DIST=${BINDIR} \ |
59 | LIBDIR=/usr/$(mlibdir)/bcc \ |
60 | INCLDIR=/usr/$(mlibdir)/bcc \ |
61 | install-all || die |
62 | |
63 | # move man dir to proper location |
64 | minstalldir /usr/share || die |
65 | mv ${BINDIR}/usr/{,share/}man || die |
66 | |
67 | # provided by dev-lang/bin86 |
68 | rm ${BINDIR}/usr/bin/{as,ld,nm,objdump,size}86 || die |
69 | rm ${BINDIR}/usr/share/man/man1/{as,ld}86.1 || die |
70 | |
71 | minstalldocs Changes COPYING MAGIC README || die |
72 | } |