GLFW is now at release 2.5.0 ( http://glfw.sf.net/ ) Unfortunatly there are a few issues that make simply copying the 2.4.2 ebuild not work. Also note that the ebuild uses an inelegant manipulation to move glfw-2.5 to glfw-2.5.0 since the new package has its files in glfw-2.5 instead of 2.5.0 where we'd like it. The download file is named with 2.5.0, however. I added a fairly extensive comment to the ebuild that probably explains better. The hack doesn't use any magic constants though, so would hopefully work with furure releases. I left the keyword as x86 ( same as 2.4.2 ), although it might need to be ~x86 ( It worked on my machine, but that obviously means little. ) The code is supposed to work on OSX as well, but I don't have the hardware or ebuild skills to implement what's nessesary for that. It also includes binding to other languages that I don't know what to do with. I also replaced the hard-coded example files lists I used in the 2.4.2 ebuild with some find lines. It's more general now, but if using find in that manner is unacceptable I can go back to the explicit method. Reproducible: Always Steps to Reproduce:
Created attachment 56967 [details] New ebuild for GLFW 2.5.0
It could be really fine to add a glfw.pc in /usr/lib/pkgconfig/ in order to help developpers using this lib.
I'm fairly sure there isn't one included, nor do I know what's involved in creating one. One related new thing in this version: I included the Makefile.x11 for the example programs in the examples directory. It's set up to include the CFLAGS and LFLAGS, so developers can consult that. me22gentoo ~ $ head -n 6 /usr/share/doc/glfw-2.5.0/examples/Makefile.x11 ########################################################################## # Automatically generated Makefile for GLFW ########################################################################## CC = gcc CFLAGS = -I../include -I/usr/X11R6/include -O3 -ffast-math -Wall LFLAGS = -L../lib/x11 -L/usr/X11R6/lib -lglfw -lGLU -lGL -lX11 -lXxf86vm -lXext -lpthread -lm If somebody could give a pointer on how to make a patch or something for the makefile that would help make a glfw.pc, I'd be willing...
version bumped in portage. Thanks for the bug report.