mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Add quesa 1.6d18, high level 3D graphics library compatible with
Apple's QuickDraw(TM). PR: 62370 Submitted by: Igor Pokrovsky <tiamat@comset.net> Approved by: mat (mentor).
This commit is contained in:
parent
45c65f3637
commit
0e52aa382b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105647
@ -344,6 +344,7 @@
|
||||
SUBDIR += qtutils
|
||||
SUBDIR += quat
|
||||
SUBDIR += quat-gui
|
||||
SUBDIR += quesa
|
||||
SUBDIR += quickpics
|
||||
SUBDIR += qvplay
|
||||
SUBDIR += ray++
|
||||
|
90
graphics/quesa/Makefile
Normal file
90
graphics/quesa/Makefile
Normal file
@ -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>
|
1
graphics/quesa/distinfo
Normal file
1
graphics/quesa/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (quesa_1.6d18.tar.gz) = 6c6740ef4459e2d6cbde7389a63f61b6
|
@ -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
|
||||
|
||||
|
||||
|
10
graphics/quesa/files/patch-Makefile.am
Normal file
10
graphics/quesa/files/patch-Makefile.am
Normal file
@ -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
|
||||
|
27
graphics/quesa/files/patch-Makefile.am.examples
Normal file
27
graphics/quesa/files/patch-Makefile.am.examples
Normal file
@ -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 \
|
58
graphics/quesa/files/patch-Scripts_buildUnix.sh
Normal file
58
graphics/quesa/files/patch-Scripts_buildUnix.sh
Normal file
@ -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
|
||||
|
11
graphics/quesa/files/patch-configure.in
Normal file
11
graphics/quesa/files/patch-configure.in
Normal file
@ -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.
|
13
graphics/quesa/pkg-descr
Normal file
13
graphics/quesa/pkg-descr
Normal file
@ -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
|
39
graphics/quesa/pkg-plist
Normal file
39
graphics/quesa/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user