summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2000-02-19 22:32:44 +0000
committerrh <rh@pkgsrc.org>2000-02-19 22:32:44 +0000
commitbeb3e7b9f4fd3891a0fef0e3b063c7ba286438e6 (patch)
tree157d1d874f37d669d138116e38d903349cb958e9 /games
parent1159cfdd0e83301b91d3a900251e846116cf0574 (diff)
downloadpkgsrc-beb3e7b9f4fd3891a0fef0e3b063c7ba286438e6.tar.gz
Initial import of plib-1.0.20, a set of OpenSource (LGPL) libraries that
will permit programmers to write games and other realtime interactive applications that are 100% portable across a wide range of hardware and operating systems.
Diffstat (limited to 'games')
-rw-r--r--games/plib/Makefile18
-rw-r--r--games/plib/files/md53
-rw-r--r--games/plib/files/patch-sum8
-rw-r--r--games/plib/patches/patch-aa47
-rw-r--r--games/plib/patches/patch-ab67
-rw-r--r--games/plib/patches/patch-ac22
-rw-r--r--games/plib/patches/patch-ad17
-rw-r--r--games/plib/patches/patch-ae17
-rw-r--r--games/plib/patches/patch-af13
-rw-r--r--games/plib/pkg/COMMENT1
-rw-r--r--games/plib/pkg/DESCR34
-rw-r--r--games/plib/pkg/PLIST19
12 files changed, 266 insertions, 0 deletions
diff --git a/games/plib/Makefile b/games/plib/Makefile
new file mode 100644
index 00000000000..c321cd4514c
--- /dev/null
+++ b/games/plib/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/02/19 22:32:44 rh Exp $
+#
+
+DISTNAME= plib-1.0.20
+CATEGORIES= games x11
+MASTER_SITES= http://plib.sourceforge.net/dist/
+
+MAINTAINER= rh@netbsd.org
+HOMEPAGE= http://plib.sourceforge.net/
+
+DEPENDS+= Mesa-*:../../graphics/Mesa
+
+GNU_CONFIGURE= YES
+USE_X11= YES
+
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -Dunix=1 -I${X11BASE}/include"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/plib/files/md5 b/games/plib/files/md5
new file mode 100644
index 00000000000..0af154b2fb7
--- /dev/null
+++ b/games/plib/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+MD5 (plib-1.0.20.tar.gz) = f588a6390fe6366977ae2c9084131a35
diff --git a/games/plib/files/patch-sum b/games/plib/files/patch-sum
new file mode 100644
index 00000000000..91f962a4b10
--- /dev/null
+++ b/games/plib/files/patch-sum
@@ -0,0 +1,8 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+MD5 (patch-aa) = 99428518086327a9397823ad5b06372e
+MD5 (patch-ab) = 52db087ec9d9e64e823627b0d941b4bb
+MD5 (patch-ac) = c2d68548f24f43142fac355555823d57
+MD5 (patch-ad) = cc40ca79ae3af7a146dbe5ebb1bcb60c
+MD5 (patch-ae) = 9f773e10721ed4d04824710eb93060c1
+MD5 (patch-af) = 847c2310d51e100f9fd76efaa18a4d8f
diff --git a/games/plib/patches/patch-aa b/games/plib/patches/patch-aa
new file mode 100644
index 00000000000..4fd51192560
--- /dev/null
+++ b/games/plib/patches/patch-aa
@@ -0,0 +1,47 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- configure.orig Sat Oct 30 02:26:14 1999
++++ configure Sat Feb 19 21:51:23 2000
+@@ -2917,6 +2917,42 @@
+ echo "$ac_t""no" 1>&6
+ fi
+
++ac_safe=`echo "machine/joystick.h" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for machine/joystick.h""... $ac_c" 1>&6
++echo "configure:2887: checking for machine/joystick.h" >&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 2892 "configure"
++#include "confdefs.h"
++#include <machine/joystick.h>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:2897: \"$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
++ cat >> confdefs.h <<\EOF
++#define MACHINE_JOYSTICK_IS_PRESENT 1
++EOF
++
++else
++ echo "$ac_t""no" 1>&6
++fi
++
+ ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6
+ echo "configure:2923: checking for linux/joystick.h" >&5
diff --git a/games/plib/patches/patch-ab b/games/plib/patches/patch-ab
new file mode 100644
index 00000000000..47eeef0b63f
--- /dev/null
+++ b/games/plib/patches/patch-ab
@@ -0,0 +1,67 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- src/js/js.h.orig Sat Oct 16 23:08:01 1999
++++ src/js/js.h Sat Feb 19 22:26:37 2000
+@@ -29,7 +29,7 @@
+ # include <unistd.h>
+ # include <fcntl.h>
+
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <machine/joystick.h>
+ # define JS_DATA_TYPE joystick
+ # define JS_RETURN (sizeof(struct JS_DATA_TYPE))
+@@ -76,7 +76,7 @@
+ #ifdef WIN32
+ # define _JS_MAX_AXES 6
+ #else
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ # define _JS_MAX_AXES 2
+ # else
+ # define _JS_MAX_AXES 6
+@@ -85,7 +85,7 @@
+
+ class jsJoystick
+ {
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ int id ;
+ #endif
+ #ifdef WIN32
+@@ -153,7 +153,7 @@
+ }
+
+ #else
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ FILE *joyfile;
+ char joyfname[1024];
+ int noargs, in_no_axes;
+@@ -178,7 +178,7 @@
+ if ( error )
+ return ;
+
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+
+ float axes[_JS_MAX_AXES];
+ int buttons[_JS_MAX_AXES];
+@@ -316,7 +316,7 @@
+ default : num_axes = 0 ; setError () ; break ;
+ }
+ #else
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ id = ident;
+ sprintf ( fname, "/dev/joy%d", ident ) ;
+ # else
+@@ -467,7 +467,7 @@
+ }
+
+ if ( buttons )
+-# ifdef __FreeBSD__
++# if defined(__FreeBSD__) || defined(__NetBSD__)
+ *buttons = ( js.b1 ? 1 : 0 ) | ( js.b2 ? 2 : 0 ) ;
+ # else
+ *buttons = js.buttons ;
diff --git a/games/plib/patches/patch-ac b/games/plib/patches/patch-ac
new file mode 100644
index 00000000000..755d46049ef
--- /dev/null
+++ b/games/plib/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- src/sl/slPortability.h.orig Sat Feb 19 22:11:49 2000
++++ src/sl/slPortability.h Sat Feb 19 22:15:15 2000
+@@ -34,7 +34,7 @@
+ #include <limits.h>
+ #include <math.h>
+
+-#if defined(__linux__) || defined(BSD)
++#if (defined(__linux__) || defined(BSD)) && !defined(__NetBSD__)
+ #define SL_USING_OSS_AUDIO 1
+ #endif
+
+@@ -56,7 +56,7 @@
+ #endif
+ #endif
+
+-#ifdef __OpenBSD__
++#if defined (__NetBSD__) || defined(__OpenBSD__)
+ #include <sys/audioio.h>
+ #endif
+
diff --git a/games/plib/patches/patch-ad b/games/plib/patches/patch-ad
new file mode 100644
index 00000000000..b4c320549e9
--- /dev/null
+++ b/games/plib/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- src/sl/slDSP.cxx.orig Sun Oct 10 18:54:44 1999
++++ src/sl/slDSP.cxx Sat Feb 19 22:39:53 2000
+@@ -388,10 +388,10 @@
+ }
+
+ /* ------------------------------------------------------------ */
+-/* OpenBSD 2.3 this should be very close to SUN Audio */
++/* NetBSD and OpenBSD should be very close to SUN Audio */
+ /* ------------------------------------------------------------ */
+
+-#elif defined(__OpenBSD__) || defined(SOLARIS)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(SOLARIS)
+ void slDSP::open ( char *device, int _rate, int _stereo, int _bps )
+ {
+
diff --git a/games/plib/patches/patch-ae b/games/plib/patches/patch-ae
new file mode 100644
index 00000000000..23777a7d38c
--- /dev/null
+++ b/games/plib/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- src/sl/smMixer.cxx.orig Fri Aug 13 05:14:12 1999
++++ src/sl/smMixer.cxx Sat Feb 19 22:41:41 2000
+@@ -156,10 +156,10 @@
+ setVolume ( SOUND_MIXER_CD , left, right ) ;
+ }
+
+-#elif defined(__OpenBSD__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__)
+
+ /* ------------------------------------------------------------ */
+-/* OpenBSD 2.3 */
++/* NetBSD or OpenBSD 2.3 */
+ /* ------------------------------------------------------------ */
+
+ void smMixer::open ( char *device )
diff --git a/games/plib/patches/patch-af b/games/plib/patches/patch-af
new file mode 100644
index 00000000000..658c5870efa
--- /dev/null
+++ b/games/plib/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+
+--- src/sl/sl.h.orig Sun Oct 10 18:45:06 1999
++++ src/sl/sl.h Sat Feb 19 22:45:03 2000
+@@ -46,7 +46,7 @@
+ int error ;
+ int fd ;
+
+-#ifdef __OpenBSD__
++#if defined (__NetBSD__) || defined(__OpenBSD__)
+ audio_info_t ainfo; // ioctl structure
+ audio_offset_t audio_offset; // offset in audiostream
+ long counter; // counter-written packets
diff --git a/games/plib/pkg/COMMENT b/games/plib/pkg/COMMENT
new file mode 100644
index 00000000000..4129b1dbabc
--- /dev/null
+++ b/games/plib/pkg/COMMENT
@@ -0,0 +1 @@
+set of libraries for writing portable games/realtime interactive apps
diff --git a/games/plib/pkg/DESCR b/games/plib/pkg/DESCR
new file mode 100644
index 00000000000..a5a2c3305bf
--- /dev/null
+++ b/games/plib/pkg/DESCR
@@ -0,0 +1,34 @@
+ PLIB is a set of OpenSource (LGPL) libraries that will permit
+programmers to write games and other realtime interactive
+applications that are 100% portable across a wide range of hardware
+and operating systems. PLIB is OpenSource software, issued under
+the terms of the Library varient GNU Public License (LGPL).
+
+The contents of PLIB are:
+
+ * GUI Widgets: Picoscopic User Interface Library (PUI)
+ A fully portable GUI interface that needs only
+ GLUT, OpenGL and C++.
+
+ * Sound Replay: Sound Library (SL)
+ A fully portable Audio driver suited to C++, GLUT
+ and realtime applications that need low latency.
+ Includes a simple 'MOD' music loader/player.
+
+ * Matrix/Vector math: Simple Geometry Library(SG)
+ A set of matrix and vector math functions that was
+ specifically written to simplify the writing of
+ efficient OpenGL programs. You need to include
+ this code into any SSG applications.
+
+ * Scene Graph: Simple Scene Graph Library (SSG)
+ A scene graph library layered on top of OpenGL.
+
+ * Joystick: JS
+ Supports more Joysticks with more axes and
+ buttons than GLUT.
+
+ * Fonts/Text: Fonts'n'Text Library (FNT)
+ Supports text output in OpenGL using texture
+ mapped fonts. These are much faster to render
+ than GLUT's fonts.
diff --git a/games/plib/pkg/PLIST b/games/plib/pkg/PLIST
new file mode 100644
index 00000000000..83cdcfdbb29
--- /dev/null
+++ b/games/plib/pkg/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/02/19 22:32:45 rh Exp $
+include/fntLocal.h
+include/js.h
+include/sl.h
+include/sm.h
+include/slPortability.h
+include/slMODPrivate.h
+include/slMODfile.h
+include/pu.h
+include/sg.h
+include/ssg.h
+include/ssgKeyFlier.h
+include/fnt.h
+lib/libsl.a
+lib/libsm.a
+lib/libpu.a
+lib/libsg.a
+lib/libssg.a
+lib/libfnt.a