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