Initial import of kegs-0.91 from pkgsrc-wip, packaged by Timothy Larson.

Kent's Emulated GS - an Apple IIgs emulator for Mac OS X, Win32,
Linux, and Unix/X11.
This commit is contained in:
wiz 2009-11-10 16:19:57 +00:00
parent 4a90226acf
commit 1cb5392f50
12 changed files with 210 additions and 0 deletions

2
emulators/kegs/DESCR Normal file
View file

@ -0,0 +1,2 @@
Kent's Emulated GS - an Apple IIgs emulator for Mac OS X, Win32,
Linux, and Unix/X11.

54
emulators/kegs/Makefile Normal file
View file

@ -0,0 +1,54 @@
# $NetBSD: Makefile,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
#
DISTNAME= kegs.0.91
PKGNAME= kegs-0.91
CATEGORIES= emulators
MASTER_SITES= http://kegs.sourceforge.net/
MAINTAINER= christtrekker@users.sourceforge.net
HOMEPAGE= http://kegs.sourceforge.net/
COMMENT= Apple IIgs emulator for Mac OS X, Win32, Linux, and Unix/X11
# Official support
ONLY_FOR_PLATFORM= Linux-*-i386 Linux-*-powerpc SunOS-*-i386 SunOS-*-sparc Darwin-*-* HPUX-*-*
# Probably work
ONLY_FOR_PLATFORM+= *-*-i386 *-*-powerpc *-*-x86_64 *-*-ia64 *-*-mips *-*-m68k
PKG_DESTDIR_SUPPORT= user-destdir
#WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFIGURE_DIRS= src
BUILD_DIRS= src
USE_TOOLS+= gmake perl
INSTALLATION_DIRS+= bin share/doc/${PKGBASE} share/${PKGBASE}
# Has problems finding shared libs on some platforms...
CFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib
pre-build:
if [ -L ${WRKSRC}/src/vars ]; then ${RM} ${WRKSRC}/src/vars; fi
@${ECHO} Building for ${OPSYS} on ${MACHINE_ARCH}...
case "${OPSYS}_${MACHINE_ARCH}" in \
Linux_ppc) ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
Linux_i386) ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
SunOS_sparc*) ${LN} -s ${WRKSRC}/src/vars_solaris ${WRKSRC}/src/vars; break;;\
SunOS_i386) ${LN} -s ${WRKSRC}/src/vars_x86solaris ${WRKSRC}/src/vars; break;;\
Darwin*) ${LN} -s ${WRKSRC}/src/vars_mac ${WRKSRC}/src/vars; break;; \
HPUX*) ${LN} -s ${WRKSRC}/src/vars_hp ${WRKSRC}/src/vars; break;; \
*_i386) ${ECHO} "${OPSYS} on ${MACHINE_ARCH} is not officially supported, but ought to work..."; ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
*_ppc) ${ECHO} "${OPSYS} on ${MACHINE_ARCH} is not officially supported, but ought to work..."; ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
*_amd64|*_ia64|*_x86_64) ${ECHO} "${MACHINE_ARCH} is not supported, but might work..."; ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
*_mips|*_m68k) ${ECHO} "${MACHINE_ARCH} is not supported, but might work..."; ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
*) ${ECHO} Your platform is not recognized. ;; \
esac
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xkegs ${DESTDIR}${PREFIX}/bin/xkegs
${INSTALL_DATA} ${WRKSRC}/*txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/config.kegs ${DESTDIR}${PREFIX}/share/${PKGBASE}
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

11
emulators/kegs/PLIST Normal file
View file

@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
bin/xkegs
share/doc/kegs/CHANGES.txt
share/doc/kegs/COPYING.txt
share/doc/kegs/README.a2.compatibility.txt
share/doc/kegs/README.compile.txt
share/doc/kegs/README.kegs.txt
share/doc/kegs/README.linux.partitions.txt
share/doc/kegs/README.mac.txt
share/doc/kegs/README.win32.txt
share/kegs/config.kegs

13
emulators/kegs/distinfo Normal file
View file

@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
SHA1 (kegs.0.91.tar.gz) = 7af9f75b07f9346c8179ec929ddb66dbac90567a
RMD160 (kegs.0.91.tar.gz) = fe9f730e0397ce64cd510c90b07277e3a79dceb1
Size (kegs.0.91.tar.gz) = 805431 bytes
SHA1 (patch-aa) = c84dad2b3c4f165391090cafb217904bfc089cea
SHA1 (patch-ab) = b8f4f183935b8b8a10e3b300fc2d6f107512616d
SHA1 (patch-ac) = 29e407adc69c987b4fd5cb6a045158dfe23e5182
SHA1 (patch-ad) = 7611606133c7293506e15098f18f000c8f8f13db
SHA1 (patch-ae) = ea631b8202a7ed627fa6140f815b2b899054a621
SHA1 (patch-af) = 965b0162d3a57a6621ed4a5133785ae51ac63615
SHA1 (patch-ag) = b242c0d9c817a26fcbbc2e482a6f6a15f6b43adc
SHA1 (patch-ah) = a46251824fae140615965a63f770dcab08947371

View file

@ -0,0 +1,12 @@
$NetBSD: patch-aa,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/Makefile.orig Mon Dec 6 18:42:47 2004
+++ src/Makefile Mon May 4 11:37:22 2009
@@ -11,7 +11,7 @@
AS = $(CC)
-XLIBS = -L/usr/X11R6/lib
+XLIBS = -L${X11BASE}/lib
PERL = perl
all: $(TARGET)

View file

@ -0,0 +1,12 @@
$NetBSD: patch-ab,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_c.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_c 2009-11-05 10:30:06.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = $(OBJECTS1) xdriver.o
CC = gcc
-CCOPTS = -O
+CCOPTS = ${CFLAGS}
OPTS = -DNDEBUG
SUFFIX =
NAME = xkegs

View file

@ -0,0 +1,12 @@
$NetBSD: patch-ac,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_hp.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_hp 2009-11-05 10:30:18.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = engine_s.o $(OBJECTS1) sound_driver.o xdriver.o
CC = cc -Ae +DA1.1
-CCOPTS = -O
+CCOPTS = ${CFLAGS}
OPTS = -DNDEBUG
SUFFIX =
NAME = xkegs

View file

@ -0,0 +1,21 @@
$NetBSD: patch-ad,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_linuxppc.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_linuxppc 2009-11-05 10:30:39.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = $(OBJECTS1) xdriver.o
CC = cc
-CCOPTS = -O
+CCOPTS = ${CFLAGS}
OPTS = -DNDEBUG
SUFFIX =
NAME = xkegs
@@ -15,6 +15,6 @@
AS = cc
PERL = perl
-XOPTS = -I/usr/X11R6/include
-XLIBS = -L/usr/X11R6/lib
+XOPTS = -I${X11BASE}/include
+XLIBS = -L${X11BASE}/lib

View file

@ -0,0 +1,12 @@
$NetBSD: patch-ae,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_mac.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_mac 2009-11-05 10:30:51.000000000 -0600
@@ -1,7 +1,7 @@
TARGET = kegsmac
OBJECTS = $(OBJECTS1) macsnd_driver.o macdriver.o
-CCOPTS = -O2 -DMAC
+CCOPTS = ${CFLAGS} -DMAC
SUFFIX =
NAME = kegsmac

View file

@ -0,0 +1,21 @@
$NetBSD: patch-af,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_solaris.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_solaris 2009-11-05 10:31:04.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = $(OBJECTS1) xdriver.o
CC = cc
-CCOPTS = -O
+CCOPTS = ${CFLAGS}
OPTS = -DNDEBUG -DSOLARIS
SUFFIX =
NAME = xkegs
@@ -15,6 +15,6 @@
AS = cc
PERL = perl
-XOPTS = -I/usr/X/include
-XLIBS = -L/usr/X/lib
+XOPTS = -I${X11BASE}/include
+XLIBS = -L${X11BASE}/lib

View file

@ -0,0 +1,19 @@
$NetBSD: patch-ag,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_x86linux.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_x86linux 2009-11-05 10:31:37.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = $(OBJECTS1) xdriver.o
CC = cc
-CCOPTS = -O2 -Wall -fomit-frame-pointer -march=pentium
+CCOPTS = ${CFLAGS}
OPTS = -DKEGS_LITTLE_ENDIAN
SUFFIX =
NAME = xkegs
@@ -15,5 +15,5 @@
AS = cc
PERL = perl
-XOPTS = -I/usr/X11R6/include
+XOPTS = -I${X11BASE}/include

View file

@ -0,0 +1,21 @@
$NetBSD: patch-ah,v 1.1.1.1 2009/11/10 16:19:57 wiz Exp $
--- src/vars_x86solaris.orig 2004-12-06 18:42:47.000000000 -0600
+++ src/vars_x86solaris 2009-11-05 10:31:54.000000000 -0600
@@ -2,7 +2,7 @@
TARGET = xkegs
OBJECTS = $(OBJECTS1) xdriver.o
CC = gcc
-CCOPTS = -O
+CCOPTS = ${CFLAGS}
OPTS = -DNDEBUG -DSOLARIS -DKEGS_LITTLE_ENDIAN -DSOLARISSOUND
SUFFIX =
NAME = xkegs
@@ -15,6 +15,6 @@
AS = cc
PERL = perl
-XOPTS = -I/usr/X/include
-XLIBS = -L/usr/X/lib
+XOPTS = -I${X11BASE}/include
+XLIBS = -L${X11BASE}/lib