Sketch -- A 3D Scene Description Translator

This commit is contained in:
Joerg Wunsch 2008-01-09 18:48:13 +00:00
parent 07df59e3f6
commit 3072dfb804
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205329
6 changed files with 83 additions and 0 deletions

View file

@ -682,6 +682,7 @@
SUBDIR += showimg SUBDIR += showimg
SUBDIR += simage SUBDIR += simage
SUBDIR += skencil SUBDIR += skencil
SUBDIR += sketch
SUBDIR += sng SUBDIR += sng
SUBDIR += snx101util SUBDIR += snx101util
SUBDIR += sodipodi SUBDIR += sodipodi

47
graphics/sketch/Makefile Normal file
View file

@ -0,0 +1,47 @@
# New ports collection makefile for: sketch
# Date created: 09 January 2008
# Whom: Joerg Wunsch <joerg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sketch
PORTVERSION= 0.2.27
CATEGORIES= graphics
MASTER_SITES= http://www.frontiernet.net/~eugene.ressler/
EXTRACT_SUFX= .tgz
MAINTAINER= joerg@FreeBSD.org
COMMENT= A 3D Scene Description Translator
USE_GMAKE= yes
USE_PERL5_BUILD= yes
.if !defined(NOPORTDOCS)
PORTDOCS= manual.html manual.pdf manual
.endif
.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES= 2tori.sk buggy.sk bunny.sk cone.sk hand.sk test.sk
.endif
.include <bsd.port.pre.mk>
do-configure:
do-build:
cd ${WRKSRC} && ${GMAKE} CFLAGS="${CFLAGS}" -f makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sketch ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Doc/manual.html ${WRKSRC}/Doc/manual.pdf ${DOCSDIR}
cd ${WRKSRC}/Doc && ${FIND} manual -type f | ${CPIO} -dumpv ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/Data && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>

3
graphics/sketch/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (sketch-0.2.27.tgz) = a91be065b20348d727b2c398d852885f
SHA256 (sketch-0.2.27.tgz) = 8afa70fda5450b0accbc1b377d9410c9fde29e6aa084984f34111c1006a574d6
SIZE (sketch-0.2.27.tgz) = 2859938

View file

@ -0,0 +1,21 @@
--- makefile.orig Tue Sep 25 06:24:08 2007
+++ makefile Wed Jan 9 14:44:25 2008
@@ -5,8 +5,7 @@
#
# makefile v0.03
#
-CC = gcc -O1 -g
-YACC = bison --defines --debug --report=all --yacc
+YACC = yacc
LEX = flex
verdata=$(shell cat version.dat)
@@ -38,7 +37,7 @@
version.h y.tab.h
$(EXE) : $(OBJECTS)
- $(CC) -o $(EXE) $(OBJECTS) -lm
+ $(CC) $(CFLAGS) -o $(EXE) $(OBJECTS) -lm
y.tab.c y.tab.h : sketch.y
$(YACC) $<

10
graphics/sketch/pkg-descr Normal file
View file

@ -0,0 +1,10 @@
Sketch is a small, simple system for producing line drawings of two- or
three-dimensional solid objects and scenes. It began as a way to make
illustrations for a textbook after we could find no suitable tool for
this purpose. Existing scene processors emphasized GUIs and/or
photo-realism, both un-useful to us. We wanted to produce finely wrought,
mathematically-based illustrations with no extraneous detail. The input
language is reminiscent of PSTricks, so will be easy to learn for current
PSTricks users.
WWW: http://www.frontiernet.net/~eugene.ressler/

View file

@ -0,0 +1 @@
bin/sketch