Annotation of /branches/R11-stable/extras/bin86/bin86-0.16.19-r2.smage2
Parent Directory | Revision Log
Revision 15795 -
(hide annotations)
(download)
Wed Jan 9 10:35:15 2013 UTC (11 years, 8 months ago) by niro
Original Path: trunk/extras/bin86/bin86-0.16.19-r2.smage2
File size: 1003 byte(s)
Wed Jan 9 10:35:15 2013 UTC (11 years, 8 months ago) by niro
Original Path: trunk/extras/bin86/bin86-0.16.19-r2.smage2
File size: 1003 byte(s)
-fixed pbuild
1 | niro | 15794 | # $Id$ |
2 | |||
3 | PNAME="bin86" | ||
4 | PVER="0.16.19" | ||
5 | niro | 15795 | PBUILD="r2" |
6 | niro | 15794 | |
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 | } |