Magellan Linux

Contents of /branches/magellan-next/extras/dev86/dev86-0.16.18-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8055 - (show annotations) (download)
Wed Jun 29 13:36:12 2011 UTC (12 years, 10 months ago) by niro
File size: 1352 byte(s)
-removed no-elks patch
1 # $Id$
2
3 PNAME="dev86"
4 PVER="0.16.18"
5 PBUILD="r1"
6
7 PCATEGORIE="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-x86_64.patch
24 )
25
26 UP2DATE="updatecmd http://www.debath.co.uk/${PNAME}/ | grep Dev86src | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 if [[ ${ARCH} = x86_64 ]]
34 then
35 # fix bcc search patches
36 mpatch ${PNAME}-0.16.17-x86_64.patch || die
37 fi
38
39 # fix hardcoded cflags
40 sed -i "s:-O2 -g:${CFLAGS}:" makefile.in || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46 mmake -j1 DIST=${BINDIR} || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 make DIST=${BINDIR} \
54 LIBDIR=/usr/$(mlibdir)/bcc \
55 INCLDIR=/usr/$(mlibdir)/bcc \
56 install-all || die
57
58 # move man dir to proper location
59 minstalldir /usr/share || die
60 mv ${BINDIR}/usr/{,share/}man || die
61
62 # provided by dev-lang/bin86
63 rm ${BINDIR}/usr/bin/{as,ld,nm,objdump,size}86 || die
64 rm ${BINDIR}/usr/share/man/man1/{as,ld}86.1 || die
65
66 minstalldocs Changes COPYING MAGIC README || die
67 }