[Fink-devel] revised glut/freeglut again

2005-04-17 Thread Jack Howarth
Dan,
   Okay. I think the glut.info and freeglut.info attached below should
meet with your approval. I have moved the shared libraries of glut-shlibs
into /sw/lib/glut and those from freeglut-shlibs into /sw/libs/freeglut.
This allows one to build against both and the binaries will still run.
These changes will break the binaries built against glut folks currently
have but this is unavoidable since they have been linking them from
/sw/lib and we are now moving them into their own subdirs. At least the
breakage will be obvious as well as the solution...fink rebuild. Both of
these info files and the debs they create all pass fink validate.
--
Package: glut
Version: 3.7
Revision: 24
GCC: 3.3
Maintainer: Jack Howarth [EMAIL PROTECTED]
Source: http://www.opengl.org/developers/documentation/%N/%N-%v.tar.gz
Source-MD5: dc932666e2a1c8a0b148a4c32d111ef3
Depends: %N-shlibs (= 3.7-24)
Conflicts: freeglut
Replaces: freeglut
BuildDepends: fink (= 0.9.9), x11-dev
Patch: %n.patch
CompileScript: 
 (cd include/GL; cp glut.h %b/lib/%N/)
 (cd lib/%N; xmkmf; make)

InstallScript: 
 mkdir -p %i/include/GL
 mkdir -p %i/lib/glut
 (cd include/GL; install -c -m 644 glut.h %i/include/GL)
 (cd lib/%N  c++ -dynamiclib -o libglut.3.7.dylib -install_name %p/lib/glut/li
bglut.3.dylib -compatibility_version 3.7 -current_version 3.7 -all_load libglut.
a -L/usr/X11R6/lib -lGL -lGLU -lX11 -lXmu -lXi -lXext -lXt -lICE -lSM)
 (cd lib/%N; install -c libglut.a libglut.3.7.dylib %i/lib/glut)
 (cd %i/lib/glut  ln -s libglut.3.7.dylib libglut.3.dylib  cd %i/lib  ln -
s glut/libglut.3.dylib libglut.dylib  ln -s glut/libglut.a libglut.a)

DocFiles: CHANGES FAQ.glut NOTICE Portability.txt README README.glut2 README.glu
t3
BuildDependsOnly: True
SplitOff: 
 Package: %N-shlibs
 Depends: libgl
 Replaces: %N-shlibs ( 3.7-24)
 Files: lib/glut/libglut.3.7.dylib lib/glut/libglut.3.dylib
 Shlibs: %p/lib/glut/libglut.3.dylib 3.7.0 %n (= 3.7-13)
 DocFiles: NOTICE README

Description: Opengl utility toolkit
DescPort: 
 Share libraries built manually from the static one. Patch to find glut.h.

DescPackaging: 
 For legal/distribution details please refer to the document 'NOTICE'
installed in yourfinkdirectory/share/doc/glut. This package only installs
the glut libraries and header file.

Originally packaged by Matt Stephenson.

License: Restrictive/Distributable
Homepage: http://www.opengl.org/developers/documentation/glut/index.html
---
Package: freeglut
Version: 2.2.0
Revision: 3
GCC: 3.3
Maintainer: Jack Howarth [EMAIL PROTECTED]
Source: mirror:sourceforge:freeglut/%N-%v.tar.gz
Source-MD5: 9439b8745f443131c2dad00bc93dc0ef 
Depends: %N-shlibs (= %v-%r)
BuildDepends: fink (= 0.9.9), x11-dev
Conflicts: glut 
Replaces: glut
NoSetCFLAGS: true
NoSetLDFLAGS: true
SetLDFLAGS: -Wl,-search_paths_first
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: 
  #!/bin/sh -e
  ./configure %c --libdir=%p/lib/freeglut
  make

InstallScript: 
#!/bin/sh -e
  make install DESTDIR=%d DYLD_LIBRARY_PATH=`pwd`/lib:`pwd`/lib/freeglut
# add extra symlinks in the main lib directory
  ln -s freeglut/libglut.3.dylib %i/lib/libglut.dylib
  ln -s freeglut/libglut.a %i/lib/libglut.a

DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
BuildDependsOnly: True
SplitOff: 
 Package: %N-shlibs
 Depends: libgl
 Files: lib/freeglut/lib*.*.dylib 
 Shlibs: %p/lib/freeglut/libglut.11.dylib 11.8.0 %n (= 2.2.0-1)
 DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README TODO

Description: Opengl utility toolkit
DescDetail: 
Freeglut is a completely OpenSourced alternative to the OpenGL Utility 
Toolkit (GLUT) library released under the X-Consortium license. The
original GLUT library seems to have been abandoned with the most recent
version (3.7) dating back to August 1998. Its license does not allow 
anyone to distribute modified library code. Freeglut is actively
developed and doesn't suffer the license restrictions. The goal is
to gradually depreciate the current glut package out of fink replacing
it with freeglut.

License: OSI-Approved
Homepage: http://freeglut.sourceforge.net/
---
In creating these packages, I did notice one feature that fink lacks, the
ability to specify a Build-Conflicts field. This would have been very nice
to have to make sure the glut package was deinstalled when freeglut was
built and that the freeglut package was deinstalled when glut was built.
This is handy just to make sure the builds aren't leaky and picking up
headers and libs from the wrong glut that might be installed.
  Jack


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.

Re: [Fink-devel] revised glut/freeglut again

2005-04-17 Thread Martin Costabel
Jack Howarth wrote:
[]
In creating these packages, I did notice one feature that fink lacks, the
ability to specify a Build-Conflicts field. This would have been very nice
Actually, fink does have a BuildConflicts field. Not necessary in this 
case, though, because a BuildDepends: glut will remove freeglut and vice 
versa, because of the mutual Conflicts/Replaces fields of these packages.

to have to make sure the glut package was deinstalled when freeglut was
built and that the freeglut package was deinstalled when glut was built.
This is handy just to make sure the builds aren't leaky and picking up
headers and libs from the wrong glut that might be installed.
--
Martin
---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] revised glut/freeglut again

2005-04-17 Thread Daniel Macks
On Mon, Apr 18, 2005 at 01:52:18PM +1000, Martin Costabel wrote:
 Jack Howarth wrote:
 In creating these packages, I did notice one feature that fink lacks, the

s/lacks/fails to document in the Packaging Manual/

 ability to specify a Build-Conflicts field. This would have been very nice
 to have to make sure the glut package was deinstalled when freeglut was
 built and that the freeglut package was deinstalled when glut was built.
 This is handy just to make sure the builds aren't leaky and picking up
 headers and libs from the wrong glut that might be installed.

There would be the same situation if a freeglut got released that had
a bug in it, or really even any feature or #define change between
versions. This situation has occured, where an installed libfoo-dev or
libfoo-shlibs propagates errors or other features into the build of a
new version of libfoo*. It's always a symptom of a mistake in the
build process (for example, there was an old libtool that reliably
caused this), so that's what must be fixed.

Otherwise we may as well have a general feature whereby any .info that
supplies a -shlibs implicitly adds a BuildConflicts on all packages
that it supplies.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel