summaryrefslogtreecommitdiff
path: root/media-libs/freeglut
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/freeglut
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/freeglut')
-rw-r--r--media-libs/freeglut/Manifest8
-rw-r--r--media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch16
-rw-r--r--media-libs/freeglut/freeglut-2.8.1-r1.ebuild35
-rw-r--r--media-libs/freeglut/freeglut-3.0.0.ebuild40
-rw-r--r--media-libs/freeglut/metadata.xml16
5 files changed, 115 insertions, 0 deletions
diff --git a/media-libs/freeglut/Manifest b/media-libs/freeglut/Manifest
new file mode 100644
index 000000000000..a4148d6382ff
--- /dev/null
+++ b/media-libs/freeglut/Manifest
@@ -0,0 +1,8 @@
+AUX freeglut-2.4.0-bsd-usb-joystick.patch 755 SHA256 52ada965b1dc6abbb9ce0bbc00bf91452c6717b74016d21e0a10df24a0ffe83c SHA512 7aa28f277864357e9b2bb6e7fcd801bb9dd6e131fec8989aca26990cf59b60c3465030ea5068ca01cb7f46bf406c0f3fce2327affb7f288ee3026b5717717561 WHIRLPOOL 91710af0b3c06f36b65f51045e12f444329b4954268012422d0c6eafefc0a4f5f25f4b01b348256fdbce9956f766ee91773fc3cf8e28e0f9941ccd9b92930fb9
+DIST freeglut-2.8.1.tar.gz 1005343 SHA256 dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a SHA512 935fddfa197c5f0ec74c5f2005fe5a0ebfd39f4a402cc79363da7cfe2e8576263130e44bd7e4f6c07ea53d3137bd7ca8ee8db85c0a09f25508fcf1b9ed07052e WHIRLPOOL f191f870fa85b867f17ac3b69d18be386dd020b5f9c0fbc58814718986760570aa93cf4b2790daf944587d95a60408892fe68bd56f0dcc3f0f154c8a1ae33256
+DIST freeglut-3.0.0.tar.gz 419095 SHA256 2a43be8515b01ea82bcfa17d29ae0d40bd128342f0930cd1f375f1ff999f76a2 SHA512 9c45d5b203b26a7ff92331b3e080a48e806c92fbbe7c65d9262dd18c39cd6efdad8a795a80f499a2d23df84b4909dbd7c1bab20d7dd3555d3d88782ce9dd15b0 WHIRLPOOL 15ff1910fbb1bbcc2017da15c7d8b3436d543bd1901007e66159645560c5811eeb5da8f757a83d4503c37db4158ad3b61889a8976ddd3231213c427c4982fcbd
+EBUILD freeglut-2.8.1-r1.ebuild 1237 SHA256 3f4e10e70a3a4da982ccc6b11a187518a6a607b23c64fdee3517195d6ac32696 SHA512 7b2143975958c1509dfc9e5a9328c975963f40212f9e0a79662fc4148d065311e6b8ebebf296877ad137ecbec97d00d7a4c7cdd2379e56c22a382f823cd4b8ca WHIRLPOOL 3b619ac2631bf0bb44dfd06e1d529c6656475a0db6fadb88d8ec78a4574f36a8bc24c0bf80e75529bc1c159ac657669d1ab7296a72fddc64f41cd7f6a72a3f35
+EBUILD freeglut-3.0.0.ebuild 1364 SHA256 2ba5fcc39545a46e41184990941b336bbf090cafebe193c20e89c00df1704b53 SHA512 35e21f624f6488a1c45c085fecdc6875f27262c6863f7dc86a64abbc824a8bd029efc726d90665a8b9ebfa35c8fce5921b08a4f123b661729824a58d4011b306 WHIRLPOOL 319b675a95bb7468e88c4b65ff8a809570cfc51ab4b7e80aa9e91eae3d22c3582f61bf7ccd9140f4609168da0de031f8428595825f7ae4ffee4fa1434273861c
+MISC ChangeLog 4210 SHA256 184f8e4e0151005936a563f7cb3535d42c63385331d700d394aae127263d4411 SHA512 63f3f70486f58a2d28f019f3006433f7c4639c1189963d2058a69810792fd1bc1f65dc83b1cf72e70617322dd976a683ce5877114b12eb2da4a88afddf22b05f WHIRLPOOL c5692e952a9097f643e156be5a78ae8c1ec1fcd8282f88d3a76709d2971ecdb6afd05f7e280a8b220dba25d00f5ea568a007656f8f1f5b07159821c8995d09a2
+MISC ChangeLog-2015 14821 SHA256 03e64c2ffa6da469a1150db7d2a3a5ab472f68344d42b0ca8d2b81d8ac9aa4f5 SHA512 ff7676886e00314c2587ef451ad525bb00fdd975fa3a714eb7bae669d83280efdfd659a3903b6c45dc75e43ed294ef3dcf57d4490f0e08aeb7a4079fa65eac5a WHIRLPOOL 811ba130ff309173ed6dbb949f4e9d09741a089b55869afa9b0c4ab8bdc969bae9508fde8a677450d15e64f404cb2d9fcb22e4f7d0d474c3d92777441270ca08
+MISC metadata.xml 528 SHA256 d5dadbdf6a9231411f2e148ca13b75280c11ed0dccd0da0fe387cc38b10420c6 SHA512 94dc412f8f049bb88723fdba9f9b89645eb792547a768ea524a711ad9302c5cac38a7292ab09726154fc6829a05f41af05220f91d9f6eaed056e4cff8324370e WHIRLPOOL e65025785e536bcf44d2737f20b8acdf0ecf999a9ff661a1702c093c369acd92904b2f69713e115cce2129683cb5235ce23b16d2361dd3f3921f5878142b337f
diff --git a/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch b/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch
new file mode 100644
index 000000000000..08aa1326ebc5
--- /dev/null
+++ b/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch
@@ -0,0 +1,16 @@
+We disable BSD usb joystick support until upstream has a better support for it
+so that it can at least build. For now it builds but does not link to libusbhid
+so that libglut.so has undefined references to hid_* symbols and causes linking
+errors later on in the build process.
+
+--- freeglut-2.4.0/src/freeglut_joystick.c.old 2008-08-08 15:26:15 +0000
++++ freeglut-2.4.0/src/freeglut_joystick.c 2008-08-08 15:26:32 +0000
+@@ -78,7 +78,7 @@
+ # include <errno.h>
+ # if defined(__FreeBSD__) || defined(__NetBSD__)
+ /* XXX The below hack is done until freeglut's autoconf is updated. */
+-# define HAVE_USB_JS 1
++# undef HAVE_USB_JS
+
+ # if defined(__FreeBSD__) && __FreeBSD_version >= 500000
+ # include <sys/joystick.h>
diff --git a/media-libs/freeglut/freeglut-2.8.1-r1.ebuild b/media-libs/freeglut/freeglut-2.8.1-r1.ebuild
new file mode 100644
index 000000000000..be1c13cc8e30
--- /dev/null
+++ b/media-libs/freeglut/freeglut-2.8.1-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-multilib
+
+DESCRIPTION="A completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library"
+HOMEPAGE="http://freeglut.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="debug static-libs"
+
+RDEPEND=">=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}]
+ abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=x11-proto/inputproto-2.3[${MULTILIB_USEDEP}]
+ >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]"
+
+PATCHES=(
+ # Please read the comments in the patch before thinking about dropping it
+ # yet again...
+ "${FILESDIR}"/${PN}-2.4.0-bsd-usb-joystick.patch
+)
+
+HTML_DOCS=( doc/. )
diff --git a/media-libs/freeglut/freeglut-3.0.0.ebuild b/media-libs/freeglut/freeglut-3.0.0.ebuild
new file mode 100644
index 000000000000..bec2908b1a83
--- /dev/null
+++ b/media-libs/freeglut/freeglut-3.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-multilib
+
+DESCRIPTION="A completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library"
+HOMEPAGE="http://freeglut.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="debug static-libs"
+
+# enabling GLES support seems to cause build failures
+RDEPEND=">=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}]
+ abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )"
+# gles? ( media-libs/mesa[gles1,${MULTILIB_USEDEP}] )
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=x11-proto/inputproto-2.3[${MULTILIB_USEDEP}]
+ >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]"
+
+HTML_DOCS=( doc/. )
+
+src_configure() {
+ local mycmakeargs=(
+ "-DFREEGLUT_GLES=OFF"
+ "-DFREEGLUT_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)"
+ )
+# $(cmake-utils_use gles FREEGLUT_GLES)
+ cmake-multilib_src_configure
+}
diff --git a/media-libs/freeglut/metadata.xml b/media-libs/freeglut/metadata.xml
new file mode 100644
index 000000000000..48ebaa524a36
--- /dev/null
+++ b/media-libs/freeglut/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>x11@gentoo.org</email>
+ <name>X11</name>
+ </maintainer>
+ <longdescription>
+ Freeglut provides an open-source alternative to the OpenGL Utility Toolkit
+ (GLUT) library. It is actively developed and maintained, while not being
+ restricted by its license.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">freeglut</remote-id>
+ </upstream>
+</pkgmetadata>