summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:50:47 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:50:47 +0800
commit0367c672a644132415becc3c32a1d7daff5a48f4 (patch)
treeb668b7da4d47fae51edded3f974b4a1991981079 /www
parent88bfb7221748eed25d3b0ea56eb2d998a36cedf6 (diff)
downloadmarcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar.gz
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar.bz2
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar.lz
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar.xz
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.tar.zst
marcuscom-ports-0367c672a644132415becc3c32a1d7daff5a48f4.zip
X11BASE -> LOCALBASE, mozilla lives in LOCALBASE. Bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6915 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www')
-rw-r--r--www/openvrml/Makefile83
-rw-r--r--www/openvrml/distinfo3
-rw-r--r--www/openvrml/files/lookat.sh.in4
-rw-r--r--www/openvrml/files/patch-Makefile.in11
-rw-r--r--www/openvrml/files/patch-ltmain.sh15
-rw-r--r--www/openvrml/files/patch-mozilla-plugin_src_openvrml-player_player.cpp19
-rw-r--r--www/openvrml/pkg-descr8
-rw-r--r--www/openvrml/pkg-message5
-rw-r--r--www/openvrml/pkg-plist61
9 files changed, 209 insertions, 0 deletions
diff --git a/www/openvrml/Makefile b/www/openvrml/Makefile
new file mode 100644
index 000000000..9d4fc3805
--- /dev/null
+++ b/www/openvrml/Makefile
@@ -0,0 +1,83 @@
+# New ports collection makefile for: OpenVRML
+# Date created: 8 Jan 2001
+# Whom: Marc van Woerkom <3d@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= openvrml
+PORTVERSION= 0.15.10
+PORTREVISION= 3
+CATEGORIES= www graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= VRML97 runtime and browser ("lookat")
+
+BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/mozilla-js.pc:${PORTSDIR}/www/mozilla \
+ ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone \
+ pkg-config:${PORTSDIR}/devel/pkg-config
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ png.5:${PORTSDIR}/graphics/png \
+ fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/mozilla-js.pc:${PORTSDIR}/www/mozilla
+
+USE_GL= yes
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gtk20
+USE_SDL= sdl
+USE_GCC= 3.4
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -largp -Wl,--rpath -Wl,${LOCALBASE}/lib/mozilla -L${X11BASE}/lib -lXext" \
+ XPIDLFLAGS="-I${LOCALBASE}/share/idl/mozilla"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+
+PLIST_SUB= VER=${PORTVERSION}
+SUB_FILES= lookat.sh
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+BROKEN= Does not compile on ${OPSYS}-${OSREL}
+.endif
+.if ${ARCH} == "sparc64"
+BROKEN= Gets internal gcc error on ${ARCH}
+.endif
+
+.if exists(${LOCALBASE}/include/boost/python.hpp)
+LIB_DEPENDS+= boost_python.3:${PORTSDIR}/devel/boost-python
+.else
+LIB_DEPENDS+= boost_regex.3:${PORTSDIR}/devel/boost
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|-pthread|${PTHREAD_LIBS}|g" \
+ ${WRKSRC}/configure
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/doc/manual/ ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/models/*.wrl ${EXAMPLESDIR}
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.if defined(MAINTAINER_MODE)
+test: build
+ (cd ${WRKSRC}/tests ; \
+ ./testsuite )
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/openvrml/distinfo b/www/openvrml/distinfo
new file mode 100644
index 000000000..113339544
--- /dev/null
+++ b/www/openvrml/distinfo
@@ -0,0 +1,3 @@
+MD5 (openvrml-0.15.10.tar.gz) = 9ed3fa9da6f74e2a0bf45cdab655db30
+SHA256 (openvrml-0.15.10.tar.gz) = a91dca66e83b921c7a06ad7986d6f58a3d27db30250081aff745e84db9f5960f
+SIZE (openvrml-0.15.10.tar.gz) = 5334341
diff --git a/www/openvrml/files/lookat.sh.in b/www/openvrml/files/lookat.sh.in
new file mode 100644
index 000000000..0f60203f5
--- /dev/null
+++ b/www/openvrml/files/lookat.sh.in
@@ -0,0 +1,4 @@
+#! /bin/sh
+# $FreeBSD: ports/www/openvrml/files/lookat.sh.in,v 1.1 2005/07/26 13:39:59 thierry Exp $
+
+LD_LIBRARY_PATH=%%LOCALBASE%%/lib/mozilla %%PREFIX%%/bin/lookat $1
diff --git a/www/openvrml/files/patch-Makefile.in b/www/openvrml/files/patch-Makefile.in
new file mode 100644
index 000000000..8386629f5
--- /dev/null
+++ b/www/openvrml/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Mon Jul 4 01:29:49 2005
++++ Makefile.in Fri Jul 22 16:32:32 2005
+@@ -236,7 +236,7 @@
+ target_cpu = @target_cpu@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+-SUBDIRS = doc ide-projects m4 models lib java src mozilla-plugin tests
++SUBDIRS = ide-projects m4 models lib java src mozilla-plugin tests
+ ACLOCAL_AMFLAGS = -I m4
+ EXTRA_DIST = \
+ openvrml.pc.in \
diff --git a/www/openvrml/files/patch-ltmain.sh b/www/openvrml/files/patch-ltmain.sh
new file mode 100644
index 000000000..e7be8dd9a
--- /dev/null
+++ b/www/openvrml/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig Wed Apr 7 12:00:09 2004
++++ ltmain.sh Wed Apr 7 12:00:20 2004
+@@ -5428,10 +5428,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false ; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/www/openvrml/files/patch-mozilla-plugin_src_openvrml-player_player.cpp b/www/openvrml/files/patch-mozilla-plugin_src_openvrml-player_player.cpp
new file mode 100644
index 000000000..6bc8559c9
--- /dev/null
+++ b/www/openvrml/files/patch-mozilla-plugin_src_openvrml-player_player.cpp
@@ -0,0 +1,19 @@
+--- mozilla-plugin/src/openvrml-player/player.cpp.orig Tue Nov 15 00:16:02 2005
++++ mozilla-plugin/src/openvrml-player/player.cpp Tue Nov 15 00:21:07 2005
+@@ -22,14 +22,14 @@
+ # include <boost/lexical_cast.hpp>
+ # include <boost/spirit.hpp>
+ # include <boost/spirit/phoenix.hpp>
++# include <openvrml/browser.h>
++# include <openvrml/gl/viewer.h>
+ # include <unistd.h>
+ # include <argp.h>
+ # include <X11/keysym.h>
+ # include <gdk/gdkx.h>
+ # include <gtk/gtk.h>
+ # include <gtk/gtkgl.h>
+-# include <openvrml/browser.h>
+-# include <openvrml/gl/viewer.h>
+
+ namespace {
+
diff --git a/www/openvrml/pkg-descr b/www/openvrml/pkg-descr
new file mode 100644
index 000000000..4c4f1c135
--- /dev/null
+++ b/www/openvrml/pkg-descr
@@ -0,0 +1,8 @@
+OpenVRML is a free cross-platform runtime for VRML97 available under
+the GNU Lesser General Public License.
+
+The basic OpenVRML distribution includes libraries you can use to
+add VRML support to an application, and "Lookat", a simple
+stand-alone VRML browser. A plug-in for mozilla is included.
+
+WWW: http://openvrml.sourceforge.net/
diff --git a/www/openvrml/pkg-message b/www/openvrml/pkg-message
new file mode 100644
index 000000000..6cdf9f2d0
--- /dev/null
+++ b/www/openvrml/pkg-message
@@ -0,0 +1,5 @@
+===========================================
+Please run lookat via the script lookat.sh:
+
+lookat.sh sample.wrl
+===========================================
diff --git a/www/openvrml/pkg-plist b/www/openvrml/pkg-plist
new file mode 100644
index 000000000..ca4e10060
--- /dev/null
+++ b/www/openvrml/pkg-plist
@@ -0,0 +1,61 @@
+bin/lookat
+bin/lookat.sh
+include/openvrml/openvrml/basetypes.h
+include/openvrml/openvrml/bounding_volume.h
+include/openvrml/openvrml/browser.h
+include/openvrml/openvrml/common.h
+include/openvrml/openvrml/event.h
+include/openvrml/openvrml/exposedfield.h
+include/openvrml/openvrml/field_value.h
+include/openvrml/openvrml/frustum.h
+include/openvrml/openvrml/gl/viewer.h
+include/openvrml/openvrml/img.h
+include/openvrml/openvrml/node.h
+include/openvrml/openvrml/node_ptr.h
+include/openvrml/openvrml/rendering_context.h
+include/openvrml/openvrml/scope.h
+include/openvrml/openvrml/script.h
+include/openvrml/openvrml/system.h
+include/openvrml/openvrml/viewer.h
+include/openvrml/openvrml/vrml97node.h
+lib/libopenvrml-gl.a
+lib/libopenvrml-gl.la
+lib/libopenvrml-gl.so
+lib/libopenvrml-gl.so.6
+lib/libopenvrml.a
+lib/libopenvrml.la
+lib/libopenvrml.so
+lib/libopenvrml.so.5
+libdata/pkgconfig/openvrml-gl.pc
+libdata/pkgconfig/openvrml.pc
+libexec/openvrml-player
+share/idl/openvrml-%%VER%%/openvrml.idl
+share/pixmaps/lookat.xpm
+lib/mozilla/plugins/openvrml.so
+lib/mozilla/plugins/openvrml.xpt
+%%PORTDOCS%%%%EXAMPLESDIR%%/Anchor.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/Click.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/EventPROTO.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/ExternPROTO.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/Inline.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/Prox1.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/RefractiveMaterial.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/SimplePROTO.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/TestJSAI.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/bounce.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/groundPlane.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/jsTouch.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/orbit3.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/pixtex1.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/rotation_toy.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/scale.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/snoman.wrl
+%%PORTDOCS%%%%EXAMPLESDIR%%/warbird.wrl
+@dirrm include/openvrml/openvrml/gl
+@dirrm include/openvrml/openvrml
+@dirrm include/openvrml
+@dirrm share/idl/openvrml-%%VER%%
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+@dirrmtry share/gtk-doc/html/gtkglext
+@dirrmtry share/gtk-doc/html
+@dirrmtry share/gtk-doc