openglut stable port information

Package: openglut
Version: 0.6.3
Revision: 3

Source: mirror:sourceforge:%n/%n-%v.tar.bz2
Source-MD5: 9075d37d995d9f7dbb06a2e5fd9ffe20
PatchFile: %n.patch
PatchFile-MD5: 727daee92284815d07534fdcc0e7dc6d

BuildDepends: <<
fink (>= 0.24.12-1),
fink-package-precedence,
x11-dev
<<
Depends: %n-shlibs (= %v-%r)
BuildDependsOnly: true

Conflicts: glut, freeglut
Replaces: glut, freeglut

SetLDFLAGS: -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
ConfigureParams: <<
--mandir=%p/share/man \
--disable-static \
--enable-dependency-tracking \
--enable-fast \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
<<
CompileScript: <<
%{default_script}
fink-package-precedence --prohibit-bdep=%n .
<<

InstallScript: <<
make install DESTDIR=%d
ln -s libopenglut.dylib %i/lib/libglut.dylib
ln -s libopenglut.a %i/lib/libglut.a
ln -s libopenglut.la %i/lib/libglut.la
ln -s openglut.h %i/include/GL/glut.h
ln -s openglut_exp.h %i/include/GL/glut_exp.h
ln -s openglut_ext.h %i/include/GL/glut_ext.h
ln -s openglut_std.h %i/include/GL/glut_std.h
<<
DocFiles: COPYING ChangeLog OpenGLUT* README

SplitOff: <<
Package: %N-shlibs
Depends: x11
Files: lib/libopenglut.*.dylib
Shlibs: %p/lib/libopenglut.1.dylib 2.0.0 %n (>= 0.6.3-1)
DocFiles: COPYING ChangeLog OpenGLUT* README
<<

DescPackaging: <<
None of the glut/glut-shlibs, freeglut/freeglut-shlibs, and
openglut/openglut-shlibs sets are binary-compatible with each
other. Packages that wish to use a glut lib cannot have alternative
dependencies among these, but need to pick one self-consistent set.

This package builds the openglut libraries named as openglut rather
than glut to allow the co-existance with glut. As with freeglut,
symlinks for the libraries and headers to allow openglut to used as a
drop in replace for glut without requiring changes in the source code
of programs which require glut.

Fix installation location of manpages. See:
http://sourceforge.net/tracker/index.php?func=detail&aid=1773629&group_id=104013&atid=636633
Don't bother installing preformatted manpages.

Doesn't autodetect a few gl headers on 10.6 (not sure about other
platforms) but they are either used anyway or are not used to
enable/disable features or other build controls, so who cares?
<<
DescDetail: <<
OpenGLUT is an open source project to evolve the GLUT (OpenGL Utility
Toolkit) C/C++ API. OpenGLUT uses the freeglut code base as a
foundation for extending, enhancing and refining the API.

The longer term goal is to define and implement OpenGLUT API Version
1.0 - intended to supercede the GLUT 3.x API.
<<
Description: OpenGL utility toolkit
Homepage: http://openglut.sourceforge.net
License: OSI-Approved
Maintainer: Daniel Macks

openglut stable port .patch

diff -Nurd -x'*~' openglut-0.6.3.orig/doc/Makefile.in openglut-0.6.3/doc/Makefile.in
--- openglut-0.6.3.orig/doc/Makefile.in 2004-10-05 19:43:34.000000000 -0400
+++ openglut-0.6.3/doc/Makefile.in 2007-08-14 01:06:52.000000000 -0400
@@ -351,11 +351,9 @@
roff:
sh make-roff.sh

-install: man-ascii
- $(INSTALL) -d $(mandir)/man3 man
- $(INSTALL) -d $(mandir)/cat3 cat3
- $(INSTALL) man/* $(mandir)/man3
- $(INSTALL) cat3/* $(mandir)/cat3
+install: roff
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man3 man
+ $(INSTALL) man/* $(DESTDIR)$(mandir)/man3
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

openglut _unstable_ port .patch