head	1.8;
access;
symbols
	pkgsrc-2026Q1:1.8.0.106
	pkgsrc-2026Q1-base:1.8
	pkgsrc-2025Q4:1.8.0.104
	pkgsrc-2025Q4-base:1.8
	pkgsrc-2025Q3:1.8.0.102
	pkgsrc-2025Q3-base:1.8
	pkgsrc-2025Q2:1.8.0.100
	pkgsrc-2025Q2-base:1.8
	pkgsrc-2025Q1:1.8.0.98
	pkgsrc-2025Q1-base:1.8
	pkgsrc-2024Q4:1.8.0.96
	pkgsrc-2024Q4-base:1.8
	pkgsrc-2024Q3:1.8.0.94
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.8.0.92
	pkgsrc-2024Q2-base:1.8
	pkgsrc-2024Q1:1.8.0.90
	pkgsrc-2024Q1-base:1.8
	pkgsrc-2023Q4:1.8.0.88
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.8.0.86
	pkgsrc-2023Q3-base:1.8
	pkgsrc-2023Q2:1.8.0.84
	pkgsrc-2023Q2-base:1.8
	pkgsrc-2023Q1:1.8.0.82
	pkgsrc-2023Q1-base:1.8
	pkgsrc-2022Q4:1.8.0.80
	pkgsrc-2022Q4-base:1.8
	pkgsrc-2022Q3:1.8.0.78
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.76
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.74
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.8.0.72
	pkgsrc-2021Q4-base:1.8
	pkgsrc-2021Q3:1.8.0.70
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.68
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.66
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.64
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.62
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.58
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.8.0.38
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.8.0.60
	pkgsrc-2019Q4-base:1.8
	pkgsrc-2019Q3:1.8.0.56
	pkgsrc-2019Q3-base:1.8
	pkgsrc-2019Q2:1.8.0.54
	pkgsrc-2019Q2-base:1.8
	pkgsrc-2019Q1:1.8.0.52
	pkgsrc-2019Q1-base:1.8
	pkgsrc-2018Q4:1.8.0.50
	pkgsrc-2018Q4-base:1.8
	pkgsrc-2018Q3:1.8.0.48
	pkgsrc-2018Q3-base:1.8
	pkgsrc-2018Q2:1.8.0.46
	pkgsrc-2018Q2-base:1.8
	pkgsrc-2018Q1:1.8.0.44
	pkgsrc-2018Q1-base:1.8
	pkgsrc-2017Q4:1.8.0.42
	pkgsrc-2017Q4-base:1.8
	pkgsrc-2017Q3:1.8.0.40
	pkgsrc-2017Q3-base:1.8
	pkgsrc-2017Q2:1.8.0.36
	pkgsrc-2017Q2-base:1.8
	pkgsrc-2017Q1:1.8.0.34
	pkgsrc-2017Q1-base:1.8
	pkgsrc-2016Q4:1.8.0.32
	pkgsrc-2016Q4-base:1.8
	pkgsrc-2016Q3:1.8.0.30
	pkgsrc-2016Q3-base:1.8
	pkgsrc-2016Q2:1.8.0.28
	pkgsrc-2016Q2-base:1.8
	pkgsrc-2016Q1:1.8.0.26
	pkgsrc-2016Q1-base:1.8
	pkgsrc-2015Q4:1.8.0.24
	pkgsrc-2015Q4-base:1.8
	pkgsrc-2015Q3:1.8.0.22
	pkgsrc-2015Q3-base:1.8
	pkgsrc-2015Q2:1.8.0.20
	pkgsrc-2015Q2-base:1.8
	pkgsrc-2015Q1:1.8.0.18
	pkgsrc-2015Q1-base:1.8
	pkgsrc-2014Q4:1.8.0.16
	pkgsrc-2014Q4-base:1.8
	pkgsrc-2014Q3:1.8.0.14
	pkgsrc-2014Q3-base:1.8
	pkgsrc-2014Q2:1.8.0.12
	pkgsrc-2014Q2-base:1.8
	pkgsrc-2014Q1:1.8.0.10
	pkgsrc-2014Q1-base:1.8
	pkgsrc-2013Q4:1.8.0.8
	pkgsrc-2013Q4-base:1.8
	pkgsrc-2013Q3:1.8.0.6
	pkgsrc-2013Q3-base:1.8
	pkgsrc-2013Q2:1.8.0.4
	pkgsrc-2013Q2-base:1.8
	pkgsrc-2013Q1:1.8.0.2
	pkgsrc-2013Q1-base:1.8
	pkgsrc-2012Q4:1.7.0.44
	pkgsrc-2012Q4-base:1.7
	pkgsrc-2012Q3:1.7.0.42
	pkgsrc-2012Q3-base:1.7
	pkgsrc-2012Q2:1.7.0.40
	pkgsrc-2012Q2-base:1.7
	pkgsrc-2012Q1:1.7.0.38
	pkgsrc-2012Q1-base:1.7
	pkgsrc-2011Q4:1.7.0.36
	pkgsrc-2011Q4-base:1.7
	pkgsrc-2011Q3:1.7.0.34
	pkgsrc-2011Q3-base:1.7
	pkgsrc-2011Q2:1.7.0.32
	pkgsrc-2011Q2-base:1.7
	pkgsrc-2011Q1:1.7.0.30
	pkgsrc-2011Q1-base:1.7
	pkgsrc-2010Q4:1.7.0.28
	pkgsrc-2010Q4-base:1.7
	pkgsrc-2010Q3:1.7.0.26
	pkgsrc-2010Q3-base:1.7
	pkgsrc-2010Q2:1.7.0.24
	pkgsrc-2010Q2-base:1.7
	pkgsrc-2010Q1:1.7.0.22
	pkgsrc-2010Q1-base:1.7
	pkgsrc-2009Q4:1.7.0.20
	pkgsrc-2009Q4-base:1.7
	pkgsrc-2009Q3:1.7.0.18
	pkgsrc-2009Q3-base:1.7
	pkgsrc-2009Q2:1.7.0.16
	pkgsrc-2009Q2-base:1.7
	pkgsrc-2009Q1:1.7.0.14
	pkgsrc-2009Q1-base:1.7
	pkgsrc-2008Q4:1.7.0.12
	pkgsrc-2008Q4-base:1.7
	pkgsrc-2008Q3:1.7.0.10
	pkgsrc-2008Q3-base:1.7
	cube-native-xorg:1.7.0.8
	cube-native-xorg-base:1.7
	pkgsrc-2008Q2:1.7.0.6
	pkgsrc-2008Q2-base:1.7
	cwrapper:1.7.0.4
	pkgsrc-2008Q1:1.7.0.2
	pkgsrc-2008Q1-base:1.7
	pkgsrc-2007Q4:1.6.0.4
	pkgsrc-2007Q4-base:1.6
	pkgsrc-2007Q3:1.6.0.2
	pkgsrc-2007Q3-base:1.6
	pkgsrc-2007Q2:1.4.0.12
	pkgsrc-2007Q2-base:1.4
	pkgsrc-2007Q1:1.4.0.10
	pkgsrc-2007Q1-base:1.4
	pkgsrc-2006Q4:1.4.0.8
	pkgsrc-2006Q4-base:1.4
	pkgsrc-2006Q3:1.4.0.6
	pkgsrc-2006Q3-base:1.4
	pkgsrc-2006Q2:1.4.0.4
	pkgsrc-2006Q2-base:1.4
	pkgsrc-2006Q1:1.4.0.2
	pkgsrc-2006Q1-base:1.4
	pkgsrc-2005Q4:1.3.0.18
	pkgsrc-2005Q4-base:1.3
	pkgsrc-2005Q3:1.3.0.16
	pkgsrc-2005Q3-base:1.3
	pkgsrc-2005Q2:1.3.0.14
	pkgsrc-2005Q2-base:1.3
	pkgsrc-2005Q1:1.3.0.12
	pkgsrc-2005Q1-base:1.3
	pkgsrc-2004Q4:1.3.0.10
	pkgsrc-2004Q4-base:1.3
	pkgsrc-2004Q3:1.3.0.8
	pkgsrc-2004Q3-base:1.3
	pkgsrc-2004Q2:1.3.0.6
	pkgsrc-2004Q2-base:1.3
	pkgsrc-2004Q1:1.3.0.4
	pkgsrc-2004Q1-base:1.3
	pkgsrc-2003Q4:1.3.0.2
	pkgsrc-2003Q4-base:1.3
	buildlink2-base:1.2
	netbsd-1-5-RELEASE:1.1.1.1
	netbsd-1-4-PATCH003:1.1.1.1
	netbsd-1-4-PATCH002:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2013.01.06.00.59.47;	author ryoon;	state Exp;
