From b098d94b4d4d38eb43730ab45bb1091a3d51fc36 Mon Sep 17 00:00:00 2001 From: landry Date: Sun, 15 May 2011 18:34:20 +0000 Subject: [PATCH] Import sketch 0.3.2, From Anthony J. Bentley. Sketch is a small, simple system for producing line drawings of two- or three-dimensional solid objects and scenes. The input language is reminiscent of PSTricks, so will be easy to learn for current PSTricks users. Sketch can generate output for PSTricks and Tikz/PGF. www: http://www.frontiernet.net/~eugene.ressler/ Add a patch to make it honour $CC, and install examples while here. ok jasper@ --- graphics/sketch/Makefile | 33 ++++++++++++++++++++++++++ graphics/sketch/distinfo | 5 ++++ graphics/sketch/patches/patch-makefile | 13 ++++++++++ graphics/sketch/pkg/DESCR | 4 ++++ graphics/sketch/pkg/PLIST | 9 +++++++ 5 files changed, 64 insertions(+) create mode 100644 graphics/sketch/Makefile create mode 100644 graphics/sketch/distinfo create mode 100644 graphics/sketch/patches/patch-makefile create mode 100644 graphics/sketch/pkg/DESCR create mode 100644 graphics/sketch/pkg/PLIST diff --git a/graphics/sketch/Makefile b/graphics/sketch/Makefile new file mode 100644 index 00000000000..881f755742b --- /dev/null +++ b/graphics/sketch/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2011/05/15 18:34:20 landry Exp $ + +COMMENT = 3D scene description translator for TeX + +DISTNAME = sketch-0.3.2 +EXTRACT_SUFX = .tgz + +CATEGORIES = graphics + +HOMEPAGE = http://www.frontiernet.net/~eugene.ressler/ + +# GPLv3 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB += c m + +MASTER_SITES = ${HOMEPAGE} + +MAKE_FILE = makefile +USE_GMAKE = Yes +NO_REGRESS = Yes +ALL_TARGET = + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sketch ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sketch + ${INSTALL_DATA} ${WRKSRC}/Data/* ${PREFIX}/share/examples/sketch + + +.include diff --git a/graphics/sketch/distinfo b/graphics/sketch/distinfo new file mode 100644 index 00000000000..846de2f35be --- /dev/null +++ b/graphics/sketch/distinfo @@ -0,0 +1,5 @@ +MD5 (sketch-0.3.2.tgz) = KrqRYVy1cLdHRDsI9mi6FQ== +RMD160 (sketch-0.3.2.tgz) = gMYWLramcmVRquBGMAiefxzxDYw= +SHA1 (sketch-0.3.2.tgz) = 86l1SBmii4ufoDfsv/dRkcrdfI4= +SHA256 (sketch-0.3.2.tgz) = 9vyJH881KEwBiqZ4a69nQpSU90mcUzt5AbDnQbKo5S8= +SIZE (sketch-0.3.2.tgz) = 2881333 diff --git a/graphics/sketch/patches/patch-makefile b/graphics/sketch/patches/patch-makefile new file mode 100644 index 00000000000..497c8b409c4 --- /dev/null +++ b/graphics/sketch/patches/patch-makefile @@ -0,0 +1,13 @@ +$OpenBSD: patch-makefile,v 1.1.1.1 2011/05/15 18:34:20 landry Exp $ +Honour ${CC} +--- makefile.orig Sun May 15 20:25:19 2011 ++++ makefile Sun May 15 20:25:25 2011 +@@ -5,7 +5,7 @@ + # + # makefile v0.03 + # +-CC = gcc -O1 -g -Wall ++CC ?= gcc -O1 -g -Wall + #CC = gcc -g -Wall + YACC = bison --defines --debug --report=all --yacc + LEX = flex diff --git a/graphics/sketch/pkg/DESCR b/graphics/sketch/pkg/DESCR new file mode 100644 index 00000000000..bc0722f99fd --- /dev/null +++ b/graphics/sketch/pkg/DESCR @@ -0,0 +1,4 @@ +Sketch is a small, simple system for producing line drawings of two- or +three-dimensional solid objects and scenes. The input language is +reminiscent of PSTricks, so will be easy to learn for current PSTricks +users. Sketch can generate output for PSTricks and Tikz/PGF. diff --git a/graphics/sketch/pkg/PLIST b/graphics/sketch/pkg/PLIST new file mode 100644 index 00000000000..721ccd674e6 --- /dev/null +++ b/graphics/sketch/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2011/05/15 18:34:20 landry Exp $ +@bin bin/sketch +share/examples/sketch/ +share/examples/sketch/2tori.sk +share/examples/sketch/buggy.sk +share/examples/sketch/bunny.sk +share/examples/sketch/cone.sk +share/examples/sketch/hand.sk +share/examples/sketch/test.sk