aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-05-30 01:52:41 +0800
committerthierry <thierry@FreeBSD.org>2004-05-30 01:52:41 +0800
commit3d1a25466e4a53cfcd702c45a08319f9d9dfba2e (patch)
tree5c8d5f55a085647e56120c871e440abe6b45cc88 /graphics
parent3c94611fc8bb464a2f79afbed04ed791bd2fd74c (diff)
downloadfreebsd-ports-gnome-3d1a25466e4a53cfcd702c45a08319f9d9dfba2e.tar.gz
freebsd-ports-gnome-3d1a25466e4a53cfcd702c45a08319f9d9dfba2e.tar.zst
freebsd-ports-gnome-3d1a25466e4a53cfcd702c45a08319f9d9dfba2e.zip
Add smoke 0.5.1, vector graphics OpenGL renderer.
PR: 62411 Submitted by: Igor Pokrovsky <tiamat@comset.net>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/smoke/Makefile65
-rw-r--r--graphics/smoke/distinfo2
-rw-r--r--graphics/smoke/files/patch-project11
-rw-r--r--graphics/smoke/files/patch-src_main.cc11
-rw-r--r--graphics/smoke/files/patch-src_store.h13
-rw-r--r--graphics/smoke/pkg-descr12
-rw-r--r--graphics/smoke/pkg-plist5
8 files changed, 120 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index e3af2832f98d..712b2a4eb3c5 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -396,6 +396,7 @@
SUBDIR += showimg
SUBDIR += simage
SUBDIR += skencil
+ SUBDIR += smoke
SUBDIR += sng
SUBDIR += sodipodi
SUBDIR += springgraph
diff --git a/graphics/smoke/Makefile b/graphics/smoke/Makefile
new file mode 100644
index 000000000000..6097797dd52b
--- /dev/null
+++ b/graphics/smoke/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: smoke
+# Date created: 05 Feb 2004
+# Whom: Igor Pokrovsky <tiamat@comset.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= smoke
+PORTVERSION= 0.5.1
+CATEGORIES= graphics
+MASTER_SITES= http://www.chem.pwf.cam.ac.uk/~jdh30/programming/opengl/smoke/code/
+
+MAINTAINER= tiamat@comset.net
+COMMENT= Vector graphics OpenGL renderer
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/tmake:${PORTSDIR}/devel/tmake
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+USE_SDL= yes
+USE_GL= yes
+USE_X_PREFIX= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+TMAKE?= ${LOCALBASE}/bin/tmake
+TMAKEPATH?= ${LOCALBASE}/share/tmake/freebsd-g++
+
+PORTDOCS= README
+
+.include <bsd.port.pre.mk>
+
+.if exists(${FREETYPE_CONFIG})
+FREETYPE_INCLUDEPATH!= ${FREETYPE_CONFIG} --cflags | ${SED} -e 's|-I||g'
+.endif
+.if exists(${SDL_CONFIG})
+SDL_INCLUDEPATH!= ${SDL_CONFIG} --cflags | ${SED} -e 's|-I||g; s|-D[[:graph:]]*||g'
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g; \
+ s|%%SDL_CONFIG%%|${SDL_CONFIG}|g; \
+ s|%%FREETYPE_INCLUDEPATH%%|${FREETYPE_INCLUDEPATH}|g; \
+ s|%%SDL_INCLUDEPATH%%|${SDL_INCLUDEPATH}|g; \
+ s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/project
+
+pre-build:
+ ${SETENV} TMAKEPATH=${TMAKEPATH} \
+ ${TMAKE} ${WRKSRC}/project >${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/smoke ${PREFIX}/bin
+ @${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}/tests
+ ${INSTALL_DATA} ${WRKSRC}/tests/tiger.* ${EXAMPLESDIR}/tests
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/smoke/distinfo b/graphics/smoke/distinfo
new file mode 100644
index 000000000000..ac2863aef779
--- /dev/null
+++ b/graphics/smoke/distinfo
@@ -0,0 +1,2 @@
+MD5 (smoke-0.5.1.tar.bz2) = c0e46c652a5fcccd7b511fbb056a1fae
+SIZE (smoke-0.5.1.tar.bz2) = 192646
diff --git a/graphics/smoke/files/patch-project b/graphics/smoke/files/patch-project
new file mode 100644
index 000000000000..0c43bc2d951f
--- /dev/null
+++ b/graphics/smoke/files/patch-project
@@ -0,0 +1,11 @@
+--- project.orig Thu Feb 5 19:06:25 2004
++++ project Thu Feb 5 19:08:56 2004
+@@ -2,6 +2,6 @@
+ HEADERS = src/*.h
+ SOURCES = src/bound.cc src/caches.cc src/colour.cc src/editing.h src/fill_types.cc src/geometry.cc src/gldisplaylist.cc src/load.cc src/main.cc src/scene.cc src/segments.cc src/store.h src/stroke.cc src/tesselate.cc src/test.cc src/tree.cc src/vecmat.cc src/viewport.cc src/usec_timer.cc src/utility.cc
+ TARGET = smoke
+-INCLUDEPATH = /usr/local/include
++INCLUDEPATH = %%FREETYPE_INCLUDEPATH%% %%SDL_INCLUDEPATH%%
+ DEFINES = _REENTRANT
+-LIBS = `freetype-config --libs` -lSDL -lpthread -lXxf86dga -lXxf86vm -lXv
++LIBS = `%%FREETYPE_CONFIG%% --libs` `%%SDL_CONFIG%% --libs` %%PTHREAD_LIBS%% -lXxf86dga -lXxf86vm -lXv
diff --git a/graphics/smoke/files/patch-src_main.cc b/graphics/smoke/files/patch-src_main.cc
new file mode 100644
index 000000000000..5ce5bcf15bca
--- /dev/null
+++ b/graphics/smoke/files/patch-src_main.cc
@@ -0,0 +1,11 @@
+--- src/main.cc.orig Thu Feb 5 20:36:50 2004
++++ src/main.cc Thu Feb 5 20:36:58 2004
+@@ -36,7 +36,7 @@
+ #include <string>
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+-#include <SDL/SDL.h>
++#include <SDL.h>
+
+ using namespace std; // Lots of IO
+
diff --git a/graphics/smoke/files/patch-src_store.h b/graphics/smoke/files/patch-src_store.h
new file mode 100644
index 000000000000..514692e05f61
--- /dev/null
+++ b/graphics/smoke/files/patch-src_store.h
@@ -0,0 +1,13 @@
+--- src/store.h.orig Sat May 17 15:34:24 2003
++++ src/store.h Mon May 24 22:08:54 2004
+@@ -32,8 +32,8 @@
+
+ #include <string>
+ #include <map>
+-#include <freetype/freetype.h>
+-
++#include <ft2build.h>
++#include FT_FREETYPE_H
+
+
+ class Store
diff --git a/graphics/smoke/pkg-descr b/graphics/smoke/pkg-descr
new file mode 100644
index 000000000000..aeb4f35b138d
--- /dev/null
+++ b/graphics/smoke/pkg-descr
@@ -0,0 +1,12 @@
+Smoke is a development version of a vector graphics engine capable of storing,
+manipulating and rendering vector graphics.
+
+A vector graphic image is represented by sets of lines and implicit curves.
+These lines and curves are defined only by their coordinates on an imaginary
+canvas. Thus a vector graphics image is resolution independent and can be
+drawn into a pixmap of any size.
+
+WWW: http://www.chem.pwf.cam.ac.uk/~jdh30/programming/opengl/smoke/
+
+- Igor Pokrovsky
+tiamat@comset.net
diff --git a/graphics/smoke/pkg-plist b/graphics/smoke/pkg-plist
new file mode 100644
index 000000000000..e2f2fe85a9cd
--- /dev/null
+++ b/graphics/smoke/pkg-plist
@@ -0,0 +1,5 @@
+bin/smoke
+%%EXAMPLESDIR%%/tests/tiger.smoke
+%%EXAMPLESDIR%%/tests/tiger.svg
+@dirrm %%EXAMPLESDIR%%/tests
+@dirrm %%EXAMPLESDIR%%