branches;
next	1.7;

1.7
date	2008.03.14.14.38.46;	author drochner;	state Exp;
branches;
next	1.6;

1.6
date	2007.09.16.09.25.03;	author joerg;	state Exp;
branches;
next	1.5;

1.5
date	2007.07.12.19.48.41;	author drochner;	state dead;
branches;
next	1.4;

1.4
date	2006.03.28.23.05.05;	author joerg;	state Exp;
branches;
next	1.3;

1.3
date	2003.09.22.12.27.29;	author xtraeme;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.15.18.01.11;	author rh;	state dead;
branches;
next	1.1;

1.1
date	2000.02.19.22.32.45;	author rh;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.02.19.22.32.45;	author rh;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Fix build on OpenBSD/amd64 5.2.
The patches are taken from OpenBSD ports repository.

* Disable joystick on OpenBSD/!i386
* Use sndio on OpenBSD
@
text
@$NetBSD: patch-aa,v 1.7 2008/03/14 14:38:46 drochner Exp $

--- src/sl/slPortability.h.orig	Tue Mar 11 02:06:24 2008
+++ src/sl/slPortability.h
@@@@ -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
 
@@@@ -59,7 +59,7 @@@@
 #  if defined(UL_LINUX)
 #    include <linux/soundcard.h>
 #    include <sys/ioctl.h>
