bin86: dev86: make bin86 a subpackage of dev86.
This commit is contained in:
parent
5687a12f43
commit
a0e3b207bf
4 changed files with 20 additions and 45 deletions
1
srcpkgs/bin86
Symbolic link
1
srcpkgs/bin86
Symbolic link
|
@ -0,0 +1 @@
|
|||
dev86
|
|
@ -1,12 +0,0 @@
|
|||
--- a/ld/x86_aout.h 2005-11-07 20:07:31.506442000 +0100
|
||||
+++ b/ld/x86_aout.h 2020-02-07 20:07:41.106982496 +0100
|
||||
@@ -12,6 +12,9 @@
|
||||
#if defined(i386) || defined(__BCC__) || defined(MSDOS)
|
||||
typedef long Long;
|
||||
#define __OUT_OK 1
|
||||
+#elif defined(__x86_64__)
|
||||
+typedef int Long;
|
||||
+#define __OUT_OK 1
|
||||
#else
|
||||
typedef char Long[4];
|
||||
#endif
|
|
@ -1,20 +0,0 @@
|
|||
# Template file for 'bin86'
|
||||
pkgname=bin86
|
||||
version=0.16.21
|
||||
revision=4
|
||||
short_desc="A complete 8086 assembler and loader"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
homepage="http://v3.sk/~lkundrak/dev86/"
|
||||
license="GPL-2"
|
||||
distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz"
|
||||
checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738
|
||||
archs="i686* x86_64*"
|
||||
|
||||
do_build() {
|
||||
make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr
|
||||
}
|
||||
do_install() {
|
||||
vmkdir usr/bin
|
||||
vmkdir usr/share/man/man1
|
||||
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man/man1 install
|
||||
}
|
|
@ -1,31 +1,37 @@
|
|||
# Template file for 'dev86'
|
||||
pkgname=dev86
|
||||
version=0.16.21
|
||||
revision=4
|
||||
archs="i686* x86_64*"
|
||||
makedepends="bin86"
|
||||
depends="${makedepends}"
|
||||
revision=5
|
||||
short_desc="8086 cross development compiler, assembler and linker"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-1.0-or-later, GPL-2.0-or-later, LGPL-2.0-or-later"
|
||||
homepage="http://v3.sk/~lkundrak/dev86/"
|
||||
distfiles="${homepage}/Dev86src-$version.tar.gz"
|
||||
checksum=234b110e6df9b7f6843e2ee53473127c2211243a16748f229fc0127845f68d94
|
||||
homepage="https://github.com/lkundrak/dev86/"
|
||||
distfiles="https://github.com/lkundrak/dev86/archive/v${version}.tar.gz"
|
||||
checksum=49c7ee9102d45c2eef072bfb8a49ba3821c9fe3ef31ccd3290f658b667b579a8
|
||||
nocross=yes
|
||||
nostrip=yes
|
||||
nopie=yes
|
||||
|
||||
do_build() {
|
||||
pre_build() {
|
||||
for f in libc/bcc libc/misc libc/msdos libc/string libc/syscall \
|
||||
libc/bios; do
|
||||
sed -i -e "s|\$(CCFLAGS) ||g" ${wrksrc}/${f}/Makefile
|
||||
done
|
||||
make DIST=${DESTDIR}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DIST=${DESTDIR} MANDIR=/usr/share/man install install-man
|
||||
|
||||
# Remove stuff supplied by bin86
|
||||
rm -f ${DESTDIR}/usr/bin/{as,ld,nm,objdump,size}86
|
||||
rm -f ${DESTDIR}/usr/share/man/man1/{as,ld}86.1
|
||||
}
|
||||
|
||||
bin86_package() {
|
||||
short_desc="Complete 8086 assembler and loader"
|
||||
pkg_install() {
|
||||
vmove /usr/bin/as86
|
||||
vmove /usr/bin/ld86
|
||||
vmove /usr/bin/nm86
|
||||
vmove /usr/bin/objdump86
|
||||
vmove /usr/bin/size86
|
||||
vmove /usr/share/man/man1/as86.1
|
||||
vmove /usr/share/man/man1/ld86.1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue