Contents of /branches/R11-stable/extras/bin86/bin86-0.16.19-r2.smage2
Parent Directory | Revision Log
Revision 15825 -
(show annotations)
(download)
Thu Jan 10 10:15:50 2013 UTC (11 years, 8 months ago) by niro
File size: 1003 byte(s)
Thu Jan 10 10:15:50 2013 UTC (11 years, 8 months ago) by niro
File size: 1003 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="bin86" |
4 | PVER="0.16.19" |
5 | PBUILD="r2" |
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=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mtools |
18 | |
19 | SRC_URI=( |
20 | http://www.debath.co.uk/dev86/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${PNAME}-0.16.17-x86_64.patch |
23 | ) |
24 | |
25 | UP2DATE="updatecmd http://www.debath.co.uk/dev86/ | grep ${PNAME} | lasttarball gz" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | if [[ ${ARCH} = x86_64 ]] |
33 | then |
34 | # fixes build issues on x86_64 |
35 | mpatch ${PNAME}-0.16.17-x86_64.patch || die |
36 | fi |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | mmake || die |
43 | } |
44 | |
45 | src_install() |
46 | { |
47 | cd ${SRCDIR} |
48 | minstalldir /usr/bin || die |
49 | minstalldir /usr/share/man/man1 || die |
50 | |
51 | mmake PREFIX=${BINDIR}/usr MANDIR=/usr/share/man/man1 install || die |
52 | minstalldocs ChangeLog README* || die |
53 | } |