diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/glfw | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/glfw')
-rw-r--r-- | media-libs/glfw/Manifest | 2 | ||||
-rw-r--r-- | media-libs/glfw/files/glfw-2.7.7-dyn.patch | 31 | ||||
-rw-r--r-- | media-libs/glfw/files/glfw-2.7.7-pkgconfig.patch | 37 | ||||
-rw-r--r-- | media-libs/glfw/glfw-2.7.7.ebuild | 95 | ||||
-rw-r--r-- | media-libs/glfw/glfw-3.1.1.ebuild | 33 | ||||
-rw-r--r-- | media-libs/glfw/metadata.xml | 11 |
6 files changed, 209 insertions, 0 deletions
diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest new file mode 100644 index 000000000000..a5d494d8caf6 --- /dev/null +++ b/media-libs/glfw/Manifest @@ -0,0 +1,2 @@ +DIST glfw-2.7.7.tar.bz2 927805 SHA256 422e755979524a1da28e4addcae723b7132998ca15e89be41bf34964d9360aa2 SHA512 1b51b9d88c8eed9da8084421949b561a4779410a6369ffdf482c2d8a166bab8c58bbb087ef6f32180d3fe9430988549be5c183b338dd0e1191b2c4b4a7b55379 WHIRLPOOL 646d38fd3ea88e8aa19dcbfa8f8b933adc530ea946cd51c3e03971ed6cdb294dadf5020a876ba298c378896179a4a7ba0129b858fc7f1273a574fe1c2c388a77 +DIST glfw-3.1.1.tar.bz2 584344 SHA256 4a8516223c1df079efb398754f4533af7e943188ea9b5222e7f27c25e4822d61 SHA512 c54da5a1714aa1f9a79283922374672dac01c6a6093ed4cddd257d565258e6adffab83bcb34723cd34b415d9a8029f5f13fb225e6cf0a29bc74126a9bd5147e7 WHIRLPOOL d2ee39e01b3d6ff24af8fe5c262d4c099412eb42324726d8a0aa306d93fe6c6fe8477b6afd72e79122fc35258e573e87232128b193a461d7c7f8544338e292a5 diff --git a/media-libs/glfw/files/glfw-2.7.7-dyn.patch b/media-libs/glfw/files/glfw-2.7.7-dyn.patch new file mode 100644 index 000000000000..4dc4cc242ee7 --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.7-dyn.patch @@ -0,0 +1,31 @@ +--- lib/x11/Makefile.x11.in ++++ lib/x11/Makefile.x11.in +@@ -8,7 +8,7 @@ + ########################################################################## + # Default: Build GLFW static library + ########################################################################## +-all: libglfw.a libglfw.so ++all: libglfw.a libglfw.so.2.7.7 + + + ########################################################################## +@@ -112,7 +112,7 @@ + ########################################################################## + # Rule for building shared library + ########################################################################## +-libglfw.so: $(SHARED_OBJS) ++libglfw.so.2.7.7: $(SHARED_OBJS) + $(CC) $(SOFLAGS) -o $@ $(SHARED_OBJS) $(LFLAGS) $(LIBS) + + +--- compile.sh ++++ compile.sh +@@ -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.7" + echo "Linux" 1>&6 + ;; + xDarwin) diff --git a/media-libs/glfw/files/glfw-2.7.7-pkgconfig.patch b/media-libs/glfw/files/glfw-2.7.7-pkgconfig.patch new file mode 100644 index 000000000000..e880995c1a6b --- /dev/null +++ b/media-libs/glfw/files/glfw-2.7.7-pkgconfig.patch @@ -0,0 +1,37 @@ +support libsuffix, fix version + +--- lib/x11/Makefile.x11.in ++++ lib/x11/Makefile.x11.in +@@ -3,6 +3,7 @@ + # Installation prefix (default to /usr/local) + ########################################################################## + PREFIX ?= /usr/local ++LIBDIR ?= lib + + + ########################################################################## +@@ -99,7 +100,7 @@ + # Rule for building libglfw.pc + ########################################################################## + libglfw.pc: libglfw.pc.in +- $(SED) -e 's,\@PREFIX\@,$(PREFIX),' libglfw.pc.in > libglfw.pc ++ $(SED) -e 's,\@PREFIX\@,$(PREFIX),' -e 's,\@LIBDIR@,$(LIBDIR),' libglfw.pc.in > libglfw.pc + + + ########################################################################## +--- compile.sh ++++ compile.sh +@@ -734,11 +734,11 @@ + prefix=@PREFIX@ + exec_prefix=\${prefix} + includedir=\${prefix}/include +-libdir=\${exec_prefix}/lib ++libdir=\${exec_prefix}/@LIBDIR@ + + Name: GLFW + Description: A portable framework for OpenGL development +-Version: 2.7.4 ++Version: 2.7.7 + URL: http://www.glfw.org/ + Requires.private: gl x11 $PKG_LIBS + Libs: -L\${libdir} -lglfw $LFLAGS_THREAD $LFLAGS_CLOCK diff --git a/media-libs/glfw/glfw-2.7.7.ebuild b/media-libs/glfw/glfw-2.7.7.ebuild new file mode 100644 index 000000000000..c8155acc2cf7 --- /dev/null +++ b/media-libs/glfw/glfw-2.7.7.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs + +DESCRIPTION="The Portable OpenGL FrameWork" +HOMEPAGE="http://www.glfw.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples static-libs" + +DEPEND="x11-libs/libX11 + x11-libs/libXrandr + virtual/glu + virtual/opengl" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "s:\"docs/:\"/usr/share/doc/${PF}/pdf/:" \ + readme.html || die + + epatch "${FILESDIR}"/${P}-{dyn,pkgconfig}.patch + + # respect ldflags + sed -i \ + -e "s/\$(LFLAGS)/\$(LDFLAGS) \$(LFLAGS)/" \ + {lib/x11,examples}/Makefile.x11.in || die + + # respect cflags in linking command + # build system is messing up CFLAGS variable, so sed is the easy way to go + sed -i \ + -e "/^libglfw.so/{n;s/\$(CC)/\$(CC) ${CFLAGS}/;}" \ + lib/x11/Makefile.x11.in || die + + if use !static-libs ; then + sed -i \ + -e '/^all:/s/libglfw.a//' \ + lib/x11/Makefile.x11.in || die + fi +} + +src_configure() { + sh ./compile.sh +} + +src_compile() { + emake -C lib/x11 AR=$(tc-getAR) CC=$(tc-getCC) PREFIX=/usr LIBDIR=$(get_libdir) -f Makefile.x11 all libglfw.pc + use examples && emake -C examples CC=$(tc-getCC) -f Makefile.x11 all +} + +src_install() { + use static-libs && dolib.a lib/x11/libglfw.a + dolib.so lib/x11/libglfw.so.2.7.7 + dosym libglfw.so.2.7.7 /usr/$(get_libdir)/libglfw.so + + insinto /usr/$(get_libdir)/pkgconfig + doins lib/x11/libglfw.pc + doheader -r include/GL + dohtml -r readme.html + insinto /usr/share/doc/${PF}/pdf + doins docs/*.pdf + dodoc docs/readme.txt + + 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" + + docompress -x /usr/share/doc/${PF}/examples + 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 +} diff --git a/media-libs/glfw/glfw-3.1.1.ebuild b/media-libs/glfw/glfw-3.1.1.ebuild new file mode 100644 index 000000000000..58aac50bc09d --- /dev/null +++ b/media-libs/glfw/glfw-3.1.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils + +DESCRIPTION="The Portable OpenGL FrameWork" +HOMEPAGE="http://www.glfw.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="egl examples" + +RDEPEND="x11-libs/libXrandr + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXxf86vm + x11-libs/libXinerama + virtual/opengl" +DEPEND="${RDEPEND} + virtual/glu" + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use egl GLFW_USE_EGL) + $(cmake-utils_use examples GLFW_BUILD_EXAMPLES) + -DBUILD_SHARED_LIBS=1 + " + cmake-utils_src_configure +} diff --git a/media-libs/glfw/metadata.xml b/media-libs/glfw/metadata.xml new file mode 100644 index 000000000000..ca66c0fcb12a --- /dev/null +++ b/media-libs/glfw/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="egl">Use EGL instead of GLX for GL context creation</flag> + </use> + <upstream> + <remote-id type="sourceforge">glfw</remote-id> + </upstream> +</pkgmetadata> |