blob: e18929f9c0b372948899ec9dd419f777a0ac1203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dev86
pkgver=0.16.19
pkgrel=1
pkgdesc="A real mode 80x86 assembler and linker"
url="http://www.debath.co.uk/dev86/"
arch="all"
license="GPL+ and GPLv2+ and LGPLv2+"
depends=
makedepends="bash coreutils"
install=""
subpackages="$pkgname-doc"
source="http://www.debath.co.uk/dev86/Dev86src-$pkgver.tar.gz
dev86-noelks.patch
dev86-pic.patch
dev86-print-overflow.patch
dev86-long.patch
dev86-0.16.19-memmove.patch"
_builddir="$srcdir"/dev86-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# use our CFLAGS
sed -i -e "s/-O2 -g/${CFLAGS}/" \
makefile.in || return 1
# if [ "$CARCH" = x86_64 ]; then
sed -i \
-e 's,alt-libs elksemu,alt-libs,' \
-e 's,install-lib install-emu,install-lib,' \
makefile.in || return 1
# fi
sed -i \
-e "s:-O2 -g:${CFLAGS}:" \
-e '/INEXE=/s:-s::' \
makefile.in || return 1
# no stripping
sed -i -e '/INSTALL_OPTS=/s:-s::' \
bin86/Makefile || return 1
sed -i -e '/install -m 755 -s/s:-s::' \
dis88/Makefile || return 1
}
build() {
cd "$_builddir"
export CPPFLAGS=""
export SHELL=/bin/bash
msg "building bcc86 unproto copt as86 ld86"
make -j1 bcc86 unproto copt as86 ld86 CFLAGS="$CFLAGS" CC="${CC:-gcc}" \
NATIVE='-DA_OUT_INCL=\"../libc/include/a.out.h\"' \
|| return 1
msg "building cpp"
make -C cpp CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
msg "building ar"
make -C ar CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
msg "building ld"
make -C ld CFLAGS="$CFLAGS" CC="${CC:-gcc}" || return 1
msg "building the rest..."
make -j1 DIST="$pkgdir" CC="${CC:-gcc}" || return 1
}
package() {
cd "$_builddir"
make DIST="$pkgdir" \
MANDIR=/usr/share/man \
LIBDIR=/usr/lib/bcc \
INCLDIR=/usr/lib/bcc \
LOCALPREFIX=/usr \
install install-man
}
md5sums="442e98e1afa23fe00d40c5a996385942 Dev86src-0.16.19.tar.gz
eba7081bc5dbd72b7b9b902275251499 dev86-noelks.patch
d508a2a8ededa9e34dbd9105dfd66290 dev86-pic.patch
7ce097efcb8c043727b4b3bf6c396c75 dev86-print-overflow.patch
95e9df3245d46a02154fbe2f8b907782 dev86-long.patch
cbb648a57fd13b716ba91c26af248885 dev86-0.16.19-memmove.patch"
sha256sums="33398b87ca85e2b69e4062cf59f2f7354af46da5edcba036c6f97bae17b8d00e Dev86src-0.16.19.tar.gz
3846e55cec22149e99e25540f84ac2e2ff640881fe6f21b6558766522181354d dev86-noelks.patch
cae90d286eae1230566e423dfee37cd339fe17ba7c32f49de9c4a17fd357f1b2 dev86-pic.patch
831dc73d4754093c0fc00de15e5bf1af15d88aa6be1452c7c97805900a17f7c6 dev86-print-overflow.patch
eda9999b6ab2baf9a62e7fb720f56d3d5727b79dbb825a29bf42f685a3299355 dev86-long.patch
6e40de6505cbd8233787f735f353ad37f8472dd7b1c81d20faac5553bc9531f7 dev86-0.16.19-memmove.patch"
sha512sums="4077f7ac800330eb4658ffaa53dc8cc982792b1dcd7a59625cba4a5dac494117c6bd4ec5307bf02349ad6ae3d0c0903ab2e41123a8df94373e469092fa005cd3 Dev86src-0.16.19.tar.gz
70eb52bd314a10b2f2b2ea00c88b398772f0a998cdd9db2d73904bc3e7db6cac8317f10b8dd838c04659d54cd5411d1a8b63dc89257ef04048c07b85b182e966 dev86-noelks.patch
1dafea998e3d62e71f069eb6bd6e0e05c7152a0470fbf9baa82c3ac9e3f5fe20c342ed0b35be91e82ce83638346a3e8c9855e77f4a71656f2ee7590e999e55fb dev86-pic.patch
6e916c8f0891559fc8d1019dfcfe66575d0e3b4a562f721bbe38db976c18f27360bb13f0408fa759a4081b0e636ac94eefd3defae290fbe49ca15f200fb245ad dev86-print-overflow.patch
94c7532724d6c02a389303f1ce023e13fe95abecb86e1e4126504701cc755053ad810514e599c1151d166c45c51e1af15cbfac9e25895408b1133feb86dce21e dev86-long.patch
5b003ec7e263b71fee0af6371c5693ba4d35a1aeb214046b7ff124e7b7254bab824574814f479592112d206a75c423c1ef7ed783e33adaa9c302d9444143639b dev86-0.16.19-memmove.patch"
|