Magellan Linux

Annotation of /branches/R11-unstable/extras/bin86/bin86-0.16.21-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32855 - (hide annotations) (download)
Mon Apr 29 13:49:29 2019 UTC (5 years ago) by niro
File size: 1009 byte(s)
-release branches/R11-unstable
1 niro 26269 # $Id$
2    
3     PNAME="bin86"
4     PVER="0.16.21"
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://v3.sk/~lkundrak/dev86/"
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://v3.sk/~lkundrak/dev86/${SRCFILE}
21     mirror://${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${PNAME}-0.16.17-x86_64.patch
23     )
24    
25     UP2DATE="updatecmd http://v3.sk/~lkundrak/dev86/ | grep ${PNAME} | highesttarball 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     }