aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2008-01-09 18:48:13 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2008-01-09 18:48:13 +0000
commit3072dfb8049ef0a31ea0aa97a60e63bb97ab9375 (patch)
tree881a2f73b45f707e49b7ade05fa0608cde99cfb0 /graphics
parent07df59e3f600c4b27d8d7dca1ef7e1ed1e7f5c5a (diff)
downloadports-3072dfb8049ef0a31ea0aa97a60e63bb97ab9375.tar.gz
ports-3072dfb8049ef0a31ea0aa97a60e63bb97ab9375.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/sketch/Makefile47
-rw-r--r--graphics/sketch/distinfo3
-rw-r--r--graphics/sketch/files/patch-makefile21
-rw-r--r--graphics/sketch/pkg-descr10
-rw-r--r--graphics/sketch/pkg-plist1
6 files changed, 83 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 81d3c94b4efd..b8debfdefc93 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -682,6 +682,7 @@
SUBDIR += showimg
SUBDIR += simage
SUBDIR += skencil
+ SUBDIR += sketch
SUBDIR += sng
SUBDIR += snx101util
SUBDIR += sodipodi
diff --git a/graphics/sketch/Makefile b/graphics/sketch/Makefile
new file mode 100644
index 000000000000..ab91acb17abd
--- /dev/null
+++ b/graphics/sketch/Makefile
@@ -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>
diff --git a/graphics/sketch/distinfo b/graphics/sketch/distinfo
new file mode 100644
index 000000000000..32bc72f77f0d
--- /dev/null
+++ b/graphics/sketch/distinfo
@@ -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
diff --git a/graphics/sketch/files/patch-makefile b/graphics/sketch/files/patch-makefile
new file mode 100644
index 000000000000..a5776c2006cd
--- /dev/null
+++ b/graphics/sketch/files/patch-makefile
@@ -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) $<
diff --git a/graphics/sketch/pkg-descr b/graphics/sketch/pkg-descr
new file mode 100644
index 000000000000..79696ac3eb35
--- /dev/null
+++ b/graphics/sketch/pkg-descr
@@ -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/
diff --git a/graphics/sketch/pkg-plist b/graphics/sketch/pkg-plist
new file mode 100644
index 000000000000..d50ca7e81de1
--- /dev/null
+++ b/graphics/sketch/pkg-plist
@@ -0,0 +1 @@
+bin/sketch