summaryrefslogtreecommitdiff
path: root/emulators/gnuboy
diff options
context:
space:
mode:
authoragc <agc>2001-05-30 11:13:18 +0000
committeragc <agc>2001-05-30 11:13:18 +0000
commit2287d3e34fca6536f6b0dc9a3c1366949edfff43 (patch)
treef38257ebc93e0d5106b9d3c2bfbb51b9ab6835f4 /emulators/gnuboy
parent79965e35b4975bcaa591d26bddcde3fea006fc5e (diff)
downloadpkgsrc-2287d3e34fca6536f6b0dc9a3c1366949edfff43.tar.gz
Initial import of gnuboy-0.9.13 into the NetBSD packages collection.
Addresses PR 13060 from motor@diku.dk Gnuboy is an open source gameboy emulator
Diffstat (limited to 'emulators/gnuboy')
-rw-r--r--emulators/gnuboy/Makefile19
-rw-r--r--emulators/gnuboy/distinfo8
-rw-r--r--emulators/gnuboy/patches/patch-aa39
-rw-r--r--emulators/gnuboy/patches/patch-ab24
-rw-r--r--emulators/gnuboy/patches/patch-ac265
-rw-r--r--emulators/gnuboy/patches/patch-ad17
-rw-r--r--emulators/gnuboy/pkg/DESCR1
-rw-r--r--emulators/gnuboy/pkg/PLIST6
8 files changed, 379 insertions, 0 deletions
diff --git a/emulators/gnuboy/Makefile b/emulators/gnuboy/Makefile
new file mode 100644
index 00000000000..842fa060d19
--- /dev/null
+++ b/emulators/gnuboy/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+DISTNAME= gnuboy-0.9.13
+CATEGORIES= emulators
+MASTER_SITES= http://brightrain.aerifal.cx/~laguna/src/
+
+MAINTAINER= motor@diku.dk
+HOMEPAGE= http://brightrain.aerifal.cx/~laguna/
+COMMENT= gameboy emulator
+
+GNU_CONFIGURE= yes
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuboy
+ ${INSTALL_PROGRAM} ${WRKSRC}/xgnuboy ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/etc/sample.rc \
+ ${WRKSRC}/CREDITS ${PREFIX}/share/doc/gnuboy/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/gnuboy/distinfo b/emulators/gnuboy/distinfo
new file mode 100644
index 00000000000..205600881a4
--- /dev/null
+++ b/emulators/gnuboy/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+SHA1 (gnuboy-0.9.13.tar.gz) = 0cf8f99f83282fb836da5c87b08213e00453a9fe
+Size (gnuboy-0.9.13.tar.gz) = 159517 bytes
+SHA1 (patch-aa) = 15f0cea1b6c456ccef97d07f3e88a7cc45f1588e
+SHA1 (patch-ab) = 2814c8b78b074163310300a3f531180e760eb109
+SHA1 (patch-ac) = f141f58c48ccacb2c549d5c2f6a48f58f0d0de4d
+SHA1 (patch-ad) = a76f88b49ad539f3b71c487259fe7a564905c2e2
diff --git a/emulators/gnuboy/patches/patch-aa b/emulators/gnuboy/patches/patch-aa
new file mode 100644
index 00000000000..ba313b4baa6
--- /dev/null
+++ b/emulators/gnuboy/patches/patch-aa
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+--- Makefile.in.orig Sun Mar 4 06:16:31 2001
++++ Makefile.in
+@@ -19,6 +19,8 @@
+ SYS_OBJS = sys/nix/nix.o $(ASM_OBJS)
+ SYS_INCS = -I/usr/local/include @XINCS@ -I./sys/nix
+
++OSS_LIB = @OSS_LIB@
++
+ FB_OBJS = @FB_OBJS@ @JOY@ @SOUND@
+ FB_LIBS =
+
+@@ -37,13 +39,13 @@
+ include Rules
+
+ fbgnuboy: $(OBJS) $(SYS_OBJS) $(FB_OBJS)
+- $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(FB_OBJS) -o $@ $(FB_LIBS)
++ $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(FB_OBJS) -o $@ $(FB_LIBS) $(OSS_LIB)
+
+ sgnuboy: $(OBJS) $(SYS_OBJS) $(SVGA_OBJS)
+- $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(SVGA_OBJS) -o $@ $(SVGA_LIBS)
++ $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(SVGA_OBJS) -o $@ $(SVGA_LIBS) $(OSS_LIB)
+
+ sdlgnuboy: $(OBJS) $(SYS_OBJS) $(SDL_OBJS)
+- $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(SDL_OBJS) -o $@ $(SDL_LIBS)
++ $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(SDL_OBJS) -o $@ $(SDL_LIBS) $(OSS_LIB)
+
+ sys/sdl/sdl.o: sys/sdl/sdl.c
+ $(MYCC) $(SDL_CFLAGS) -c $< -o $@
+@@ -52,7 +54,7 @@
+ $(MYCC) $(SDL_CFLAGS) -c $< -o $@
+
+ xgnuboy: $(OBJS) $(SYS_OBJS) $(X11_OBJS)
+- $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(X11_OBJS) -o $@ $(X11_LIBS)
++ $(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(X11_OBJS) -o $@ $(X11_LIBS) $(OSS_LIB)
+
+ install: all
+ $(INSTALL) -m 755 $(TARGETS) $(prefix)$(bindir)
diff --git a/emulators/gnuboy/patches/patch-ab b/emulators/gnuboy/patches/patch-ab
new file mode 100644
index 00000000000..9ef28372041
--- /dev/null
+++ b/emulators/gnuboy/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+--- configure.in.orig Sat Mar 24 22:26:19 2001
++++ configure.in
+@@ -53,6 +53,11 @@
+ SYS_DEFS=-DIS_OBSD
+ AC_CHECK_HEADERS(soundcard.h, [SOUND=sys/oss/oss.o])
+ ;;
++NetBSD)
++SYS_DEFS=-DIS_NBSD
++AC_CHECK_HEADERS(soundcard.h, [SOUND=sys/oss/oss.o])
++OSS_LIB="$OSS_LIB -lossaudio"
++;;
+ esac
+
+ test "$SOUND" || SOUND=sys/dummy/nosound.o
+@@ -196,6 +201,7 @@
+ AC_SUBST(TARGETS)
+ AC_SUBST(XINCS)
+ AC_SUBST(XLIBS)
++AC_SUBST(OSS_LIB)
+
+ AC_CONFIG_HEADER(sys/nix/config.h)
+ AC_OUTPUT(Makefile)
diff --git a/emulators/gnuboy/patches/patch-ac b/emulators/gnuboy/patches/patch-ac
new file mode 100644
index 00000000000..7910b9d0d75
--- /dev/null
+++ b/emulators/gnuboy/patches/patch-ac
@@ -0,0 +1,265 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+--- configure.orig Sun Mar 25 11:18:37 2001
++++ configure
+@@ -1385,6 +1385,50 @@
+ done
+
+ ;;
++NetBSD)
++SYS_DEFS=-DIS_NBSD
++for ac_hdr in soundcard.h
++do
++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++echo "configure:1395: checking for $ac_hdr" >&5
++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ cat > conftest.$ac_ext <<EOF
++#line 1400 "configure"
++#include "confdefs.h"
++#include <$ac_hdr>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++if test -z "$ac_err"; then
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=yes"
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=no"
++fi
++rm -f conftest*
++fi
++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++ cat >> confdefs.h <<EOF
++#define $ac_tr_hdr 1
++EOF
++ SOUND=sys/oss/oss.o
++else
++ echo "$ac_t""no" 1>&6
++fi
++done
++
++OSS_LIB="$OSS_LIB -lossaudio"
++;;
+ esac
+
+ test "$SOUND" || SOUND=sys/dummy/nosound.o
+@@ -1402,7 +1446,7 @@
+
+ if test "$with_svgalib" != "no" ; then
+ echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6
+-echo "configure:1406: checking for vga_init in -lvga" >&5
++echo "configure:1450: checking for vga_init in -lvga" >&5
+ ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1410,7 +1454,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lvga $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1414 "configure"
++#line 1458 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1421,7 +1465,7 @@
+ vga_init()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1441,17 +1485,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:1445: checking for $ac_hdr" >&5
++echo "configure:1489: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1450 "configure"
++#line 1494 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -1491,7 +1535,7 @@
+ # Extract the first word of "sdl-config", so it can be a program name with args.
+ set dummy sdl-config; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:1495: checking for $ac_word" >&5
++echo "configure:1539: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_SDL_CONFIG'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+@@ -1523,7 +1567,7 @@
+ old_incs="$INCS"
+ INCS="$INCS $SDL_CFLAGS"
+ echo $ac_n "checking for SDL_Init in -lSDL""... $ac_c" 1>&6
+-echo "configure:1527: checking for SDL_Init in -lSDL" >&5
++echo "configure:1571: checking for SDL_Init in -lSDL" >&5
+ ac_lib_var=`echo SDL'_'SDL_Init | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1531,7 +1575,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lSDL $SDL_LIBS $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1535 "configure"
++#line 1579 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1542,7 +1586,7 @@
+ SDL_Init()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1562,17 +1606,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:1566: checking for $ac_hdr" >&5
++echo "configure:1610: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1571 "configure"
++#line 1615 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -1617,7 +1661,7 @@
+ # Uses ac_ vars as temps to allow command line to override cache and checks.
+ # --without-x overrides everything else, but does not touch the cache.
+ echo $ac_n "checking for X""... $ac_c" 1>&6
+-echo "configure:1621: checking for X" >&5
++echo "configure:1665: checking for X" >&5
+
+ # Check whether --with-x or --without-x was given.
+ if test "${with_x+set}" = set; then
+@@ -1679,12 +1723,12 @@
+
+ # First, try using that file with no special directory specified.
+ cat > conftest.$ac_ext <<EOF
+-#line 1683 "configure"
++#line 1727 "configure"
+ #include "confdefs.h"
+ #include <$x_direct_test_include>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -1753,14 +1797,14 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-l$x_direct_test_library $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1757 "configure"
++#line 1801 "configure"
+ #include "confdefs.h"
+
+ int main() {
+ ${x_direct_test_function}()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ LIBS="$ac_save_LIBS"
+ # We can link X programs with no special library path.
+@@ -1850,7 +1894,7 @@
+ if test "$no_x" != "yes" ; then
+ with_x=yes
+ echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6
+-echo "configure:1854: checking for XShmCreateImage in -lXext" >&5
++echo "configure:1898: checking for XShmCreateImage in -lXext" >&5
+ ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1858,7 +1902,7 @@
+ ac_save_LIBS="$LIBS"
+ LIBS="-lXext $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1862 "configure"
++#line 1906 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+@@ -1869,7 +1913,7 @@
+ XShmCreateImage()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+@@ -1900,17 +1944,17 @@
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+-echo "configure:1904: checking for $ac_hdr" >&5
++echo "configure:1948: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1909 "configure"
++#line 1953 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++{ (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+ rm -rf conftest*
+@@ -2058,6 +2102,7 @@
+
+
+
++
+ trap '' 1 2 15
+ cat > confcache <<\EOF
+ # This file is a shell script that caches the results of configure
+@@ -2209,6 +2254,7 @@
+ s%@TARGETS@%$TARGETS%g
+ s%@XINCS@%$XINCS%g
+ s%@XLIBS@%$XLIBS%g
++s%@OSS_LIB@%$OSS_LIB%g
+
+ CEOF
+ EOF
diff --git a/emulators/gnuboy/patches/patch-ad b/emulators/gnuboy/patches/patch-ad
new file mode 100644
index 00000000000..6f34876892a
--- /dev/null
+++ b/emulators/gnuboy/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+
+--- sys/oss/oss.c.orig Sun Mar 25 08:17:38 2001
++++ sys/oss/oss.c
+@@ -6,6 +6,12 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+
++#ifdef IS_NBSD
++#include "sys/ioctl.h"
++#include "soundcard.h"
++#define DSP_DEVICE "/dev/audio"
++#endif
++
+ #ifdef IS_FBSD
+ #include "machine/soundcard.h"
+ #define DSP_DEVICE "/dev/dsp"
diff --git a/emulators/gnuboy/pkg/DESCR b/emulators/gnuboy/pkg/DESCR
new file mode 100644
index 00000000000..edef37c7563
--- /dev/null
+++ b/emulators/gnuboy/pkg/DESCR
@@ -0,0 +1 @@
+Gnuboy is an open source gameboy emulator
diff --git a/emulators/gnuboy/pkg/PLIST b/emulators/gnuboy/pkg/PLIST
new file mode 100644
index 00000000000..010527c8035
--- /dev/null
+++ b/emulators/gnuboy/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/30 11:13:18 agc Exp $
+bin/xgnuboy
+share/doc/gnuboy/README
+share/doc/gnuboy/sample.rc
+share/doc/gnuboy/CREDITS
+@dirrm share/doc/gnuboy