Import plib-1.8.5

PLIB is a suite of portable game librairies.

PLIB includes sound effects, music, a complete 3D engine, font
rendering, a simple Windowing library, a game scripting language, a GUI,
networking, 3D math library and a collection of handy utility functions.
All are 100% portable across nearly all modern computing platforms.
Each library component is fairly independent of the others - so if you
want to use SDL, GTK, GLUT, or FLTK instead of PLIB's 'PW' windowing
library, you can.

Based on a submission from Gallon Sylvestre (MAINTAINER)
This commit is contained in:
ajacoutot 2008-11-10 22:10:22 +00:00
parent 0ca4dc860c
commit 5d414bd321
7 changed files with 151 additions and 0 deletions

27
devel/plib/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
# needs joystick.h
ONLY_FOR_ARCHS = i386
COMMENT = suite of portable game librairies
DISTNAME = plib-1.8.5
CATEGORIES = devel games
HOMEPAGE = http://plib.sourceforge.net/
MASTER_SITES = ${HOMEPAGE}/dist/
MAINTAINER = Gallon Sylvestre <ccna.syl@gmail.com>
# LGPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
USE_X11 = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-GL=${X11BASE}
.include <bsd.port.mk>

5
devel/plib/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (plib-1.8.5.tar.gz) = R6b79jZowe7WMQJAOLLqkA==
RMD160 (plib-1.8.5.tar.gz) = VQGb83WOwlQoBNjjmU9L7VoYjmA=
SHA1 (plib-1.8.5.tar.gz) = ws9+Ph5Y97Y9rkuyHk+oLD5NTPw=
SHA256 (plib-1.8.5.tar.gz) = SFsiv2/cDaBn406tXibwArdjJvY3HirgBkFd6mo4CjI=
SIZE (plib-1.8.5.tar.gz) = 779133

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-configure,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
--- configure.orig Tue Mar 11 03:10:29 2008
+++ configure Sun Nov 9 12:22:37 2008
@@ -6751,13 +6751,13 @@ fi
-{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
+echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -6833,7 +6833,7 @@ if test $ac_cv_lib_pthread_pthread_create = yes; then
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_sl_slPortability_h,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
--- src/sl/slPortability.h.orig Tue Mar 11 03:06:24 2008
+++ src/sl/slPortability.h Sun Nov 9 12:22:37 2008
@@ -51,7 +51,7 @@
#include <limits.h>
#include <math.h>
-#if (defined(UL_LINUX) || defined(UL_BSD)) && !defined(__NetBSD__)
+#if (defined(UL_LINUX) || defined(UL_BSD)) && !defined(__NetBSD__) && !defined(__OpenBSD__)
#define SL_USING_OSS_AUDIO 1
#endif

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_sl_sl_h,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
--- src/sl/sl.h.orig Tue Mar 11 03:06:24 2008
+++ src/sl/sl.h Sun Nov 9 12:22:37 2008
@@ -28,6 +28,10 @@
#include <stdio.h>
#include "slPortability.h"
+#ifdef __OpenBSD__
+#include <sys/ioctl.h>
+#endif
+
#ifdef SL_USING_OSS_AUDIO
#define SLDSP_DEFAULT_DEVICE "/dev/dsp"
#elif defined(UL_WIN32)

9
devel/plib/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
PLIB is a suite of portable game librairies.
PLIB includes sound effects, music, a complete 3D engine, font
rendering, a simple Windowing library, a game scripting language, a GUI,
networking, 3D math library and a collection of handy utility functions.
All are 100% portable across nearly all modern computing platforms.
Each library component is fairly independent of the others - so if you
want to use SDL, GTK, GLUT, or FLTK instead of PLIB's 'PW' windowing
library, you can.

55
devel/plib/pkg/PLIST Normal file
View File

@ -0,0 +1,55 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
include/plib/
include/plib/fnt.h
include/plib/js.h
include/plib/net.h
include/plib/netBuffer.h
include/plib/netChannel.h
include/plib/netChat.h
include/plib/netMessage.h
include/plib/netMonitor.h
include/plib/netSocket.h
include/plib/pcx.h
include/plib/psl.h
include/plib/pu.h
include/plib/puAux.h
include/plib/puAuxLocal.h
include/plib/puFLTK.h
include/plib/puGLUT.h
include/plib/puNative.h
include/plib/puPW.h
include/plib/puSDL.h
include/plib/pw.h
include/plib/sg.h
include/plib/sl.h
include/plib/slPortability.h
include/plib/sm.h
include/plib/ssg.h
include/plib/ssgAux.h
include/plib/ssgKeyFlier.h
include/plib/ssgMSFSPalette.h
include/plib/ssgaBillboards.h
include/plib/ssgaFire.h
include/plib/ssgaLensFlare.h
include/plib/ssgaParticleSystem.h
include/plib/ssgaScreenDump.h
include/plib/ssgaShapes.h
include/plib/ssgaSky.h
include/plib/ssgaSphere.h
include/plib/ssgaWaveSystem.h
include/plib/ssgconf.h
include/plib/ul.h
include/plib/ulRTTI.h
lib/libplibfnt.a
lib/libplibjs.a
lib/libplibnet.a
lib/libplibpsl.a
lib/libplibpu.a
lib/libplibpuaux.a
lib/libplibpw.a
lib/libplibsg.a
lib/libplibsl.a
lib/libplibsm.a
lib/libplibssg.a
lib/libplibssgaux.a
lib/libplibul.a