ports/62411: New port: graphics/smoke Vector graphics OpenGL renderer

Igor Pokrovsky tiamat at comset.net
Fri Feb 6 03:10:21 UTC 2004


>Number:         62411
>Category:       ports
>Synopsis:       New port: graphics/smoke Vector graphics OpenGL renderer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 05 19:10:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan 26 19:02:19 MSK 2004 root at doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
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.
	
>How-To-Repeat:
	
>Fix:

	

--- smoke.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	smoke
#	smoke/pkg-plist
#	smoke/pkg-descr
#	smoke/distinfo
#	smoke/Makefile
#	smoke/files
#	smoke/files/patch-project
#	smoke/files/patch-src_main.cc
#
echo c - smoke
mkdir -p smoke > /dev/null 2>&1
echo x - smoke/pkg-plist
sed 's/^X//' >smoke/pkg-plist << 'END-of-smoke/pkg-plist'
Xbin/smoke
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%EXAMPLESDIR%%/tests/tiger.smoke
X%%EXAMPLESDIR%%/tests/tiger.svg
X at dirrm %%EXAMPLESDIR%%/tests
X at dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-smoke/pkg-plist
echo x - smoke/pkg-descr
sed 's/^X//' >smoke/pkg-descr << 'END-of-smoke/pkg-descr'
XSmoke is a development version of a vector graphics engine capable of storing,
Xmanipulating and rendering vector graphics.
X
XA vector graphic image is represented by sets of lines and implicit curves.
XThese lines and curves are defined only by their coordinates on an imaginary
Xcanvas. Thus a vector graphics image is resolution independent and can be
Xdrawn into a pixmap of any size.
X
XWWW:	http://www.chem.pwf.cam.ac.uk/~jdh30/programming/opengl/smoke/
X
X- Igor Pokrovsky
Xtiamat at comset.net
END-of-smoke/pkg-descr
echo x - smoke/distinfo
sed 's/^X//' >smoke/distinfo << 'END-of-smoke/distinfo'
XMD5 (smoke-0.5.1.tar.bz2) = c0e46c652a5fcccd7b511fbb056a1fae
END-of-smoke/distinfo
echo x - smoke/Makefile
sed 's/^X//' >smoke/Makefile << 'END-of-smoke/Makefile'
X# New ports collection makefile for: smoke
X# Date created:		05 Feb 2004
X# Whom:			Igor Pokrovsky <tiamat at comset.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	smoke
XPORTVERSION=	0.5.1
XCATEGORIES=	graphics
XMASTER_SITES=	http://www.chem.pwf.cam.ac.uk/~jdh30/programming/opengl/smoke/code/
X
XMAINTAINER=	tiamat at comset.net
XCOMMENT=	Vector graphics OpenGL renderer
X
XBUILD_DEPENDS=	${LOCALBASE}/bin/tmake:${PORTSDIR}/devel/tmake
XLIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
X
XUSE_BZIP2=	yes
XUSE_REINPLACE=	yes
XUSE_SDL=	yes
XUSE_GL=		yes
XUSE_X_PREFIX=	yes
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
X.include <bsd.port.pre.mk>
X
XFREETYPE_CONFIG?=	${LOCALBASE}/bin/freetype-config
XSDL_CONFIG?=		${LOCALBASE}/bin/sdl11-config
XFREETYPE_INCLUDEPATH!=	${FREETYPE_CONFIG} --cflags | ${SED} -e 's|-I||g'
XSDL_INCLUDEPATH!=	${SDL_CONFIG} --cflags | ${SED} -e 's|-I||g; s|-D[[:graph:]]*||g'
XTMAKE?=			${LOCALBASE}/bin/tmake
XTMAKEPATH?=		${LOCALBASE}/share/tmake/freebsd-g++
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g; \
X			      s|%%SDL_CONFIG%%|${SDL_CONFIG}|g; \
X			      s|%%FREETYPE_INCLUDEPATH%%|${FREETYPE_INCLUDEPATH}|g; \
X			      s|%%SDL_INCLUDEPATH%%|${SDL_INCLUDEPATH}|g; \
X			      s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
X		${WRKSRC}/project
X
Xpre-build:
X	${SETENV} TMAKEPATH=${TMAKEPATH} \
X		${TMAKE} ${WRKSRC}/project >${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/smoke ${PREFIX}/bin
X
X	@${MKDIR} ${EXAMPLESDIR}
X	@${MKDIR} ${EXAMPLESDIR}/tests
X	${INSTALL_DATA} ${WRKSRC}/tests/tiger.* ${EXAMPLESDIR}/tests
X
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-smoke/Makefile
echo c - smoke/files
mkdir -p smoke/files > /dev/null 2>&1
echo x - smoke/files/patch-project
sed 's/^X//' >smoke/files/patch-project << 'END-of-smoke/files/patch-project'
X--- project.orig	Thu Feb  5 19:06:25 2004
X+++ project	Thu Feb  5 19:08:56 2004
X@@ -2,6 +2,6 @@
X HEADERS      = src/*.h
X 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
X TARGET       = smoke
X-INCLUDEPATH  = /usr/local/include
X+INCLUDEPATH  = %%FREETYPE_INCLUDEPATH%% %%SDL_INCLUDEPATH%%
X DEFINES      = _REENTRANT
X-LIBS         = `freetype-config --libs` -lSDL -lpthread -lXxf86dga -lXxf86vm -lXv
X+LIBS         = `%%FREETYPE_CONFIG%% --libs` `%%SDL_CONFIG%% --libs` %%PTHREAD_LIBS%% -lXxf86dga -lXxf86vm -lXv
END-of-smoke/files/patch-project
echo x - smoke/files/patch-src_main.cc
sed 's/^X//' >smoke/files/patch-src_main.cc << 'END-of-smoke/files/patch-src_main.cc'
X--- src/main.cc.orig	Thu Feb  5 20:36:50 2004
X+++ src/main.cc	Thu Feb  5 20:36:58 2004
X@@ -36,7 +36,7 @@
X #include <string>
X #include <GL/gl.h>
X #include <GL/glu.h>
X-#include <SDL/SDL.h>
X+#include <SDL.h>
X 
X using namespace std;		// Lots of IO
X 
END-of-smoke/files/patch-src_main.cc
exit
--- smoke.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list