summaryrefslogtreecommitdiffstats
path: root/graphics/vertex
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-06 06:26:57 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-06 06:26:57 +0800
commitc2338d0e600e323b17e7b9573f16c0e42303b852 (patch)
tree4860999481f72f5d79b0c94cc0c98ab0ffd19688 /graphics/vertex
parent8f4bfebb1972f65b4acf352eca7b1a3427d782a1 (diff)
downloadmarcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar.gz
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar.bz2
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar.lz
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar.xz
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.tar.zst
marcuscom-ports-c2338d0e600e323b17e7b9573f16c0e42303b852.zip
Move it to LOCALBASE and fix the build.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7599 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/vertex')
-rw-r--r--graphics/vertex/Makefile60
-rw-r--r--graphics/vertex/distinfo3
-rw-r--r--graphics/vertex/files/patch-platforms.ini76
-rw-r--r--graphics/vertex/files/patch-vmahelp.c26
-rw-r--r--graphics/vertex/pkg-descr24
-rw-r--r--graphics/vertex/pkg-plist40
6 files changed, 229 insertions, 0 deletions
diff --git a/graphics/vertex/Makefile b/graphics/vertex/Makefile
new file mode 100644
index 000000000..f7ed8594c
--- /dev/null
+++ b/graphics/vertex/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: vertex
+# Date created: 1 June 2001
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= vertex
+PORTVERSION= 0.1.15
+PORTREVISION= 3
+CATEGORIES= graphics
+MASTER_SITES= http://wolfpack.twu.net/users/wolfpack/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A 3D modeller for generating efficient game models
+
+LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
+
+USE_BZIP2= yes
+USE_XLIB= yes
+USE_GL= yes
+USE_GNOME= imlib
+USE_GMAKE= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= UNIX
+
+MAN1= ${PORTNAME}.1
+
+post-patch:
+ @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|g'
+ @${REINPLACE_CMD} -e \
+ 's|make|$$(MAKE)|g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/vertex|${DATADIR}|g' ${WRKSRC}/vertex/config.h
+ @${REINPLACE_CMD} \
+ -e 's|echo -n -e|printf|g' -e 's|--color=auto||' \
+ ${WRKSRC}/vertex/makefile_append.ini
+ @${REINPLACE_CMD} -e \
+ 's|%%CC%%|${CC}|g ; \
+ s|%%CXX%%|${CXX}|g ; \
+ s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
+ s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/vertex/platforms.ini
+ @${REINPLACE_CMD} -e \
+ 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/vertex/vmahelp.c
+ @${REINPLACE_CMD} -e \
+ 's|CC =|CC ?=|g' ${WRKSRC}/pconf/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/vertex/vertex ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/vertex/vertex.1 ${MANPREFIX}/man/man1
+ @${MKDIR} ${DATADIR}/icons
+ ${INSTALL_DATA} ${WRKSRC}/vertex/vertex.xpm ${DATADIR}/icons
+ cd ${WRKSRC}/vertex/data && ${FIND} . -type f | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
+ @${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+x
+
+.include <bsd.port.mk>
diff --git a/graphics/vertex/distinfo b/graphics/vertex/distinfo
new file mode 100644
index 000000000..433bbdd77
--- /dev/null
+++ b/graphics/vertex/distinfo
@@ -0,0 +1,3 @@
+MD5 (vertex-0.1.15.tar.bz2) = e80af417866d38791d78e41c8302fe0c
+SHA256 (vertex-0.1.15.tar.bz2) = 2a648a99dcdc298a850965faa695cfc69224db8179811a3dd04131660ae9631f
+SIZE (vertex-0.1.15.tar.bz2) = 1294508
diff --git a/graphics/vertex/files/patch-platforms.ini b/graphics/vertex/files/patch-platforms.ini
new file mode 100644
index 000000000..647c154d4
--- /dev/null
+++ b/graphics/vertex/files/patch-platforms.ini
@@ -0,0 +1,76 @@
+--- vertex/platforms.ini.orig Mon Nov 1 00:35:03 2004
++++ vertex/platforms.ini Thu Oct 5 17:14:40 2006
+@@ -22,23 +22,26 @@
+
+ Platform = UNIX
+ Description = For most any UNIX system
+- PREFIX = /usr/
+- CFLAGS = -Wall -O6 -funroll-loops -fomit-frame-pointer -ffast-math \
++ PREFIX = %%PREFIX%%
++ CFLAGS = %%CXXFLAGS%% \
+ -D__USE_BSD
+ LIBS = -lm
+ LIB_DIR =
+- CC = cc
+- CPP = c++
++ CC = %%CC%%
++ CPP = %%CXX%%
+ PlatformSearchPathInclude = /usr/include/
+- PlatformSearchPathInclude = /usr/X11R6/include/
++ PlatformSearchPathInclude = %%LOCALBASE%%/include/
++ PlatformSearchPathInclude = %%X11BASE%%/include/
+ PlatformSearchPathLib = /lib/
+ PlatformSearchPathLib = /usr/lib/
+- PlatformSearchPathLib = /usr/X11R6/lib/
++ PlatformSearchPathLib = %%LOCALBASE%%/lib/
++ PlatformSearchPathLib = %%X11BASE%%/lib/
+ PlatformSearchPathEtc = /etc/
+ PlatformSearchPathEtc = /usr/etc/
+ PlatformSearchPathBin = /bin/
+ PlatformSearchPathBin = /usr/bin/
+- PlatformSearchPathBin = /usr/X11R6/bin/
++ PlatformSearchPathBin = %%LOCALBASE%%/bin/
++ PlatformSearchPathBin = %%X11BASE%%/bin/
+ PlatformSearchPathData = /usr/share/icons/
+ PlatformFeature = debug
+ Description = Just adds -g to the CFLAGS for debugging
+@@ -51,7 +54,7 @@
+ # Newer versions of Imlib only need to link to -lImlib
+ # FeatureLIBS = -lImlib -lpng -ltiff -ljpeg -lz
+ FeatureLIBS = -lImlib
+- FeatureLIB_DIR = -L/usr/X11R6/lib/
++ FeatureLIB_DIR = -L%%LOCALBASE%%/lib/
+ FeatureDepend = Imlib-lib
+ DependType = Library
+ MustExist = Yes
+@@ -66,6 +69,7 @@
+ Description = An implementation of OpenGL (ie Mesa3D)
+ MustExist = Yes
+ FeatureLIBS = -lGL -lGLU
++ FeatureLIB_DIR = -L%%X11BASE%%/lib/
+ FeatureDepend = gl-lib
+ DependType = Library
+ MustExist = Yes
+@@ -83,11 +87,11 @@
+ MustExist = Yes
+ FeatureCFLAGS = `gtk-config --cflags`
+ FeatureLIBS = `gtk-config --libs`
+- FeatureLIB_DIR = -L/usr/X11R6/lib/
++ FeatureLIB_DIR = -L%%LOCALBASE%%/lib/
+ FeatureDepend = gtk-lib
+ DependType = Library
+ MustExist = Yes
+- DependPath = libgtk.so
++ DependPath = libgtk-12.so
+ DependGrepString = gtk_init
+ FeatureDepend = gtk-devel
+ DependType = Program
+@@ -98,7 +102,7 @@
+ MustExist = Yes
+ FeatureCFLAGS =
+ FeatureLIBS = -lgtkgl
+- FeatureLIB_DIR = -L/usr/X11R6/lib/
++ FeatureLIB_DIR = -L%%LOCALBASE%%/lib/
+ FeatureDepend = gtkgl-lib
+ DependType = Library
+ MustExist = Yes
diff --git a/graphics/vertex/files/patch-vmahelp.c b/graphics/vertex/files/patch-vmahelp.c
new file mode 100644
index 000000000..ef9250038
--- /dev/null
+++ b/graphics/vertex/files/patch-vmahelp.c
@@ -0,0 +1,26 @@
+
+$FreeBSD: ports/graphics/vertex/files/patch-vmahelp.c,v 1.2 2003/10/24 20:08:06 krion Exp $
+
+--- vertex/vmahelp.c 2001/10/05 17:31:12 1.1
++++ vertex/vmahelp.c 2001/10/05 17:33:21
+@@ -41,16 +41,12 @@
+ */
+ #define HELP_PROG_LOCATIONS \
+ { \
+- "/usr/bin/gnome-help-browser", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+- "/usr/local/bin/gnome-help-browser", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+- "/bin/gnome-help-browser", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
++ "%%LOCALBASE%%/bin/gnome-help-browser", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+ \
+- "/usr/bin/netscape", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+- "/usr/local/bin/netscape", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+- "/bin/netscape", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
++ "%%X11BASE%%/bin/netscape", "", (char *)HELP_PROG_INPUT_TYPE_URL, \
+ \
+- "/usr/X11R6/bin/nxterm", "-e lynx", (char *)HELP_PROG_INPUT_TYPE_URL, \
+- "/usr/X11R6/bin/xterm", "-e lynx", (char *)HELP_PROG_INPUT_TYPE_URL, \
++ "%%X11BASE%%/bin/nxterm", "-e lynx", (char *)HELP_PROG_INPUT_TYPE_URL, \
++ "%%X11BASE%%/bin/xterm", "-e lynx", (char *)HELP_PROG_INPUT_TYPE_URL, \
+ \
+ NULL, NULL, NULL \
+ }
diff --git a/graphics/vertex/pkg-descr b/graphics/vertex/pkg-descr
new file mode 100644
index 000000000..32deb1dda
--- /dev/null
+++ b/graphics/vertex/pkg-descr
@@ -0,0 +1,24 @@
+Vertex 3D Model Assembler (sometimes reffered to as just Vertex) is a unique
+modeller designed specifically for generating efficient game models for (but
+not limited to) games and applications using OpenGL's style of graphics
+rendering.
+
+This is not a modeller intended to create massive 3D scenes for ray tracers.
+However there are plans to support exporting models to ray tracers (ie POVRAY),
+Vertex is not intended to be an eye candy modeller but rather a strict high
+performance game model maker.
+
+Vertex supports the native V3D format, it is a hybrid text file format designed
+to easilly support third party proprietery data as well as V3D model data in an
+OpenGL friendly layout so that it can be read and loaded quickly into OpenGL
+display lists (if that is what the application wants) or into editable data
+structures in terms of `models' and `primitives'. One V3D file may contain
+multiple modelmodels and embedded third party proprietery data within and
+outside model sections in the file.
+
+Vertex is a modeller written by game programmers for game programmers, its
+intent is to maximize efficiency and detail tradeoff for high performance
+animations in games. Artists using modellers for ray-tracers make need some
+breaking into the differences of making models for ray tracers vs games.
+
+WWW: http://wolfpack.twu.net/Vertex/
diff --git a/graphics/vertex/pkg-plist b/graphics/vertex/pkg-plist
new file mode 100644
index 000000000..01867e65d
--- /dev/null
+++ b/graphics/vertex/pkg-plist
@@ -0,0 +1,40 @@
+bin/vertex
+%%DATADIR%%/LICENSE
+%%DATADIR%%/help/application_map.png
+%%DATADIR%%/help/contacts.html
+%%DATADIR%%/help/create_model_dialog.png
+%%DATADIR%%/help/four_quad_cylender.png
+%%DATADIR%%/help/header_dialog.png
+%%DATADIR%%/help/index.html
+%%DATADIR%%/help/keyboard.html
+%%DATADIR%%/help/legend.html
+%%DATADIR%%/help/light_properties_dialog.png
+%%DATADIR%%/help/plugins.html
+%%DATADIR%%/help/primitives_palette.png
+%%DATADIR%%/help/texture_orient_example.png
+%%DATADIR%%/help/tutorial01.html
+%%DATADIR%%/help/tutorial02.html
+%%DATADIR%%/help/tutorial03.html
+%%DATADIR%%/help/tutorial04.html
+%%DATADIR%%/help/tutorial05.html
+%%DATADIR%%/help/tutorial06.html
+%%DATADIR%%/help/tutorial07.html
+%%DATADIR%%/help/tutorial08.html
+%%DATADIR%%/help/tutorials.html
+%%DATADIR%%/help/v3dformat.html
+%%DATADIR%%/help/values_list.png
+%%DATADIR%%/help/viewing.html
+%%DATADIR%%/icons/vertex.xpm
+%%DATADIR%%/images/installer_footer.xpm
+%%DATADIR%%/images/installer_heading.xpm
+%%DATADIR%%/images/installer_main.xpm
+%%DATADIR%%/images/splash.xpm
+%%DATADIR%%/preset_models/01.3d
+%%DATADIR%%/preset_models/02.3d
+%%DATADIR%%/preset_primitives/01.3d
+@dirrm %%DATADIR%%/preset_primitives
+@dirrm %%DATADIR%%/preset_models
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/icons
+@dirrm %%DATADIR%%/help
+@dirrm %%DATADIR%%