initial import of gle-3.0.4:

--
The GLE Tubing and Extrusion Library is a graphics application
programming interface (API). The library consists of a number of
"C" language subroutines for drawing tubing and extrusions. It is
a very fast implementation of these shapes, outperforming all other
implementations, most by orders of magnitude.  The library is
distributed in source code form, in a package that includes
documentation, a VRML proposal, Makefiles, and full source code and
header files. It uses the OpenGL (TM) programming API to perform
the actual drawing of the tubing and extrusions.
 
GLE is designed for and maintained on the Linux operating system,
and is known to run on other Unix operating systems such as AIX,
IRIX, Ultrix and HPUX with OpenGL or Mesa. GLE is also known to run
on IBM OS/2 Warp, Apple Macintosh OS9, and Microsoft Windows NT and
has been used to develop screen-savers for some of these popular
PC operating systems.
 
WWW: http://www.linas.org/gle/
This commit is contained in:
lebel 2001-06-20 18:57:28 +00:00
parent 7f08f73fef
commit e09ed92d0e
10 changed files with 1439 additions and 0 deletions

32
graphics/gle/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
COMMENT= "OpenGL Extrusion library"
VERSION= 3.0.4
DISTNAME= gle-${VERSION}
CATEGORIES= graphics devel
NEED_VERSION= 1.402
HOMEPAGE= http://www.linas.org/gle/
MAINTAINER= David Lebel <lebel@openbsd.org>
LIB_DEPENDS= glut.3::graphics/glut
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.linas.org/gle/pub/
USE_X11= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-extract:
@perl -i -p -e 's/3GLE/3/;' ${WRKSRC}/man/*.man
.include <bsd.port.mk>

3
graphics/gle/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (gle-3.0.4.tar.gz) = c9fe28413b7ed13b7b4b684fb51f321a
RMD160 (gle-3.0.4.tar.gz) = 5a3367982459ea61355471a7f4f3173fd75234c5
SHA1 (gle-3.0.4.tar.gz) = 42243cc814c2a453a77b94275d987b34a252437b

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
--- Makefile.in.orig Wed Jun 13 15:13:01 2001
+++ Makefile.in Wed Jun 20 14:15:13 2001
@@ -70,7 +70,7 @@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
VERSION = @VERSION@
-SUBDIRS = src examples man public_html swig
+SUBDIRS = src man public_html swig
EXTRA_DIST = .cvsignore

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
$OpenBSD: patch-ltconfig,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
--- ltconfig.orig Sun Jun 11 14:04:25 2000
+++ ltconfig Wed Jun 20 14:15:13 2001
@@ -1396,11 +1396,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
- ;;
+ case "$host_os" in
+ openbsd2.[01234567])
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac ;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
@@ -1997,13 +2007,10 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,84 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
--- ltmain.sh.orig Sun Jun 11 14:23:46 2000
+++ ltmain.sh Wed Jun 20 14:15:13 2001
@@ -1079,7 +1079,18 @@ compiler."
# These systems don't actually have c library (as such)
continue
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ continue
+ ;;
esac
+ elif test "$arg" = "-lc_r"; then
+ case "$host" in
+ *-*-openbsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
elif test "$arg" = "-lm"; then
case "$host" in
*-*-cygwin* | *-*-beos*)
@@ -1091,6 +1102,10 @@ compiler."
deplibs="$deplibs $arg"
;;
+ -?thread)
+ deplibs="$deplibs $arg"
+ ;;
+
-module)
module=yes
continue
@@ -1795,6 +1810,9 @@ compiler."
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3555,40 +3573,6 @@ libdir='$install_libdir'\
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,45 @@
$OpenBSD: patch-man_Makefile_in,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
--- man/Makefile.in.orig Wed Jun 13 15:13:03 2001
+++ man/Makefile.in Wed Jun 20 14:15:13 2001
@@ -70,15 +70,15 @@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
VERSION = @VERSION@
-man_MANS = gle.3gle gleExtrusion.3gle gleHelicoid.3gle gleLathe.3gle glePolyCone.3gle glePolyCylinder.3gle gleScrew.3gle gleSetJoinStyle.3gle gleSetNumSides.3gle gleSpiral.3gle gleSuperExtrusion.3gle gleTextureMode.3gle gleToroid.3gle gleTwistExtrusion.3gle
+man_MANS = gle.3 gleExtrusion.3 gleHelicoid.3 gleLathe.3 glePolyCone.3 glePolyCylinder.3 gleScrew.3 gleSetJoinStyle.3 gleSetNumSides.3 gleSpiral.3 gleSuperExtrusion.3 gleTextureMode.3 gleToroid.3 gleTwistExtrusion.3
-man_RAW = $(man_MANS:.3gle=.man)
+man_RAW = $(man_MANS:.3=.man)
EXTRA_DIST = $(man_RAW) Makefile.sgi
-SUFFIXES = .man .3gle
+SUFFIXES = .man .3
CLEANFILES = $(man_MANS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -102,7 +102,7 @@ TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
-.SUFFIXES: .3gle .man
+.SUFFIXES: .3 .man
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps man/Makefile
@@ -233,11 +233,11 @@ maintainer-clean-generic clean mostlycle
# for the ordinary install, just copy the raw files ....
-.man.3gle:
+.man.3:
cp -p $< $@
# preformat and compress -- these should install in the preformat dir
-.man.3gle.gz:
+.man.3.gz:
nroff -man < $< > $*.nr
gzip $*.nr
mv $*.nr.gz $@

18
graphics/gle/pkg/DESCR Normal file
View File

@ -0,0 +1,18 @@
The GLE Tubing and Extrusion Library is a graphics application
programming interface (API). The library consists of a number of
"C" language subroutines for drawing tubing and extrusions. It is
a very fast implementation of these shapes, outperforming all other
implementations, most by orders of magnitude. The library is
distributed in source code form, in a package that includes
documentation, a VRML proposal, Makefiles, and full source code and
header files. It uses the OpenGL (TM) programming API to perform
the actual drawing of the tubing and extrusions.
GLE is designed for and maintained on the Linux operating system,
and is known to run on other Unix operating systems such as AIX,
IRIX, Ultrix and HPUX with OpenGL or Mesa. GLE is also known to run
on IBM OS/2 Warp, Apple Macintosh OS9, and Microsoft Windows NT and
has been used to develop screen-savers for some of these popular
PC operating systems.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
lib/libgle.so.3.4
DYNLIBDIR(%D/lib)

20
graphics/gle/pkg/PLIST Normal file
View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/06/20 18:57:28 lebel Exp $
include/GL/gle.h
lib/libgle.a
lib/libgle.la
%%SHARED%%
man/man3/gle.3
man/man3/gleExtrusion.3
man/man3/gleHelicoid.3
man/man3/gleLathe.3
man/man3/glePolyCone.3
man/man3/glePolyCylinder.3
man/man3/gleScrew.3
man/man3/gleSetJoinStyle.3
man/man3/gleSetNumSides.3
man/man3/gleSpiral.3
man/man3/gleSuperExtrusion.3
man/man3/gleTextureMode.3
man/man3/gleToroid.3
man/man3/gleTwistExtrusion.3
@dirrm include/GL