diff options
author | root <root@zonker.localdomain> | 2011-08-21 14:16:44 +0200 |
---|---|---|
committer | root <root@zonker.localdomain> | 2011-08-21 14:16:44 +0200 |
commit | 705c4bd055b54ceaea30ce4361f9d0d57785f924 (patch) | |
tree | 3a3e4b6f0151d82f7fb1e5026a2beadbefce3495 /media-libs/glfw | |
download | mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.gz mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.bz2 mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.zip |
import from svn
Diffstat (limited to 'media-libs/glfw')
-rw-r--r-- | media-libs/glfw/Manifest | 4 | ||||
-rw-r--r-- | media-libs/glfw/files/glfw-2.7.2-compile.patch | 38 | ||||
-rw-r--r-- | media-libs/glfw/files/glfw-2.7.2-dyn.patch | 20 | ||||
-rw-r--r-- | media-libs/glfw/glfw-2.7.2.ebuild | 79 |
4 files changed, 141 insertions, 0 deletions
diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest new file mode 100644 index 0000000..49d3550 --- /dev/null +++ b/media-libs/glfw/Manifest @@ -0,0 +1,4 @@ +AUX glfw-2.7.2-compile.patch 1115 RMD160 bc2f9a5aa05017f869d6b1c5deea79c88f3ead4d SHA1 f595dc8f44d3c14e62922967e36fb9d441415977 SHA256 89bd4c770e1187526eb747d0d39e8f024be76f96829e86330366a5260d7fb931 +AUX glfw-2.7.2-dyn.patch 806 RMD160 fa6cfd4f6770acd154e4cb73ccc5656395e5b824 SHA1 a845f0d5e1753e5bd73eb097af109a10f3726eea SHA256 9efb0b7d14c62e636c8896c278773afa1b09aef8ddfa945038407ae2b64e29a6 +DIST glfw-2.7.2.tar.bz2 902680 RMD160 409a0ebb121b8d13f30e0d626ca48ba141f06ff4 SHA1 19033c4d55ec98e85bb96954dddf213006857516 SHA256 c328f43351a1f935661d95970730a551d3207d6067260809155efb1a67eab537 +EBUILD glfw-2.7.2.ebuild 1950 RMD160 d5a7eab221e5ab61e44480420a38182a9f8cbcd7 SHA1 fbbf669aa78d5e03947cb530c8e6e7550c28a1e9 SHA256 97070c1a4816c56ab3ade1f3487946adfd7531872c56f5261911b019fc55a184 diff --git a/media-libs/glfw/files/glfw-2.7.2-compile.patch b/media-libs/glfw/files/glfw-2.7.2-compile.patch new file mode 100644 index 0000000..f212f96 --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.2-compile.patch @@ -0,0 +1,38 @@ +--- compile.sh.old 2011-08-19 11:20:37.927080832 +0200 ++++ compile.sh 2011-08-19 11:21:59.910080833 +0200 +@@ -88,7 +88,7 @@ + case "x`uname 2> /dev/null`" in + xLinux) + GLFW_LIB_CFLAGS="$GLFW_LIB_CFLAGS -D_GLFW_USE_LINUX_JOYSTICKS" +- SOFLAGS="-shared -Wl,-soname,libglfw.so" ++ SOFLAGS="-shared -Wl,-soname,libglfw.so.2.7" + echo "Linux" 1>&6 + ;; + xDarwin) +@@ -96,7 +96,7 @@ + echo "Mac OS X" 1>&6 + ;; + *) +- SOFLAGS="-shared -soname libglfw.so" ++ SOFLAGS="-shared -soname libglfw.so.2.7" + echo "Generic Unix" 1>&6 + ;; + esac +@@ -627,7 +627,7 @@ + CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS + + LIB = ../lib/x11/libglfw.a +-SOLIB = ../lib/x11/libglfw.so ++SOLIB = ../lib/x11/libglfw.so.2.7 + LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS + SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS + +@@ -652,7 +652,7 @@ + CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS + + LIB = ../lib/x11/libglfw.a +-SOLIB = ../lib/x11/libglfw.so ++SOLIB = ../lib/x11/libglfw.so.2.7 + LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS + SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS + diff --git a/media-libs/glfw/files/glfw-2.7.2-dyn.patch b/media-libs/glfw/files/glfw-2.7.2-dyn.patch new file mode 100644 index 0000000..e524e6d --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.2-dyn.patch @@ -0,0 +1,20 @@ +--- lib/x11/Makefile.x11.in.old 2011-08-19 11:14:45.190080831 +0200 ++++ lib/x11/Makefile.x11.in 2011-08-19 11:14:08.950080832 +0200 +@@ -8,7 +8,7 @@ + ########################################################################## + # Default: Build GLFW static library + ########################################################################## +-all: libglfw.a libglfw.so ++all: libglfw.a libglfw.so.2.7 + + + ########################################################################## +@@ -118,7 +118,7 @@ + ########################################################################## + # Rule for building shared library + ########################################################################## +-libglfw.so: $(SHARED_OBJS) ++libglfw.so.2.7: $(SHARED_OBJS) + $(CC) $(SOFLAGS) -o $@ $(SHARED_OBJS) $(LFLAGS) $(LIBS) + + diff --git a/media-libs/glfw/glfw-2.7.2.ebuild b/media-libs/glfw/glfw-2.7.2.ebuild new file mode 100644 index 0000000..3cd434e --- /dev/null +++ b/media-libs/glfw/glfw-2.7.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/glfw/glfw-2.6.ebuild,v 1.6 2010/09/13 12:09:46 tupone Exp $ + +EAPI=2 +inherit eutils multilib + +DESCRIPTION="The Portable OpenGL FrameWork" +HOMEPAGE="http://glfw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples" + +DEPEND="x11-libs/libXrandr + virtual/opengl" + +S=${WORKDIR}/${P} + +src_prepare() { + sed -i -e "s:\"docs/:\"/usr/share/doc/${PF}/pdf/:" readme.html || die "sed failed" + epatch "${FILESDIR}/${PF}-dyn.patch" + epatch "${FILESDIR}/${PF}-compile.patch" +} + +src_configure() { + sh compile.sh +} + +src_compile() { + emake -C lib/x11 PREFIX=/usr -f Makefile.x11 all libglfw.pc || die "emake failed" + if use examples; then + emake -C examples -f Makefile.x11 all || die "emake failed" + fi +} + +src_install() { + dolib.a lib/x11/libglfw.a || die "dolib.a failed" + dolib.so lib/x11/libglfw.so.2.7 || die "dolib.so failed" + dosym libglfw.so.2.7 /usr/$(get_libdir)/libglfw.so + + insinto /usr/$(get_libdir)/pkgconfig + doins lib/x11/libglfw.pc || die "doins failed" + insinto /usr/include/GL + doins include/GL/glfw.h || die "doins failed" + + dohtml -r readme.html + #insinto /usr/share/doc/${PF}/html/images + #doins images/* + insinto /usr/share/doc/${PF}/pdf + doins docs/*.pdf + + if use examples; then + local f + local MY_EXAMPLES="boing gears listmodes mipmaps + mtbench mthello particles pong3d splitview + triangle wave" + local MY_PICS="mipmaps.tga pong3d_field.tga pong3d_instr.tga + pong3d_menu.tga pong3d_title.tga + pong3d_winner1.tga pong3d_winner2.tga" + + insinto /usr/share/doc/${PF}/examples + + doins examples/Makefile.x11 + for f in $MY_EXAMPLES; do + doins examples/${f}.c + done + for f in $MY_PICS; do + doins examples/${f} + done + + insopts -m0755 + for f in $MY_EXAMPLES; do + doins examples/${f} + done + fi +} |