summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-15 19:18:59 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-06-15 19:18:59 +0000
commitf3f429fe77568b9797299e1cf385db7684db6192 (patch)
tree0dcc593b85144af0ba56d3d356bff39de5ef1b3c
parentupdate ntop to 2.2 (diff)
New port linux-ac3d version 3.6: Easy to use and powerful 3D graphics
modeller (trial version) PR: 40514 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru>
Notes
Notes: svn path=/head/; revision=83033
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/linux-ac3d/Makefile100
-rw-r--r--graphics/linux-ac3d/distinfo1
-rw-r--r--graphics/linux-ac3d/pkg-descr10
-rw-r--r--graphics/linux-ac3d/pkg-message7
-rw-r--r--graphics/linux-ac3d/pkg-plist63
6 files changed, 182 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 64082d28600a..9f51f396fa15 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -203,6 +203,7 @@
SUBDIR += libwmf
SUBDIR += libwpcg
SUBDIR += linplasma
+ SUBDIR += linux-ac3d
SUBDIR += linux-bmrt
SUBDIR += linux-imlib
SUBDIR += linux-jpeg
diff --git a/graphics/linux-ac3d/Makefile b/graphics/linux-ac3d/Makefile
new file mode 100644
index 000000000000..c62cd1b53b30
--- /dev/null
+++ b/graphics/linux-ac3d/Makefile
@@ -0,0 +1,100 @@
+# New ports collection makefile for: linux-ac3d
+# Date created: 12 July 2002
+# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ac3d
+PORTVERSION= 3.6
+CATEGORIES= graphics linux
+MASTER_SITES= http://inivis.swmirror.com/
+PKGNAMEPREFIX= linux-
+DISTNAME= ac3d${PORTVERSION:S/.//}lx
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tiamat@telegraph.spb.ru
+COMMENT= Easy to use and powerful 3D graphics modeller (trial version)
+
+.ifdef(INSTALL_DYNLINKED_VERSION)
+LIB_DEPENDS= ${LINUXBASE}/usr/X11R6/libGLU.so.1:${PORTSDIR}/graphics/linux_mesa3
+.endif
+
+USE_LINUX= yes
+NO_BUILD= yes
+ONLY_FOR_ARCHS= i386
+WRKSRC= ${WRKDIR}/ac3dlx
+
+.ifndef(INSTALL_DYNLINKED_VERSION)
+PLIST_SUB= DYNAMIC_VERSION="@comment " \
+ STATIC_VERSION=""
+PROGRAM= ac3ds
+.else
+PLIST_SUB= DYNAMIC_VERSION="" \
+ STATIC_VERSION="@comment "
+PROGRAM= ac3d
+.endif
+
+# Linux binary should not be stripped by INSTALL_PROGRAM
+# because as a side effect it brands the binary as FreeBSD.
+STRIP=
+
+.ifndef(INSTALL_DYNLINKED_VERSION)
+pre-everything::
+ @${ECHO_MSG} 'Define INSTALL_DYNLINKED_VERSION=yes to install'
+ @${ECHO_MSG} 'a dynamically linked (against linux MesaGL)'
+ @${ECHO_MSG} 'version of the program.'
+ @${ECHO_MSG} 'It may be useful with hardware accellerated MesaGL'
+ @${ECHO_MSG} ''
+.endif
+
+pre-install:
+# Generate startup script
+ @${ECHO_CMD} "#!${SH}" > ${WRKDIR}/ac3d.sh
+ @${ECHO_CMD} "${SETENV} AC3D_HOME=\"${DATADIR}\" \
+ ${PREFIX}/bin/real-${PROGRAM}" >> \
+ ${WRKDIR}/ac3d.sh
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} \
+ ${PREFIX}/bin/real-${PROGRAM}
+ @${INSTALL_SCRIPT} ${WRKDIR}/ac3d.sh ${PREFIX}/bin/ac3d.sh
+
+# Install small Tcl/Tk distribution
+# Tcl/Tk, installed from ports tree will also make a job,
+# but AC3D wants AC3D_HOME to point to directory with
+# Tcl/Tk scripts library (which is ${LOCALBASE}/lib for version
+# from ports).
+# data
+ @${MKDIR} ${DATADIR}
+ @${MKDIR} ${DATADIR}/lib
+ @${MKDIR} ${DATADIR}/lib/tcl8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tcl8.3/tclIndex \
+ ${DATADIR}/lib/tcl8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tcl8.3/*.tcl ${DATADIR}/lib/tcl8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tcl8.3/license.terms \
+ ${DATADIR}/lib/tcl8.3
+ @${MKDIR} ${DATADIR}/lib/tk8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tk8.3/tclIndex ${DATADIR}/lib/tk8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tk8.3/*.tcl ${DATADIR}/lib/tk8.3
+ @${INSTALL_DATA} ${WRKSRC}/lib/tk8.3/license.terms \
+ ${DATADIR}/lib/tk8.3
+ @${MKDIR} ${DATADIR}/tcl
+ @${INSTALL_DATA} ${WRKSRC}/tcl/*.tcl ${DATADIR}/tcl
+ @${INSTALL_DATA} ${WRKSRC}/font.ac ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/fontwire.ac ${DATADIR}
+.ifndef (NOPORTDOCS)
+# docs
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/LICENCE ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/IMPORTANT ${DOCSDIR}
+# examples
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/models/* ${EXAMPLESDIR}
+.endif
+
+post-install:
+ @${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/graphics/linux-ac3d/distinfo b/graphics/linux-ac3d/distinfo
new file mode 100644
index 000000000000..50d2b25274a5
--- /dev/null
+++ b/graphics/linux-ac3d/distinfo
@@ -0,0 +1 @@
+MD5 (ac3d36lx.tgz) = 8c04028b436b89c975790e9462d58cb5
diff --git a/graphics/linux-ac3d/pkg-descr b/graphics/linux-ac3d/pkg-descr
new file mode 100644
index 000000000000..26cc31a30686
--- /dev/null
+++ b/graphics/linux-ac3d/pkg-descr
@@ -0,0 +1,10 @@
+AC3D is 3D object/scene modeller available for Linux,
+Windows 95/NT, and SGI. It's is very easy to use,
+but powerful too - anyone can create good looking 3d
+objects in minutes. It outputs POV-Ray, VRML (1 and 2),
+RenderMan, Dive, Massive and other formats.
+
+WWW: http://www.ac3d.org/
+
+- Igor Pokrovsky
+tiamat@telegraph.spb.ru
diff --git a/graphics/linux-ac3d/pkg-message b/graphics/linux-ac3d/pkg-message
new file mode 100644
index 000000000000..3993f1d721e2
--- /dev/null
+++ b/graphics/linux-ac3d/pkg-message
@@ -0,0 +1,7 @@
+*******************************************************************************
+Now you can start program by running /usr/local/bin/ac3d.sh
+
+TIP: Fonts were installed in /usr/local/share/ac3d
+To use them, you can change variable <fontpath> in ~/.ac3dprefs after first run
+There is also some examples, installed in /usr/local/share/examples/ac3d
+*******************************************************************************
diff --git a/graphics/linux-ac3d/pkg-plist b/graphics/linux-ac3d/pkg-plist
new file mode 100644
index 000000000000..f038a69d8dde
--- /dev/null
+++ b/graphics/linux-ac3d/pkg-plist
@@ -0,0 +1,63 @@
+bin/ac3d.sh
+%%DYNAMIC_VERSION%%bin/real-ac3d
+%%STATIC_VERSION%%bin/real-ac3ds
+share/ac3d/font.ac
+share/ac3d/fontwire.ac
+share/ac3d/lib/tcl8.3/auto.tcl
+share/ac3d/lib/tcl8.3/history.tcl
+share/ac3d/lib/tcl8.3/init.tcl
+share/ac3d/lib/tcl8.3/ldAout.tcl
+share/ac3d/lib/tcl8.3/license.terms
+share/ac3d/lib/tcl8.3/package.tcl
+share/ac3d/lib/tcl8.3/parray.tcl
+share/ac3d/lib/tcl8.3/safe.tcl
+share/ac3d/lib/tcl8.3/tclIndex
+share/ac3d/lib/tcl8.3/word.tcl
+share/ac3d/lib/tk8.3/bgerror.tcl
+share/ac3d/lib/tk8.3/button.tcl
+share/ac3d/lib/tk8.3/choosedir.tcl
+share/ac3d/lib/tk8.3/clrpick.tcl
+share/ac3d/lib/tk8.3/comdlg.tcl
+share/ac3d/lib/tk8.3/console.tcl
+share/ac3d/lib/tk8.3/dialog.tcl
+share/ac3d/lib/tk8.3/entry.tcl
+share/ac3d/lib/tk8.3/focus.tcl
+share/ac3d/lib/tk8.3/license.terms
+share/ac3d/lib/tk8.3/listbox.tcl
+share/ac3d/lib/tk8.3/menu.tcl
+share/ac3d/lib/tk8.3/msgbox.tcl
+share/ac3d/lib/tk8.3/obsolete.tcl
+share/ac3d/lib/tk8.3/optMenu.tcl
+share/ac3d/lib/tk8.3/palette.tcl
+share/ac3d/lib/tk8.3/safetk.tcl
+share/ac3d/lib/tk8.3/scale.tcl
+share/ac3d/lib/tk8.3/scrlbar.tcl
+share/ac3d/lib/tk8.3/tclIndex
+share/ac3d/lib/tk8.3/tearoff.tcl
+share/ac3d/lib/tk8.3/text.tcl
+share/ac3d/lib/tk8.3/tk.tcl
+share/ac3d/lib/tk8.3/tkfbox.tcl
+share/ac3d/lib/tk8.3/xmfbox.tcl
+share/ac3d/tcl/ac3d.tcl
+share/ac3d/tcl/ac3dfsbox.tcl
+share/ac3d/tcl/ac3dhier.tcl
+share/ac3d/tcl/ac3dops.tcl
+share/ac3d/tcl/ac3dpalette.tcl
+share/ac3d/tcl/ac3dplugins.tcl
+share/ac3d/tcl/ac3dprefs.tcl
+share/ac3d/tcl/ac3dtips.tcl
+share/ac3d/tcl/ac3duvedit.tcl
+share/ac3d/tcl/ac3dview.tcl
+%%PORTDOCS%%share/doc/ac3d/IMPORTANT
+%%PORTDOCS%%share/doc/ac3d/LICENCE
+%%PORTDOCS%%share/doc/ac3d/README
+%%PORTDOCS%%share/examples/ac3d/tie3.ac
+%%PORTDOCS%%share/examples/ac3d/tree.ac
+%%PORTDOCS%%share/examples/ac3d/tree_transparent.gif
+%%PORTDOCS%%@dirrm share/examples/ac3d
+%%PORTDOCS%%@dirrm share/doc/ac3d
+@dirrm share/ac3d/tcl
+@dirrm share/ac3d/lib/tk8.3
+@dirrm share/ac3d/lib/tcl8.3
+@dirrm share/ac3d/lib
+@dirrm share/ac3d