aboutsummaryrefslogtreecommitdiff
path: root/graphics/quesa
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-03-29 20:18:10 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-03-29 20:18:10 +0000
commit0e52aa382bdbddb6cb1afdcce35bbc7cbecf18b0 (patch)
treefde7f24915ce9ac1233281252d8404e0230890e4 /graphics/quesa
parent45c65f3637564ac15f34f33463a8632e4d08ca72 (diff)
downloadports-0e52aa382bdbddb6cb1afdcce35bbc7cbecf18b0.tar.gz
ports-0e52aa382bdbddb6cb1afdcce35bbc7cbecf18b0.zip
Notes
Diffstat (limited to 'graphics/quesa')
-rw-r--r--graphics/quesa/Makefile90
-rw-r--r--graphics/quesa/distinfo1
-rw-r--r--graphics/quesa/files/patch-.._.._Source_Platform_Unix_E3UnixPrefix.h13
-rw-r--r--graphics/quesa/files/patch-Makefile.am10
-rw-r--r--graphics/quesa/files/patch-Makefile.am.examples27
-rw-r--r--graphics/quesa/files/patch-Scripts_buildUnix.sh58
-rw-r--r--graphics/quesa/files/patch-configure.in11
-rw-r--r--graphics/quesa/pkg-descr13
-rw-r--r--graphics/quesa/pkg-plist39
9 files changed, 262 insertions, 0 deletions
diff --git a/graphics/quesa/Makefile b/graphics/quesa/Makefile
new file mode 100644
index 000000000000..6ddac2193583
--- /dev/null
+++ b/graphics/quesa/Makefile
@@ -0,0 +1,90 @@
+# New ports collection makefile for: quesa
+# Date created: 03 Feb 2004
+# Whom: Igor Pokrovsky <tiamat@comset.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= quesa
+PORTVERSION= 1.6d18
+CATEGORIES= graphics
+MASTER_SITES= http://www.quesa.org/info/files/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= tiamat@comset.net
+COMMENT= High level 3D graphics library compatible with Apple's QuickDraw(TM)
+
+USE_REINPLACE= yes
+WANT_AUTOCONF_VER?= 253
+WANT_AUTOMAKE_VER?= 15
+USE_LIBTOOL= yes
+USE_GL= yes
+USE_X_PREFIX= yes
+.ifdef (WITH_QUESA_EXAMPLES)
+USE_GNOME= gtk12
+.endif
+INSTALLS_SHLIB= yes
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/Development/Projects/Unix
+
+CSH?= /bin/csh
+
+.if !defined(WITH_QUESA_EXAMPLES)
+PLIST_SUB= WITH_QUESA_EXAMPLES="@comment "
+.else
+PLIST_SUB= WITH_QUESA_EXAMPLES=""
+.endif
+
+.ifndef (WITH_QUESA_EXAMPLES)
+pre-everything::
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Define WITH_QUESA_EXAMPLES=yes to build and install Quesa example programs"
+ @${ECHO_CMD} ""
+.endif
+
+pre-patch:
+ @${FIND} ${WRKSRC} -type f -print0 | \
+ ${XARGS} -0 ${REINPLACE_CMD} -e "y/$$(${PRINTF} '\r')/\n/"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%ACLOCAL%%|${ACLOCAL}|g; \
+ s|%%AUTOMAKE%%|${AUTOMAKE}|g; \
+ s|%%AUTOMAKE_ENV%%|${AUTOMAKE_ENV}|g; \
+ s|%%AUTOCONF%%|${AUTOCONF}|g; \
+ s|%%AUTOCONF_ENV%%|${AUTOCONF_ENV}|g; \
+ s|%%SETENV%%|${SETENV}|g' \
+ ${WRKSRC}/Scripts/buildUnix.sh
+.ifdef (WITH_QUESA_EXAMPLES)
+ @${REINPLACE_CMD} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g' \
+ ${WRKSRC}/Makefile.am.examples
+.endif
+
+pre-configure:
+ cd ${WRKSRC}/Scripts && \
+ ${CSH} ./prepareUnixTree.sh && ${CSH} ./buildUnix.sh
+.ifdef (WITH_QUESA_EXAMPLES)
+ @(cd ${WRKSRC}/Examples && \
+ ${SETENV} CC="${CC}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ INSTALL="${INSTALL}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+.endif
+
+.ifdef (WITH_QUESA_EXAMPLES)
+post-build:
+ @(cd ${WRKSRC}/Examples && \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} ${ALL_TARGET})
+.endif
+
+.ifdef (WITH_QUESA_EXAMPLES)
+post-install:
+ @(cd ${WRKSRC}/Examples && \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} ${INSTALL_TARGET})
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/quesa/distinfo b/graphics/quesa/distinfo
new file mode 100644
index 000000000000..41da5e438db4
--- /dev/null
+++ b/graphics/quesa/distinfo
@@ -0,0 +1 @@
+MD5 (quesa_1.6d18.tar.gz) = 6c6740ef4459e2d6cbde7389a63f61b6
diff --git a/graphics/quesa/files/patch-.._.._Source_Platform_Unix_E3UnixPrefix.h b/graphics/quesa/files/patch-.._.._Source_Platform_Unix_E3UnixPrefix.h
new file mode 100644
index 000000000000..17480e3c35e1
--- /dev/null
+++ b/graphics/quesa/files/patch-.._.._Source_Platform_Unix_E3UnixPrefix.h
@@ -0,0 +1,13 @@
+--- ../../Source/Platform/Unix/E3UnixPrefix.h.orig Wed Feb 4 10:52:24 2004
++++ ../../Source/Platform/Unix/E3UnixPrefix.h Wed Feb 4 10:52:51 2004
+@@ -44,7 +44,9 @@
+ //-----------------------------------------------------------------------------
+ // Build constants go here
+
+-
++#ifdef __FreeBSD__
++#define isfinite finite
++#endif
+
+
+
diff --git a/graphics/quesa/files/patch-Makefile.am b/graphics/quesa/files/patch-Makefile.am
new file mode 100644
index 000000000000..d60d3173381a
--- /dev/null
+++ b/graphics/quesa/files/patch-Makefile.am
@@ -0,0 +1,10 @@
+--- Makefile.am.orig Wed Feb 4 08:19:51 2004
++++ Makefile.am Wed Feb 4 08:20:09 2004
+@@ -267,6 +267,6 @@
+ ${SRC}${PLATFORM}/E3UnixDrawContext.c
+
+
+-libquesa_la_CFLAGS= -std=c99 -DQUESA_OS_UNIX=1 $(WARN) $(QUESAINCLUDES)
++libquesa_la_CFLAGS= -DQUESA_OS_UNIX=1 $(WARN) $(QUESAINCLUDES)
+ libquesa_la_LIBADD= -lm -lc -lX11 -lGL -lGLU
+
diff --git a/graphics/quesa/files/patch-Makefile.am.examples b/graphics/quesa/files/patch-Makefile.am.examples
new file mode 100644
index 000000000000..bf1b45675b60
--- /dev/null
+++ b/graphics/quesa/files/patch-Makefile.am.examples
@@ -0,0 +1,27 @@
+--- Makefile.am.examples.orig Wed Feb 4 14:49:13 2004
++++ Makefile.am.examples Wed Feb 4 14:51:42 2004
+@@ -2,19 +2,19 @@
+
+ QUT= Qut
+ GEOMTEST= GeomTest
+-prefix = /usr/local/Quesa
++prefix = %%EXAMPLESDIR%%
+
+-modelsdir=$(prefix)/Models
++modelsdir=%%EXAMPLESDIR%%/Models
+
+ quesaexamples_commoncflags= -DQUESA_OS_UNIX=1 $(WARN) $(QUESAINCLUDES) $(GTK_CFLAGS)
+-quesaexamples_commonldadd= -L/usr/local/lib -L. -lquesaqut -lquesa -lc -lGL -lGLU $(GTK_LIBS)
++quesaexamples_commonldadd= -L../$(srcdir) -L. -lquesaqut -lquesa -lc -lGL -lGLU $(GTK_LIBS)
+
+
+-bin_PROGRAMS= geomtest importtest cameratest dumpgroup lighttest
++bin_PROGRAMS= geomtest importtest cameratest dumpgroup lighttest
+
+ noinst_LIBRARIES= libquesaqut.a
+
+-QUESAINCLUDES= -I/usr/local/include/quesa \
++QUESAINCLUDES= -I../$(srcdir)/APIincludes \
+ -I$(srcdir)/Qut
+
+ WARN= -Wall -Wpointer-arith -Wno-cast-qual -Waggregate-return \
diff --git a/graphics/quesa/files/patch-Scripts_buildUnix.sh b/graphics/quesa/files/patch-Scripts_buildUnix.sh
new file mode 100644
index 000000000000..0f1638356e3d
--- /dev/null
+++ b/graphics/quesa/files/patch-Scripts_buildUnix.sh
@@ -0,0 +1,58 @@
+--- Scripts/buildUnix.sh.orig Wed Feb 4 09:16:35 2004
++++ Scripts/buildUnix.sh Wed Feb 4 09:17:32 2004
+@@ -28,11 +28,11 @@
+
+ # create the build system for libquesa
+ ######################################
+-aclocal
+-automake --add-missing
+-automake
+-autoconf
+-./configure
++%%ACLOCAL%%
++%%SETENV%% %%AUTOMAKE_ENV%% %%AUTOMAKE%% --add-missing
++%%SETENV%% %%AUTOMAKE_ENV%% %%AUTOMAKE%% -i
++%%SETENV%% %%AUTOCONF_ENV%% %%AUTOCONF%%
++#./configure
+
+ # create the build system for the examples
+ ######################################
+@@ -40,27 +40,25 @@
+ pushd Examples || exit
+
+ # make sure we can find gtk-config
+-PATH=${PATH}:/usr/local/bin
+-
+-export PATH
++#setenv PATH ${PATH}:/usr/local/bin
+
+ # make sure we can find gtk.m4
+-ACLOCALADDPATHS=
+-if test -d /usr/local/share/aclocal; then
+- ACLOCALADDPATHS="${ACLOCALADDPATHS} -I /usr/local/share/aclocal"
+-fi
++#ACLOCALADDPATHS=
++#if test -d /usr/local/share/aclocal; then
++# ACLOCALADDPATHS="${ACLOCALADDPATHS} -I /usr/local/share/aclocal"
++#fi
+
+-aclocal ${ACLOCALADDPATHS}
+-automake --add-missing
+-automake
+-autoconf
+-./configure
++%%ACLOCAL%%
++%%SETENV%% %%AUTOMAKE_ENV%% %%AUTOMAKE%% --add-missing
++%%SETENV%% %%AUTOMAKE_ENV%% %%AUTOMAKE%% -i
++%%SETENV%% %%AUTOCONF_ENV%% %%AUTOCONF%%
++#./configure
+
+ popd
+
+ # build libquesa
+ ######################################
+-make
++#make
+
+ popd
+
diff --git a/graphics/quesa/files/patch-configure.in b/graphics/quesa/files/patch-configure.in
new file mode 100644
index 000000000000..d85fc4d12292
--- /dev/null
+++ b/graphics/quesa/files/patch-configure.in
@@ -0,0 +1,11 @@
+--- configure.in.orig Wed Feb 4 09:49:14 2004
++++ configure.in Wed Feb 4 09:49:33 2004
+@@ -2,7 +2,7 @@
+ AC_INIT(Quesa,1.6d18,quesa_list@designcommunity.com)
+
+ AC_CONFIG_SRCDIR(Source/Core/Glue/QD3DCamera.c)
+-AM_INIT_AUTOMAKE([no-dependencies])
++AM_INIT_AUTOMAKE(quesa,1.6d18)
+ AM_MAINTAINER_MODE
+
+ dnl Checks for programs.
diff --git a/graphics/quesa/pkg-descr b/graphics/quesa/pkg-descr
new file mode 100644
index 000000000000..ea171a028195
--- /dev/null
+++ b/graphics/quesa/pkg-descr
@@ -0,0 +1,13 @@
+Quesa is a high level 3D graphics library, released as Open Source under
+the LGPL, which offers binary and source level compatibility with Apple's
+QuickDraw(TM) 3D API. Quesa does not contain any Apple source code, and was
+developed without access to Apple's QD3D implementation.
+
+QD3D supports both retained and immediate mode rendering, an extensible file
+format, plug-in renderers, a wide range of high level geometries, hierarchical
+models, and a consistent and object-orientated API.
+
+WWW: http://www.quesa.org/
+
+- Igor Pokrovsky
+tiamat@comset.net
diff --git a/graphics/quesa/pkg-plist b/graphics/quesa/pkg-plist
new file mode 100644
index 000000000000..e6de00822fe0
--- /dev/null
+++ b/graphics/quesa/pkg-plist
@@ -0,0 +1,39 @@
+include/quesa/Quesa.h
+include/quesa/QuesaCamera.h
+include/quesa/QuesaController.h
+include/quesa/QuesaCustomElements.h
+include/quesa/QuesaDrawContext.h
+include/quesa/QuesaErrors.h
+include/quesa/QuesaExtension.h
+include/quesa/QuesaGeometry.h
+include/quesa/QuesaGroup.h
+include/quesa/QuesaIO.h
+include/quesa/QuesaLight.h
+include/quesa/QuesaMath.h
+include/quesa/QuesaMemory.h
+include/quesa/QuesaPick.h
+include/quesa/QuesaRenderer.h
+include/quesa/QuesaSet.h
+include/quesa/QuesaShader.h
+include/quesa/QuesaStorage.h
+include/quesa/QuesaString.h
+include/quesa/QuesaStyle.h
+include/quesa/QuesaTransform.h
+include/quesa/QuesaView.h
+include/quesa/QuesaViewer.h
+lib/libquesa.a
+lib/libquesa.so
+lib/libquesa.so.0
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/Models/F15.3dmf
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/Models/F18.3dmf
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/Models/PodRacer.3dmf
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/Models/QuesaLogo.3dmf
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/bin/cameratest
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/bin/dumpgroup
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/bin/geomtest
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/bin/importtest
+%%WITH_QUESA_EXAMPLES%%%%EXAMPLESDIR%%/bin/lighttest
+%%WITH_QUESA_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/bin
+%%WITH_QUESA_EXAMPLES%%@dirrm %%EXAMPLESDIR%%/Models
+%%WITH_QUESA_EXAMPLES%%@dirrm %%EXAMPLESDIR%%
+@dirrm include/quesa