-#  elif defined(__FreeBSD__)
+#  elif defined(__FreeBSD__) || defined(__DragonFly__)
 #    include <sys/soundcard.h>
 #  else
     /*
@@@@ -75,9 +75,14 @@@@
 #endif
 
 #ifdef UL_BSD
-#ifndef __FreeBSD__
-#  include <sys/audioio.h>
-#endif
+#  if defined(__OpenBSD__)
+#    define SL_USING_SNDIO
+#    include <sndio.h>
+#  else
+#    if !defined(__FreeBSD__) || !defined(__DragonFly__)
+#      include <sys/audioio.h>
+#    endif
+#  endif
 #endif
 
 /* Tom */
@


1.7
log
@update to 1.8.5
changes: bugfixes and code cleanup
@
text
@d1 1
a1 1
$NetBSD$
d3 1
a3 1
--- src/sl/slPortability.h.orig	2008-03-11 03:06:24.000000000 +0100
d5 9
d23 1
a23 1
@@@@ -75,7 +75,7 @@@@
d28 10
a37 3
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 #  include <sys/audioio.h>
 #endif
d39 2
@


1.6
log
@Fix DragonFly support.
@
text
@d3 1
a3 1
--- src/sl/slPortability.h.orig	2007-09-16 08:50:46.000000000 +0000
d5 1
a5 1
@@@@ -59,8 +59,8 @@@@
a9 1
-#    include <machine/soundcard.h>
d11 1
a11 1
+#    include <sys/soundcard.h>
a13 1
       Tom thinks this file may be <sys/soundcard.h> under some
@


1.5
log
@update to 1.8.4
too many changes to list here (1.6.0 was in 2002), see the bundled
ChangeLog file
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.4 2006/03/28 23:05:05 joerg Exp $
d3 4
a6 23
--- src/sl/slPortability.h.orig	Mon Sep 22 06:08:29 2003
+++ src/sl/slPortability.h	Mon Sep 22 06:09:02 2003
@@@@ -35,7 +35,8 @@@@
 
 /* the next lines are to define BSD */
 /* see http://www.freebsd.org/handbook/porting.html for why we do this */
-#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) \
+    && !defined(USG)
 #include <sys/param.h>
 #endif
 
@@@@ -70,15 +71,17 @@@@
 #include <limits.h>
 #include <math.h>
 
-#if (defined(__linux__) || defined(BSD)) && !defined(__NetBSD__)
+#if (defined(__linux__) || defined(BSD) || defined(__DragonFly__)) && !defined(__NetBSD__)
 #define SL_USING_OSS_AUDIO 1
 #endif
 
 #ifdef SL_USING_OSS_AUDIO
 #  if defined(__linux__)
d8 1
d11 1
a11 1
+#  elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000) || defined(__DragonFly__)
a12 2
+#  elif (defined(__FreeBSD__) && __FreeBSD_version < 500000)
+#    include <machine/soundcard.h>
d16 9
@


1.4
log
@Add DragonFly support.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.3 2003/09/22 12:27:29 xtraeme Exp $
@


1.3
log
@Updated to 1.6.0. Closes PR pkg/19015 and pkg/22612.

Changes:

PLIB v1.6.0 (Sept 2nd 2002)
~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Significant improvements and cleanup throughout PLIB,
    especially in PUI.
  * ssgAux library added - includes handy classes for
    more sophisticated effects layered on top of SSG.

      + Standard shapes like cubes, spheres,
        cylinders and teapots.
      + Water waves.
      + Fire.
      + Particle Systems
      + Lens Flare.

  * More example programs.
  * P-Guide GUI builder for PUI.
  * JS promoted to a full library.

