Hi! Please find attached freeglut-2.2.0.ebuild. freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. Different to the original glut library it is actively developed, maintained and doesn't have the license restrictions (X11) that doesn't allow one to modify the codebase. Check http://freeglut.sourceforge.net/ for more information. I added a blocker against a possibly installed glut lib. the same should be added for the glut ebuild against freeglut as they share the same library name libglut. the demo sources are installed in the demos directory of the doc directory. I suggested media-libs as category as the original glut library also resides there. i decided to mask the package until somebody verifies that it also works for him. (currently only tested on x86) hope i did get my first ebuild right ;), tamer. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 22835 [details] freeglut-2.2.0.ebuild
the blocker would be best if it was !virtual/glut media-libs/glut isnt the only glut provider
Created attachment 22876 [details] revised freeglut-2.2.0.ebuild
true! attached new revised version. tamer.
This compiles and runs just fine, but one question... Do we want all the demos installed into the docs directory? >>> /usr/share/doc/freeglut-2.2.0/demos/ >>> /usr/share/doc/freeglut-2.2.0/demos/One/ >>> /usr/share/doc/freeglut-2.2.0/demos/One/one.c.gz >>> /usr/share/doc/freeglut-2.2.0/demos/Lorenz/ >>> /usr/share/doc/freeglut-2.2.0/demos/Lorenz/lorenz.c.gz >>> /usr/share/doc/freeglut-2.2.0/demos/Fractals/ >>> /usr/share/doc/freeglut-2.2.0/demos/Fractals/fractals.dat.gz >>> /usr/share/doc/freeglut-2.2.0/demos/Fractals/fractals.c.gz >>> /usr/share/doc/freeglut-2.2.0/demos/Fractals/fractals_random.c.gz >>> /usr/share/doc/freeglut-2.2.0/demos/shapes/ >>> /usr/share/doc/freeglut-2.2.0/demos/shapes/shapes.c.gz >>> /usr/share/doc/freeglut-2.2.0/demos/CallbackMaker/ >>> /usr/share/doc/freeglut-2.2.0/demos/CallbackMaker/CallbackMaker.c.gz That seems a mighty odd place to put them, if they're even wanted.
hmm, possibly not. i believe the ebuild should be just as fine without. should i upload another revised version or is it ok for you to remove the part from DEMODIR on in src_install()? greets, tamer.
Created attachment 23742 [details] freeglut-2.2.0.ebuild
added revised freeglut-2.2.0.ebuild that removes the examples.
Bryan: ping. Here's your ebuild -- run some QA.
Almost everything looks alright, but the copyright header should read 2004 now. Reading through the installation instructions on the freeglut website I see a step involving symlinks for replacing the real glut. I'm not a freeglut user, so I don't know if this is necessary. Please enlighten me.
Bryan, I am a freeglut developer, and - wow - that documentation is wrong. Good thing it's optional. We don't even build libfreeglut anymore. Expect it gone soon. This build should work just fine. It installs the correct libraries (some of these are symlinks, of course): /usr/lib/libglut.so.3.8.0 /usr/lib/libglut.so.3 /usr/lib/libglut.so /usr/lib/libglut.la /usr/lib/libglut.a Should someone change the copyright notice on the ebuild and reattach it otherwise verbatim, or does that not matter?
I can change it upon commit when repoman reminds me.
Bryan, make sure you check the Fedora RPM for any patches, if you haven't already. Some might be useful.
I've checked their 2.2.0-0.10 srpm and it doesn't appear to have any patches.
I have succesfuly build freeglut using third version of ebuild (dated 2004-01-13), when it will be put in portage tree?
The ebuilds works well on my system too. Thanks! It works with gcc 3.4 too. Please add it to the portage tree.
Thanks for your comments. I'm interested in getting this into the tree, but unfortunately I haven't had time yet.
Bryan: got time to get this in today or tomorrow? If not, I'll try to.
Added to portage.