diff --git a/graphics/Makefile b/graphics/Makefile index 62a311e377a8..16d782d3209a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -233,6 +233,7 @@ SUBDIR += opendx SUBDIR += opendx-samples SUBDIR += opengl-man + SUBDIR += openproducer SUBDIR += openrm SUBDIR += ophoto SUBDIR += optipng diff --git a/graphics/openproducer/Makefile b/graphics/openproducer/Makefile new file mode 100644 index 000000000000..85ea52e432d2 --- /dev/null +++ b/graphics/openproducer/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: openproducer +# Date created: 22 July 2003 +# Whom: Ying-Chieh Chen +# +# $FreeBSD$ +# + +PORTNAME= openproducer +PORTVERSION= 0.8.2.2 +CATEGORIES= graphics +MASTER_SITES= http://www.andesengineering.com/Producer/Download/ +DISTNAME= Producer-${PORTVERSION:R}-${PORTVERSION:E} + +MAINTAINER= yinjieh@csie.nctu.edu.tw +COMMENT= A cross-platform C++/OpenGL library focused on camera control + +USE_REINPLACE= yes +USE_X_PREFIX= yes +USE_MESA= yes +INSTALLS_SHLIB= yes +USE_GMAKE= yes +MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} + +WRKSRC= ${WRKDIR}/${DISTNAME} +MAKEFILE= GNUmakefile + +# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default +ALL_TARGET= opt + +post-install: + ${LN} -sf ${PREFIX}/lib/libProducer.so ${PREFIX}/lib/libProducer.so.0 +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${CP} -r ${WRKSRC}/doc/ ${DOCSDIR} +.endif + +.include diff --git a/graphics/openproducer/distinfo b/graphics/openproducer/distinfo new file mode 100644 index 000000000000..f9ce0f34a604 --- /dev/null +++ b/graphics/openproducer/distinfo @@ -0,0 +1 @@ +MD5 (Producer-0.8.2-2.tar.gz) = 070fd2108c196506ebc3103628d28547 diff --git a/graphics/openproducer/files/patch-Make::makedefs b/graphics/openproducer/files/patch-Make::makedefs new file mode 100644 index 000000000000..4b2bf0e55da5 --- /dev/null +++ b/graphics/openproducer/files/patch-Make::makedefs @@ -0,0 +1,20 @@ +--- Make/makedefs.orig Sat Apr 19 01:07:23 2003 ++++ Make/makedefs Mon Jul 21 18:15:32 2003 +@@ -239,8 +239,15 @@ + SHARED = -shared + ARCH = 32 + ARCHARGS = +- INST_SYS_PREFIX = /opt/X11R6 +- INST_SHARE_PREFIX = /usr/share/Producer ++ INST_SYS_PREFIX = $(PREFIX) ++ INST_SHARE_PREFIX = $(INST_SYS_PREFIX)/share/openproducer ++ LINKARGS = -L/usr/X11R6/lib -L/usr/local/lib -rpath /usr/local/lib -rpath /usr/X11R6/lib ++ INST_LOCATION = $(INST_SYS_PREFIX) ++ INST_SHARE = $(INST_SHARE_PREFIX) ++ INST_DEMOS = $(INST_LOCATION)/openproducer/bin ++ INST_SRC = $(INST_LOCATION)/openproducer/src ++ INST_DOC = $(INST_LOCATION)/openproducer/doc ++ INST_DATA = $(INST_SHARE)/openproducer/data + endif + + #### MacOS X specific definitions diff --git a/graphics/openproducer/files/patch-src::GNUmakefile b/graphics/openproducer/files/patch-src::GNUmakefile new file mode 100644 index 000000000000..712455acd040 --- /dev/null +++ b/graphics/openproducer/files/patch-src::GNUmakefile @@ -0,0 +1,11 @@ +--- src/GNUmakefile.orig Thu Apr 10 04:16:47 2003 ++++ src/GNUmakefile Mon Jul 21 14:03:29 2003 +@@ -27,7 +27,7 @@ + ## LIBS = -lGL -lXmu -lXmu -lX11 -lpthread -ll + + INC += -I$(TOPDIR)/include -I$(THISDIR) +-LIBS = -lGL -lXmu -lXmu -lX11 -lpthread ++LIBS = -lGL -lXmu -lXmu -lX11 $(PTHREAD_LIBS) + LIB = libProducer + + include $(TOPDIR)/Make/makerules diff --git a/graphics/openproducer/pkg-descr b/graphics/openproducer/pkg-descr new file mode 100644 index 000000000000..c45e0428d374 --- /dev/null +++ b/graphics/openproducer/pkg-descr @@ -0,0 +1,17 @@ +From the 'overview' section of the official site: + +Open Producer (or simply Producer) is a cross-platform C++/OpenGL library +that is focused on Camera control. Producer's Camera provides projection 1, +field of view, viewpoint control, and frame control. Further, Producer can +be used in a multi-tasking environment to allow multiple Camera's to run in +parallel supporting hardware configurations with multiple display subsystems. +Threading, Camera synchronization and frame rate control are simplified in +the Producer programming interface. + +Producer provides a simple, yet powerfully scalable approach for real-time 3D +applications wishing to run within a single window to large, multidisplay +systems. + +WWW: http://www.andesengineering.com/Producer/ + +Maintainer: "Ying-Chieh Chen" diff --git a/graphics/openproducer/pkg-plist b/graphics/openproducer/pkg-plist new file mode 100644 index 000000000000..2cd1c5e6f8df --- /dev/null +++ b/graphics/openproducer/pkg-plist @@ -0,0 +1,113 @@ +include/Producer/Barrier +include/Producer/Block +include/Producer/BlockingQueue +include/Producer/Camera +include/Producer/CameraConfig +include/Producer/CameraGroup +include/Producer/Events +include/Producer/Export +include/Producer/InputArea +include/Producer/Keyboard +include/Producer/KeyboardMouse +include/Producer/Math +include/Producer/Mutex +include/Producer/Referenced +include/Producer/RenderSurface +include/Producer/Thread +include/Producer/Timer +include/Producer/Trackball +include/Producer/Types +include/Producer/Version +include/Producer/VisualChooser +include/Producer/Window3D +include/Producer/osgCameraGroup +include/Producer/osgSceneHandler +lib/libProducer.so +lib/libProducer.so.0 +@dirrm include/Producer +%%PORTDOCS%%%%DOCSDIR%%/CameraConfig.bnf +%%PORTDOCS%%%%DOCSDIR%%/CameraConfig.example +%%PORTDOCS%%%%DOCSDIR%%/Notes +%%PORTDOCS%%%%DOCSDIR%%/directors_chair.jpg +%%PORTDOCS%%%%DOCSDIR%%/documentation.html +%%PORTDOCS%%%%DOCSDIR%%/download.html +%%PORTDOCS%%%%DOCSDIR%%/doxy.cfg +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/install.html +%%PORTDOCS%%%%DOCSDIR%%/prerequisites.html +%%PORTDOCS%%%%DOCSDIR%%/producer_name.html +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/index.html +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/producer_camera.jpg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/producers_chair.jpg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Camera/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Camera/MySceneHandler +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Camera/example1.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Camera/glut_teapot.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/MySceneHandler +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/example1.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/example2.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/example3.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/glut_teapot.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/oneWindow.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/twoProjectionRects.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/CameraGroup/twoWindows.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/MyKeyboardMouseCallback +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/MySceneHandler +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/MySceneHandler2 +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example1.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example2.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example3.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example4.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example5.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/example6.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/glut_teapot.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/threePipe.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/twoPipe.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse/twoWindows.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Make/makedefs +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Make/makerules +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/MotifTest +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/README +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/example1.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/example2.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/gui.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/gui.h +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Motif/test.cfg +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/RenderSurface/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/RenderSurface/MyGraphics +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/RenderSurface/example1.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/RenderSurface/glut_teapot.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Window3D/GNUmakefile +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Window3D/MyGraphics +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Window3D/glut_teapot.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/SourceCode/Window3D/main.cpp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/CameraGroup_1/CameraGroup_1.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/CameraGroup_2/CameraGroup_2.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/Camera_1/Camera_1.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_1/KeyboardMouse_1.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_2/KeyboardMouse_2.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_3/KeyboardMouse_3.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_4/KeyboardMouse_4.dsp +%%PORTDOCS%%%%DOCSDIR%%/Tutorial/VC++6.0/Tutorial.dsw +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/Camera +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/CameraGroup +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/KeyboardMouse +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/Make +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/Motif +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/RenderSurface +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode/Window3D +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/SourceCode +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/CameraGroup_1 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/CameraGroup_2 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/Camera_1 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_1 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_2 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_3 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0/KeyboardMouse_4 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial/VC++6.0 +%%PORTDOCS%%@dirrm %%DOCSDIR%%/Tutorial +%%PORTDOCS%%@dirrm %%DOCSDIR%%