PLIB v1.5.1 (July 21st 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Added ssgTween and ssgTweenController
  * Added puFileSelector - henceforth puFilePicker is deprecated.
  * Added ulList
  * Added VRML loader (this one works!)
  * Numerous bug fixes in other loaders.
  * Added TopHat support to JS
  * Added support for >3 simultaneous sounds in SL.
    (You have to explicitly enable that though - it's not
    the default)
  * Fixed bugs in util's directory handling.
  * puInput and puListBox now cope better with text that
    is too big for the widget
  * puListBox (and hence puFileSelector and puFilePicker)
    works with both large and small font sizes.
  * puDial changed to be derived from puSlider - many
    consequences of that change will be visible in the
    application.  (eg output range is 0..1 and not 0..360)
  * PUI widgets are now 'sticky' so that if you are
    dragging a slider along a puSlider and your mouse
    slips off the edge of it, it'll still have "focus".
  * Added sgLerpAnglesVec3 to linearly interpolate
    angles allowing for the nasty wrap-around-360
    problem.
  * Added sgLineSegment3ToLine3, sgDistSquaredToLineVec3
    sgDistSquaredToLineSegmentVec3, sgDistToLineVec3 and
    sgDistToLineSegmentVec3.  Also sgLine3 and sgLineSegment3
    structures.
  * Added a 'Gallery' page to the documentation to show
    potential developers the range of applications that use
    PLIB - and also to promote things our developers have done.
    To save download time and CVS space, the actual images
    are not in the PLIB tarball.

PLIB v1.4.2 (July 21st 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Changes in NET to allow compilation under RedHat 7.1
  * Fixed a small bug in ssgaSphere
  * Fixes a small bug in puFilePicker

PLIB v1.4.1 (June 25th 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Converted MSVC project files to 'BINARY' in the CVS archive
    because some versions of MSVC don't line UNIX-style line endings.
  * Many improvements and bug fixes to puFileSelector and puListBox.
  * Minor fix to NET to accomodate Solaris users.
  * Fixed puMenuBar so it highlights as you drag the mouse across it.
  * Fixed ulOpenDir so it returns NULL on error on non-MSVC systems
  * Changed colour of text on buttons in documentation to make them
    easier to read by colour-blind users.

PLIB v1.5.0 (June 20th 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Just a 'place holder' - actually identical to 1.4.0.

PLIB v1.4.0 (June 20th 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Fixed example programs so they don't use the obsolete _SSG_TYPE
    tags.
  * Removed multiplie <HEAD> tags on web pages.
  * Updated 'AUTHORS' file.
  * Added 'demos' to the CVS repository.

PLIB v1.3.3 (June 18th 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Various warnings cleaned up under MSVC.
  * Fixed function prototypes for the Quaternion functions in SG
  * Fixed bug in sgEulerToQuat where the angles were not being
    converted from degrees to radians.
  * Changed PUI to make sliders and dial widgets grab a hold
    of the mouse focus and not release it until the button is
    released.  This is a subtle but important behavioural change.
  * puDial's are now derived from puSlider's - one side-effect of
    that is that they now return 0..1 rather than 0..360 and no
    longer support the maximum and minimum range functions.

PLIB v1.3.2 (June 13th 2001)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * This CHANGES file has regrettably not been well maintained,
    hence there a numerous changes not listed here.
  * File loaders now require app to pass 'ssgLoaderOptions'
    rather than other ad-hoc callback function hooks.
  * Added Active Widget Implementation (pui)
  * Added puFilePicker
  * Added Ref Counting to ssgState
  * Added puBiSlider and puTriSlider
  * Added some missing 'AUTHORS' entries.
  * puDial widget (was actually in 1.3.1 but got
    missed in the 'CHANGES' file)
  * Fixed a problem in the configure.in that prevented
    ssgAux from building.
  * Moved the 'name' and 'user_data' (with associated
    set/get member functions) from ssgEntity down into
    ssgBase so that these functions will work with ssgState
    and ssgTexture objects.  This is needed for PrettyPoly.

PLIB v1.3.1 (Sept 15th 2000)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * PLIB examples' data files consolidated into a single
    'examples/data' directory.
  * Added 'SSGAUX' library - include <plib/ssgAux.h>
    and link to /usr/lib/libplibssgaux.a
  * Aux library has 'ssga' classes to add high level
    shapes such as cylinders, cubes and spheres (two
    different kinds).
  * Lots of new example programs.
    + New PUI 'complex' uses multiple windows.
    + Cute 'waving flag' demo
    + Working Quaternions versus Eulers demo
    + Model viewer (this is actually a useful
      program - as well as a demo).

PLIB v1.3.0 (July 1st 2000)
~~~~~~~~~~~~~~~~~~~~~~~~~~~

  * Unstable version of 1.2.0, no significant code
    changes.
@
text
@d1 1
a1 1
$NetBSD$
d5 20
a24 1
@@@@ -78,7 +78,11 @@@@
d27 3
a29 2
 #  elif defined(__FreeBSD__)
+#  if __FreeBSD_version >= 500000
d31 2
a32 3
+#  else
 #    include <machine/soundcard.h>
+#  endif
@


1.2
log
@Update plib to 1.2.0.  Changes are too numerous to list here.  The author
incorporated all NetBSD patches into this version, so none are required
anymore.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.1 2000/02/19 22:32:45 rh Exp $
d3 14
a16 45
--- 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
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
$NetBSD$
@


1.1.1.1
log
@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.
@
text
@@
