Annotation of /trunk/extras/dev86/dev86-0.16.17-r5.smage2
Parent Directory | Revision Log
Revision 2099 -
(hide annotations)
(download)
Thu Jun 18 22:07:14 2009 UTC (15 years, 3 months ago) by niro
File size: 1533 byte(s)
Thu Jun 18 22:07:14 2009 UTC (15 years, 3 months ago) by niro
File size: 1533 byte(s)
auto added: ver bump to 0.16.17-r5
1 | niro | 2099 | # $Id$ |
2 | |||
3 | PNAME="dev86" | ||
4 | PVER="0.16.17" | ||
5 | PBUILD="r5" | ||
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 | UP2DATE="updatecmd http://www.debath.co.uk/${PNAME}/ | grep Dev86src | lasttarball gz" | ||
29 | |||
30 | src_prepare() | ||
31 | { | ||
32 | munpack ${SRCFILE} || die | ||
33 | cd ${SRCDIR} | ||
34 | |||
35 | if [[ ${ARCH} = x86_64 ]] | ||
36 | then | ||
37 | # don't build elksemu, its not happy on x86_64 | ||
38 | mpatch ${PNAME}-${PVER}-noelks.patch || die | ||
39 | # fix bcc search patches | ||
40 | mpatch ${PNAME}-${PVER}-x86_64.patch || die | ||
41 | fi | ||
42 | |||
43 | # fix hardcoded cflags | ||
44 | sed -i "s:-O2 -g:${CFLAGS}:" makefile.in || die | ||
45 | } | ||
46 | |||
47 | src_compile() | ||
48 | { | ||
49 | cd ${SRCDIR} | ||
50 | mmake -j1 DIST=${BINDIR} || die | ||
51 | } | ||
52 | |||
53 | src_install() | ||
54 | { | ||
55 | cd ${SRCDIR} | ||
56 | |||
57 | make DIST=${BINDIR} \ | ||
58 | LIBDIR=/usr/$(mlibdir)/bcc \ | ||
59 | INCLDIR=/usr/$(mlibdir)/bcc \ | ||
60 | install-all || die | ||
61 | |||
62 | # move man dir to proper location | ||
63 | minstalldir /usr/share || die | ||
64 | mv ${BINDIR}/usr/{,share/}man || die | ||
65 | |||
66 | # provided by dev-lang/bin86 | ||
67 | rm ${BINDIR}/usr/bin/{as,ld,nm,objdump,size}86 || die | ||
68 | rm ${BINDIR}/usr/share/man/man1/{as,ld}86.1 || die | ||
69 | |||
70 | minstalldocs Changes COPYING MAGIC README || die | ||
71 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |