From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-gfx/freewrl/Manifest | 15 +++ .../freewrl/files/freewrl-1.22.13-desktop.patch | 11 ++ .../files/freewrl-1.22.13-fontconfig-match.patch | 19 +++ .../freewrl/files/freewrl-1.22.13-java-fix.patch | 54 ++++++++ .../files/freewrl-1.22.13-mozjs187-config.patch | 10 ++ .../freewrl/files/freewrl-2.3.3-ld.gold.patch | 35 +++++ media-gfx/freewrl/freewrl-1.22.13-r5.ebuild | 141 ++++++++++++++++++++ media-gfx/freewrl/freewrl-2.3.3-r2.ebuild | 138 +++++++++++++++++++ media-gfx/freewrl/freewrl-3.0.0-r1.ebuild | 143 ++++++++++++++++++++ media-gfx/freewrl/freewrl-9999.ebuild | 146 +++++++++++++++++++++ media-gfx/freewrl/metadata.xml | 27 ++++ 11 files changed, 739 insertions(+) create mode 100644 media-gfx/freewrl/Manifest create mode 100644 media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch create mode 100644 media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch create mode 100644 media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch create mode 100644 media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch create mode 100644 media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch create mode 100644 media-gfx/freewrl/freewrl-1.22.13-r5.ebuild create mode 100644 media-gfx/freewrl/freewrl-2.3.3-r2.ebuild create mode 100644 media-gfx/freewrl/freewrl-3.0.0-r1.ebuild create mode 100644 media-gfx/freewrl/freewrl-9999.ebuild create mode 100644 media-gfx/freewrl/metadata.xml (limited to 'media-gfx/freewrl') diff --git a/media-gfx/freewrl/Manifest b/media-gfx/freewrl/Manifest new file mode 100644 index 000000000000..1570db54d365 --- /dev/null +++ b/media-gfx/freewrl/Manifest @@ -0,0 +1,15 @@ +AUX freewrl-1.22.13-desktop.patch 350 SHA256 09176fe7ef22d8d0a2381bfb70edbacc99967c03cdf8a7677f948a9ca1149efb SHA512 3e8a2e2275243ac55a0a62b105aeff1166a39798e34f94878b46e02fdacc038d386768e388529b550d755c737e574f988b2ffacbc64f224ed6e5d6d67de2b4e2 WHIRLPOOL b0b07aa8d0b7a4e181e2ae72f277c536bdb9f3e04670a021a3fd4222a6df06c81b8f72ab5fbfe4749a22865d7c65aa02d29cbe4e3821024387443fee62ab6764 +AUX freewrl-1.22.13-fontconfig-match.patch 666 SHA256 81ad402685aac3746a1d3fefe3ce77e46f0d7521e721d02f6ceb2fa60b9501c5 SHA512 8f92238be4568bea9959ffd9ac81920633340e583d175e6a35add48edbaa41aa937aa9d7494261e2edf83bbdfeadbfe597b5881c3dbf2ef9e9bf2f3ce4a508f5 WHIRLPOOL 991306f3174466a7505a85592db0b6196f0f55fe4d5b0cb70b72b20c101d7f637b4dac34c2fd9c6b5e627c7c88ccdfc8db4a2b91b863271699fd75d130b4c0b0 +AUX freewrl-1.22.13-java-fix.patch 1942 SHA256 04ab169e8ef34594c730cc7449e4a5f9c335e9125dfe8da0bf1edf043e81800b SHA512 e8224e249e28918e04117542c710b093f90e31666312c7b3f62444d68158832893cf81237c8d9c7677ac4e0b571c0a74457721f0778996a975fbdacffdebb82a WHIRLPOOL 78f23c073f94d39a54734b51320549131fbc2285501b36ea745aa2b5cb8991ab89697d72398b77d170ee9caa7ea312ddcdda21a019fb3ac546dbde30ceeef4cb +AUX freewrl-1.22.13-mozjs187-config.patch 486 SHA256 340a489d70b1e0d450b779f35686f09c1a50ba62cd8de5bb34340dec8c5ad561 SHA512 69985ba98ca8c12e59b6aba2fda004931778f138dfd90a45fd9a65027961401f6a377bfbc55f9fb2614ada5ac291922809dc87ea8ad7bdf93bdc78ddb3c3b298 WHIRLPOOL f54fb2c381f9fcd0c284898d49c9fd10e0210ade9399a47f241c4657d0c0e6f00edcfb1c3624164ad884562a1eea905f4a59b64979d4110ba3404430eef10e67 +AUX freewrl-2.3.3-ld.gold.patch 1120 SHA256 79a67c587817e818a33a945b0c10b93b5d402f62dd3a26410695772e43bf4649 SHA512 010369ab9ec5f03f3055594b88001deb14a58e3d69cd5f8312a7a25d34ec4bef81940d911a7c13aa8872c82fe66c14284d292a33e1629ab9dfe52cd9a4412e3b WHIRLPOOL 2a535f2aa0ec7a21f1b89d6d37812dbd702cb547d385680a0914c1660192f3e3581aded53578e5ddbe5dffde4faf8cb38164c5d382faee2db5a0cde89eff9d09 +DIST freewrl-1.22.13.1.tar.bz2 1830305 SHA256 29069d63604dbbfde0f684f342f34e9d0eb216a026f83317a00fbdd31ece17e8 SHA512 6e751835a256ce08d4099e5301c0702e28e5cae2e77d8a51ab38f6f0c08680f22a9ef25ef9d2bb860680fc8c1fc22cfebf14cfb14b50ee514b5ef76e71ab1192 WHIRLPOOL 58d301f4f3c1d145b041bb626c8af18954d9cd3da88f348d2341928c2ff050b15e077855b1ef5a2fe18b2218b8d2f8a75e229ca5bf5d683c0c98e4ed132f71cd +DIST freewrl-2.3.3.1.tar.gz 1731651 SHA256 71ed11f5f3b4b6a1d2fc740e8e3ed62a83b484c9695968fac5e30db14dbb6fef SHA512 e205e8d11a3650ddf4f7dd089bdca36fc1879424c88392229ca8c0d532ebc4662f4f2e3bc491a0a1d6300e78c55cebbb57eeef2145a8c96c727c35dfb2a7d00a WHIRLPOOL d61f65b9f0db94f73760d6b1800be5f77f9898e2305ec93cc43aa8a8631e5d002602a1b79bbec91d30a040479ae01530cb470cb411d803ff8f04c3792e35e545 +DIST freewrl-3.0.0.tar.bz2 1567282 SHA256 91ab2e8fda840c2d52951f9833fe280080fab8eabd725dcccae1a9f3506c3ceb SHA512 12e75c6891238fbc9c750a9449c8a6a9f4b86124ac12871adbfb3c68b7ef09f35d3709dcb63693e50f8ac824170aef3b97854a72de0b324e67fbbb7c081675a0 WHIRLPOOL 78734eaa5f5cd7d3dd6bb6c7dff5621ecee2d5aba9f6fc1ce0cdbc851bdf2f58bb4f6416f0e7ad2fbb04122dda4687a2764f46819b83217951e8d1207b88c0f7 +EBUILD freewrl-1.22.13-r5.ebuild 4479 SHA256 8253c0256e3071b99f558128a6ae39d99dee5540a8f6c06abd3e512a1c840c93 SHA512 33ffa5c86551c708663f56cec08d50351a8c1af2c7b2e19efe16fea09caac0e58feb206f81b85588163dba8e7eacd1043f9767364e323ce84ca12afc3fcda6ca WHIRLPOOL d4a073955a5f7ecc6865e8739aa50c0b18b212df0991b6f89676086faccb97ae9d7e19e7a1750d10629df27e173f0a62da4c6c4fd5768606eb8664fa55711a29 +EBUILD freewrl-2.3.3-r2.ebuild 4358 SHA256 03b554cff613156a75f987223d876c3abf14a9920d5cb554ca43a01e6715f8db SHA512 99a49d8d51cb37c7a462235506c2edcf02f27bef0f508f16e31fe9c2010f4339350bda9baaddba0aa1d438af649e242f865ca56dd50fd82015a8663c36965142 WHIRLPOOL 3ef819af42ca54139ce5ab28dd692bd6579e3de2d5029abdbdedb4b3907998a16748becbd99258a985c7692b59efa0f55a154353af8170cb93083b026da97fd1 +EBUILD freewrl-3.0.0-r1.ebuild 4430 SHA256 0a9f8f1e3a32387a7f277c34f390e74e9fcd25b4c34eaade2b611a1cab8929cd SHA512 0a02299bc0698e022b8eaca0aa6e9151cdb08b16155137d05a4404a467ef66ff04e0d1e0a22b86ad9d557a61210966b7a960f63c6cc478cc889b93e39f775c3a WHIRLPOOL 8745d136fe4993ef5e905a11d1ebf24baef1b11950a51059ed2653e4c0c28a2e5c3f1278b0d921560e3e337080c2a9cd5f4662ecef2f5810e80133bb0e673962 +EBUILD freewrl-9999.ebuild 4489 SHA256 964c3ed07b4a2b7fdce201e51acb34025f2b65b76ee5323cff544d11eccdcede SHA512 9d9dd93cdc9e6dae64d0bdb068b56fa2c6a0f478708be6e48aa771e10526b30c73ae039cc83fe3f62d00bab2571e60bb013ee796c7cd613c8b3c7fa8a7cc60dc WHIRLPOOL 612a144e81ed1aea08c0e1fdb36f4c1fb52c6be24c3c34e4cd7d68461ca9b990d383bf9b82b7478097804097ec198a6f726cf225e096ce9cb2399fda6f2caba4 +MISC ChangeLog 3129 SHA256 826e08a18cd888fe0cc2a46da49b3ec8d5cba1e84fe291b4229ee3ad1e20b34f SHA512 b74b417ca66739e7a64204ab9b8d3e0e72dc0896c53e6028f7b685a73c416b6fbb19e403c0b024263d4afc8597f525622a0206f8736dcd0435ff7023d4acf303 WHIRLPOOL a22408c2cc25a2060ba8d6d7f720ef6dbb80e53d38930993683c6ec73874a4a8093aba6909b3d6af82f6ce79ae478d1de4b77f9fb2a1d7720c642695d1982b8b +MISC ChangeLog-2015 9410 SHA256 6f2861e68e01393a9d5c3f16728e0e4f72c72e5cb0c92b612c83c3bc4a750d11 SHA512 b950a6394a8ed370bbf568c8a412944644a64c30e28d64d07a56431aae73c3d88e24cf1d0394ff8fa953db3aafc21170c32b76d1219a0f8c933065ae9ffa5818 WHIRLPOOL 62dc00e1c91595c572d9ae855f477e12a8a689558c03b070e2424d10cb9999fc7bca94a3e3c3894d77e5c188f87089df65307163197c18be7bfa318b047c83c4 +MISC metadata.xml 1431 SHA256 6e87a9a8063de3b72e3c9004d1a91f3eedd5498022b1ea046006fdc0cb32d407 SHA512 7290fb74f164cf5e520a024171f43d9edb4d31f09b9806a6939d5a3e1143cd2240dc1a3bea7d02ec18ee9351f6e3e27d7117b9289e0a5eaabdb42c5ed74c9d2a WHIRLPOOL 2cc9c3b6f522e52e5249f91be24cd7348c3b8341d3219e8661fd7043b7c9f12c8cfc5ed9b01601083557eafd34f521681272e929eec447186d78ae9629968aa2 diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch b/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch new file mode 100644 index 000000000000..6d620b7ab94b --- /dev/null +++ b/media-gfx/freewrl/files/freewrl-1.22.13-desktop.patch @@ -0,0 +1,11 @@ +--- a/freewrl-1.22.13/data/freewrl.desktop 2009-06-08 06:26:21.000000000 -0400 ++++ b/freewrl-1.22.13/data/freewrl.desktop 2013-12-23 10:45:54.916307951 -0500 +@@ -3,7 +3,7 @@ + Name=FreeWRL + Comment=View X3D and VRML files + Exec=/usr/bin/freewrl +-Icon=freewrl.png ++Icon=freewrl + Terminal=false + Type=Application + Categories=Graphics;3DGraphics;Viewer; diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch b/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch new file mode 100644 index 000000000000..36b844ea8b62 --- /dev/null +++ b/media-gfx/freewrl/files/freewrl-1.22.13-fontconfig-match.patch @@ -0,0 +1,19 @@ +--- src/lib/scenegraph/Component_Text.c 15 Aug 2012 13:31:45 -0000 1.56 ++++ src/lib/scenegraph/Component_Text.c 29 Aug 2012 14:18:43 -0000 1.57 +@@ -370,6 +370,7 @@ + FcPattern *FW_fp=NULL; + FcPattern *FW_fm=NULL; + FcChar8 *FW_file=NULL; ++ FcResult fcjunkresult; + #else + + if (!p->font_directory) { +@@ -487,7 +488,7 @@ + #ifdef HAVE_FONTCONFIG + FcConfigSubstitute(0,FW_fp,FcMatchPattern); + FcDefaultSubstitute(FW_fp); +- if (!(FW_fm = FcFontMatch(0,FW_fp,0))) { ++ if (!(FW_fm = FcFontMatch(0,FW_fp,&fcjunkresult))) { + /* do whatever is done when no match found */ + printf ("could not find font for id %x\n",num); + } else { diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch b/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch new file mode 100644 index 000000000000..882062cb7e10 --- /dev/null +++ b/media-gfx/freewrl/files/freewrl-1.22.13-java-fix.patch @@ -0,0 +1,54 @@ +--- a/src/java/Makefile.sources ++++ b/src/java/Makefile.sources +@@ -1,4 +1,4 @@ +-dist_noinst_JAVA = \ ++noinst_JAVA = \ + org/web3d/x3d/sai/Browser.java \ + org/web3d/x3d/sai/BrowserEvent.java \ + org/web3d/x3d/sai/BrowserFactoryImpl.java \ +@@ -309,6 +309,7 @@ noinst_JAVA = \ + vrml/InvalidFieldException.java \ + vrml/InvalidRouteException.java \ + vrml/InvalidVRMLSyntaxException.java \ ++ vrml/InvalidX3DSyntaxException.java \ + vrml/MField.java \ + vrml/field/ConstMFColor.java \ + vrml/field/ConstMFFloat.java \ +--- /dev/null ++++ b/src/java/vrml/InvalidX3DSyntaxException.java +@@ -0,0 +1,6 @@ ++package vrml; ++ ++public class InvalidX3DSyntaxException extends Exception { ++ public InvalidX3DSyntaxException() { super(); } ++ public InvalidX3DSyntaxException(String s) { super(s); } ++} +--- a/src/java/Makefile.am 2014-03-10 10:37:09.000000000 -0400 ++++ b/src/java/Makefile.am 2014-03-12 12:29:42.000000000 -0400 +@@ -1,5 +1,10 @@ + # Java Classes for EAI/SAI/etc. + ++# NOTE - automake-1.11.6 changed how class*.stamp is generated, now need ++# to use noinst_JAVA and EXTRA_DIST instead of dist_noinst_JAVA to ++# keep behaviour consistent and compatible with both automake-1.11.6 and ++# older automake ++ + # Get global variables for Makefile defined by toplevel Makefile.globals + include $(top_srcdir)/Makefile.globals + +@@ -9,11 +14,12 @@ + jarfile = vrml.jar + jardir = $(JAVA_DIR) + +-$(jarfile): $(dist_noinst_JAVA) classdist_noinst.stamp +- $(JAR) cmf $(JAVAROOT)/manifest.extras $@ -C $(JAVAROOT) $$(echo $(dist_noinst_JAVA:.java=.class)) ++$(jarfile): $(noinst_JAVA) manifest.extras classnoinst.stamp ++ $(JAR) cmf $(JAVAROOT)/manifest.extras $@ -C $(JAVAROOT) $$(echo $(noinst_JAVA:.java=.class)) + + jar_DATA = $(jarfile) + +-CLEANFILES = $(jarfile) $$(echo $(dist_noinst_JAVA:.java=.class)) ++CLEANFILES = $(jarfile) $$(echo $(noinst_JAVA:.java=.class)) ++EXTRA_DIST = $(noinst_JAVA) java.policy manifest.extras + + include Makefile.sources diff --git a/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch new file mode 100644 index 000000000000..645a2315c161 --- /dev/null +++ b/media-gfx/freewrl/files/freewrl-1.22.13-mozjs187-config.patch @@ -0,0 +1,10 @@ +--- a/configure.ac 2012-06-13 13:17:43.000000000 -0400 ++++ b/configure.ac 2012-06-18 15:34:59.000000000 -0400 +@@ -192,6 +192,7 @@ + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[spidermonkey],[>=],[1.7.0]) + ;; + *) ++ AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs187]) + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozjs185]) + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[mozilla-js],[>=],[1.9]) + AC_MY_CHECK_MODULE(JAVASCRIPT_ENGINE,[xulrunner-js],[>=],[1.8]) diff --git a/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch b/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch new file mode 100644 index 000000000000..6660f175b502 --- /dev/null +++ b/media-gfx/freewrl/files/freewrl-2.3.3-ld.gold.patch @@ -0,0 +1,35 @@ +commit 57d2d3b900c7d57e167fb7c90b36ca8c9c80b8bd +Author: Ian Stakenvicius +Date: Mon Apr 28 10:53:57 2014 -0400 + + autotools: fixed underlinking issue with libm + + Signed-off-by: Ian Stakenvicius + +diff --git a/freex3d/configure.ac b/freex3d/configure.ac +index 49db07c..48b09c8 100644 +--- a/freex3d/configure.ac ++++ b/freex3d/configure.ac +@@ -73,6 +73,8 @@ AC_PROG_GCC_TRADITIONAL + dnl AC_FUNC_MALLOC + AC_CHECK_FUNCS([strchr strrchr strdup strndup strerror getopt getopt_long getopt_long_only malloc calloc realloc usleep gettimeofday]) + ++# Check for math ++AC_CHECK_LIBM + + # ==================================================== + # FreeWRL specific configuration: target system +diff --git a/freex3d/src/lib/Makefile.am b/freex3d/src/lib/Makefile.am +index ae7fb05..1b1af8a 100644 +--- a/freex3d/src/lib/Makefile.am ++++ b/freex3d/src/lib/Makefile.am +@@ -40,7 +40,8 @@ EXTERNAL_LIBS = \ + $(PNG_LIBS) \ + $(LIBCURL_LIBS) \ + $(IMLIB2_LIBS) \ +- $(LIBLO_LIBS) ++ $(LIBLO_LIBS) \ ++ $(LIBM) + + + # X11 flags specific to x11 target (default on Linux -- optional on Mac) diff --git a/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild b/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild new file mode 100644 index 000000000000..29ffb3ae4676 --- /dev/null +++ b/media-gfx/freewrl/freewrl-1.22.13-r5.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib + +DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin" +HOMEPAGE="http://freewrl.sourceforge.net/" +SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl debug +glew java libeai motif +nsplugin osc +sox static-libs" + +COMMONDEPEND="x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libX11 + motif? ( x11-libs/motif:0= ) + !motif? ( x11-libs/libXaw ) + media-libs/mesa + glew? ( media-libs/glew:0= ) + virtual/opengl + media-libs/libpng:0= + virtual/jpeg:0= + media-libs/imlib2 + >=media-libs/freetype-2 + media-libs/fontconfig + curl? ( net-misc/curl ) + osc? ( media-libs/liblo ) + dev-lang/spidermonkey:0=" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig + java? ( >=virtual/jdk-1.4 ) + nsplugin? ( net-misc/npapi-sdk )" +RDEPEND="${COMMONDEPEND} + media-fonts/dejavu + app-arch/unzip + virtual/imagemagick-tools + java? ( >=virtual/jre-1.4 ) + sox? ( media-sound/sox )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-fontconfig-match.patch + if has_version ">=dev-lang/spidermonkey-1.8.7:0" ; then + epatch "${FILESDIR}"/${P}-mozjs187-config.patch + fi + epatch "${FILESDIR}"/${P}-desktop.patch + epatch "${FILESDIR}"/${P}-java-fix.patch + epatch "${FILESDIR}"/${PN}-2.3.3-ld.gold.patch + eautoreconf +} + +src_configure() { + local myconf="--enable-fontconfig + --without-expat + --with-x + --with-imageconvert=/usr/bin/convert + --with-unzip=/usr/bin/unzip" + if use motif; then + myconf+=" --with-target=motif --with-statusbar=standard" + else + myconf+=" --with-target=x11 --with-statusbar=hud" + fi + if use nsplugin; then + myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" + myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin" + fi + if use sox; then + myconf+=" --with-soundconv=/usr/bin/sox" + fi + # disable the checks for other js libs, in case they are installed + if has_version ">=dev-lang/spidermonkey-1.8.5:0" ; then + # spidermonkey-1.8.5 provides a .pc to pkg-config, it should be findable via mozjs185 + for x in mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js; do + myconf+=" --disable-${x}" + done + else + for x in mozjs187 mozjs185 mozilla-js xulrunner-js firefox-js seamonkey-js; do + myconf+=" --disable-${x}" + done + # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure + JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" + if has_version ">=dev-lang/spidermonkey-1.8:0" ; then + # spidermonkey-1.8 changed the name of the lib + JAVASCRIPT_ENGINE_LIBS="-lmozjs" + else + JAVASCRIPT_ENGINE_LIBS="-ljs" + fi + if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then + JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" + JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" + fi + export JAVASCRIPT_ENGINE_CFLAGS + export JAVASCRIPT_ENGINE_LIBS + fi + econf ${myconf} \ + $(use_enable curl libcurl) \ + $(use_with glew) \ + $(use_enable debug) $(use_enable debug thread_colorized) \ + $(use_enable libeai) \ + $(use_enable java) \ + $(use_enable nsplugin plugin) \ + $(use_enable osc) \ + $(use_enable static-libs static) \ + $(use_enable sox sound) +} + +src_install() { + emake DESTDIR="${D}" install + + if use java; then + insinto /usr/share/${PN}/lib + doins src/java/java.policy + java-pkg_regjar src/java/vrml.jar + # install vrml.jar as a JRE extension + dodir /usr/java/packages/lib/ext + dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar + if ! has_version "media-gfx/freewrl[java]" ; then + elog "Because vrml.jar requires access to sockets, you will need to incorporate the" + elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default" + elog "java policy:" + elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy" + fi + fi + + # remove unneeded .la files (as per Flameeyes' rant) + cd "${D}" + rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "By default, FreeWRL expects to find the 'firefox' binary in your include" + elog "path. If you do not have firefox installed or you wish to use a different" + elog "web browser to open links that are within VRML / X3D files, please be sure to" + elog "specify the command via your BROWSER environment variable." + fi +} diff --git a/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild b/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild new file mode 100644 index 000000000000..9a8ce5245a4d --- /dev/null +++ b/media-gfx/freewrl/freewrl-2.3.3-r2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="git://git.code.sf.net/p/freewrl/git" + S="${WORKDIR}/${P}/freex3d" + SRC_URI= + KEYWORDS= +else + SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin" +HOMEPAGE="http://freewrl.sourceforge.net/" +LICENSE="GPL-3" +SLOT="0" +IUSE="curl debug java libeai motif +nsplugin opencl osc +sox static-libs" + +COMMONDEPEND="x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libX11 + motif? ( x11-libs/motif:0= ) + !motif? ( x11-libs/libXaw ) + media-libs/mesa + virtual/opengl + media-libs/libpng:0= + virtual/jpeg:0= + media-libs/imlib2 + >=media-libs/freetype-2 + media-libs/fontconfig + curl? ( net-misc/curl ) + osc? ( media-libs/liblo ) + opencl? ( virtual/opencl ) + dev-lang/spidermonkey:0=" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig + java? ( >=virtual/jdk-1.4 ) + nsplugin? ( net-misc/npapi-sdk )" +RDEPEND="${COMMONDEPEND} + media-fonts/dejavu + app-arch/unzip + virtual/imagemagick-tools + java? ( >=virtual/jre-1.4 ) + sox? ( media-sound/sox )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ld.gold.patch + epatch_user + eautoreconf +} + +src_configure() { + # list of js libs without .pc support, to disable ./configure auto-checking + local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js ) + # list of .pc supported spidermonkeys, to disable ./configure auto-checking + local spidermonkeys_pc=( mozjs187 mozjs185 ) + + local myconf="--enable-fontconfig + --without-expat + --with-x + --with-imageconvert=/usr/bin/convert + --with-unzip=/usr/bin/unzip + ${spidermonkeys[@]/#/ --disable-}" + + if has_version "=dev-lang/spidermonkey-1.8:0" ; then + # spidermonkey-1.8 changed the name of the lib + JAVASCRIPT_ENGINE_LIBS="-lmozjs" + else + JAVASCRIPT_ENGINE_LIBS="-ljs" + fi + if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then + JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" + JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" + fi + export JAVASCRIPT_ENGINE_CFLAGS + export JAVASCRIPT_ENGINE_LIBS + fi + if use nsplugin; then + myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" + myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin" + fi + econf ${myconf} \ + $(use_enable curl libcurl) \ + $(use_with opencl OpenCL) \ + $(use_enable debug) $(use_enable debug thread_colorized) \ + $(use_enable libeai) \ + $(use_enable java) \ + $(use_enable nsplugin plugin) \ + $(use_enable osc) \ + $(use_enable static-libs static) \ + $(use_enable sox sound) \ + $(usex sox "--with-soundconv=/usr/bin/sox") \ + $(usex motif "--with-target=motif" "--with-target=x11") \ + $(usex motif "--with-statusbar=standard" "--with-statusbar=hud") +} + +src_install() { + emake DESTDIR="${D}" install + + if use java; then + insinto /usr/share/${PN}/lib + doins src/java/java.policy + java-pkg_regjar src/java/vrml.jar + # install vrml.jar as a JRE extension + dodir /usr/java/packages/lib/ext + dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar + if ! has_version "media-gfx/freewrl[java]" ; then + elog "Because vrml.jar requires access to sockets, you will need to incorporate the" + elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default" + elog "java policy:" + elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy" + fi + fi + + # remove unneeded .la files (as per Flameeyes' rant) + cd "${D}" + rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "By default, FreeWRL expects to find the 'firefox' binary in your include" + elog "path. If you do not have firefox installed or you wish to use a different" + elog "web browser to open links that are within VRML / X3D files, please be sure to" + elog "specify the command via your BROWSER environment variable." + fi +} diff --git a/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild b/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild new file mode 100644 index 000000000000..5ff59f6d8e1d --- /dev/null +++ b/media-gfx/freewrl/freewrl-3.0.0-r1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="git://git.code.sf.net/p/freewrl/git" + S="${WORKDIR}/${P}/freex3d" + SRC_URI= + KEYWORDS= +else + SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin" +HOMEPAGE="http://freewrl.sourceforge.net/" +LICENSE="GPL-3" +SLOT="0" +IUSE="curl debug java libeai motif +nsplugin opencl osc +sox static-libs" + +COMMONDEPEND="x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXxf86vm + motif? ( x11-libs/motif:0= ) + !motif? ( x11-libs/libXaw ) + media-libs/mesa + virtual/opengl + media-libs/freealut + media-libs/openal + media-libs/libpng:0= + virtual/jpeg:0= + media-libs/imlib2 + >=media-libs/freetype-2 + media-libs/fontconfig + curl? ( net-misc/curl ) + osc? ( media-libs/liblo ) + opencl? ( virtual/opencl ) + dev-lang/spidermonkey:0=" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig + java? ( >=virtual/jdk-1.4 ) + nsplugin? ( net-misc/npapi-sdk )" +RDEPEND="${COMMONDEPEND} + media-fonts/dejavu + app-arch/unzip + virtual/imagemagick-tools + java? ( >=virtual/jre-1.4 ) + sox? ( media-sound/sox )" + +src_prepare() { + epatch_user + eautoreconf +} + +src_configure() { + # list of js libs without .pc support, to disable ./configure auto-checking + local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js ) + # list of .pc supported spidermonkeys, to disable ./configure auto-checking + local spidermonkeys_pc=( mozjs187 mozjs185 ) + + local myconf="--enable-fontconfig + --without-expat + --with-x + --with-imageconvert=/usr/bin/convert + --with-unzip=/usr/bin/unzip + --disable-mozjs-17.0 + ${spidermonkeys[@]/#/ --disable-}" + + if has_version "=dev-lang/spidermonkey-1.8:0" ; then + # spidermonkey-1.8 changed the name of the lib + JAVASCRIPT_ENGINE_LIBS="-lmozjs" + else + JAVASCRIPT_ENGINE_LIBS="-ljs" + fi + if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then + JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" + JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" + fi + export JAVASCRIPT_ENGINE_CFLAGS + export JAVASCRIPT_ENGINE_LIBS + fi + if use nsplugin; then + myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" + myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin" + fi + econf ${myconf} \ + $(use_enable curl libcurl) \ + $(use_with opencl OpenCL) \ + $(use_enable debug) $(use_enable debug thread_colorized) \ + $(use_enable libeai) \ + $(use_enable java) \ + $(use_enable nsplugin plugin) \ + $(use_enable osc) \ + $(use_enable static-libs static) \ + $(use_enable sox sound) \ + $(usex sox "--with-soundconv=/usr/bin/sox") \ + $(usex motif "--with-target=motif" "--with-target=x11") \ + $(usex motif "--with-statusbar=standard" "--with-statusbar=hud") +} + +src_install() { + emake DESTDIR="${D}" install + + if use java; then + insinto /usr/share/${PN}/lib + doins src/java/java.policy + java-pkg_regjar src/java/vrml.jar + # install vrml.jar as a JRE extension + dodir /usr/java/packages/lib/ext + dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar + if ! has_version "media-gfx/freewrl[java]" ; then + elog "Because vrml.jar requires access to sockets, you will need to incorporate the" + elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default" + elog "java policy:" + elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy" + fi + fi + + # remove unneeded .la files (as per Flameeyes' rant) + cd "${D}" + rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "By default, FreeWRL expects to find the 'firefox' binary in your include" + elog "path. If you do not have firefox installed or you wish to use a different" + elog "web browser to open links that are within VRML / X3D files, please be sure to" + elog "specify the command via your BROWSER environment variable." + fi +} diff --git a/media-gfx/freewrl/freewrl-9999.ebuild b/media-gfx/freewrl/freewrl-9999.ebuild new file mode 100644 index 000000000000..9987dd19fbc8 --- /dev/null +++ b/media-gfx/freewrl/freewrl-9999.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.code.sf.net/p/freewrl/git" + EGIT_BRANCH="develop" + S="${WORKDIR}/${P}/freex3d" + SRC_URI= + KEYWORDS= +else + SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin" +HOMEPAGE="http://freewrl.sourceforge.net/" +LICENSE="GPL-3" +SLOT="0" +IUSE="curl debug java libeai motif +nsplugin opencl osc rbp +sox static-libs" + +COMMONDEPEND="x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXxf86vm + motif? ( x11-libs/motif:0= ) + !motif? ( x11-libs/libXaw ) + media-libs/mesa + virtual/opengl + media-libs/freealut + media-libs/openal + media-libs/libpng:0= + virtual/jpeg:0= + media-libs/imlib2 + >=media-libs/freetype-2 + media-libs/fontconfig + curl? ( net-misc/curl ) + osc? ( media-libs/liblo ) + opencl? ( virtual/opencl ) + rbp? ( dev-games/ode:0=[double-precision] ) + dev-lang/spidermonkey:0=" +DEPEND="${COMMONDEPEND} + virtual/pkgconfig + java? ( >=virtual/jdk-1.4 ) + nsplugin? ( net-misc/npapi-sdk )" +RDEPEND="${COMMONDEPEND} + media-fonts/dejavu + app-arch/unzip + virtual/imagemagick-tools + java? ( >=virtual/jre-1.4 ) + sox? ( media-sound/sox )" + +src_prepare() { + epatch_user + eautoreconf +} + +src_configure() { + # list of js libs without .pc support, to disable ./configure auto-checking + local spidermonkeys=( mozilla-js ) + # list of .pc supported spidermonkeys, to disable ./configure auto-checking + local spidermonkeys_pc=( mozjs187 mozjs185 ) + + local myconf="--enable-fontconfig + --without-expat + --with-x + --with-imageconvert=/usr/bin/convert + --with-unzip=/usr/bin/unzip + --with-javascript=spidermonkey + ${spidermonkeys[@]/#/ --disable-}" + + if has_version "=dev-lang/spidermonkey-1.8:0" ; then + # spidermonkey-1.8 changed the name of the lib + JAVASCRIPT_ENGINE_LIBS="-lmozjs" + else + JAVASCRIPT_ENGINE_LIBS="-ljs" + fi + if has_version "dev-lang/spidermonkey:0[threadsafe]" ; then + JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" + JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" + fi + export JAVASCRIPT_ENGINE_CFLAGS + export JAVASCRIPT_ENGINE_LIBS + fi + if use nsplugin; then + myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" + myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin" + fi + econf ${myconf} \ + $(use_enable curl libcurl) \ + $(use_with opencl OpenCL) \ + $(use_enable debug) $(use_enable debug thread_colorized) \ + $(use_enable libeai) \ + $(use_enable java) \ + $(use_enable nsplugin plugin) \ + $(use_enable osc) \ + $(use_enable rbp) \ + $(use_enable static-libs static) \ + $(use_enable sox sound) \ + $(usex sox "--with-soundconv=/usr/bin/sox") \ + $(usex motif "--with-target=motif" "--with-target=x11") \ + $(usex motif "--with-statusbar=standard" "--with-statusbar=hud") +} + +src_install() { + emake DESTDIR="${D}" install + + if use java; then + insinto /usr/share/${PN}/lib + doins src/java/java.policy + java-pkg_regjar src/java/vrml.jar + # install vrml.jar as a JRE extension + dodir /usr/java/packages/lib/ext + dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar + if ! has_version "media-gfx/freewrl[java]" ; then + elog "Because vrml.jar requires access to sockets, you will need to incorporate the" + elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default" + elog "java policy:" + elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy" + fi + fi + + # remove unneeded .la files (as per Flameeyes' rant) + cd "${D}" + rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "By default, FreeWRL expects to find the 'firefox' binary in your include" + elog "path. If you do not have firefox installed or you wish to use a different" + elog "web browser to open links that are within VRML / X3D files, please be sure to" + elog "specify the command via your BROWSER environment variable." + fi +} diff --git a/media-gfx/freewrl/metadata.xml b/media-gfx/freewrl/metadata.xml new file mode 100644 index 000000000000..21fdcd50c357 --- /dev/null +++ b/media-gfx/freewrl/metadata.xml @@ -0,0 +1,27 @@ + + + + + axs@gentoo.org + Ian Stakenvicius + + +FreeWRL is a VRML97 (VRML-2.0) and X3D interactive viewer, providing both a traditional Xorg application +and a nsbrowser plugin for use with many available web browsers. The package depends heavily on OpenGL +support for rendering. When developing your 3D world or model, you can program with GLSL Shaders using the +X3D Shaders Component, put your model exactly where you want them with the Geospatial Component, or just +throw triangles to the screen as Extrusions, IndexedFaceSets, TriangleSets, Circle2D, Disk2D, Spheres, Boxes, +Cubes; the list goes on and on. With royalty free open standards, your models will continue to render, year after year. + + + Enable glew extensions + Build EAI C library + Enable OpenCL support + Allows for OSC-based control and communication between multiple freewrl instances + Enable support for Rigid Body Physics + Build and install java EAI/SAI support library + + + freewrl + + -- cgit v1.2.3