summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2017-05-04 19:21:35 +0000
committeradam <adam@pkgsrc.org>2017-05-04 19:21:35 +0000
commit523c5e85a2234e57bc3dc81fe8cd71368deb22ad (patch)
treeca36417268ad2df46da56c08ac8c53a0be0445b5 /graphics
parent144183f12c33016ba83e908d1d8b2eac177440a5 (diff)
downloadpkgsrc-523c5e85a2234e57bc3dc81fe8cd71368deb22ad.tar.gz
Spiro is the creation of Raph Levien. It simplifies the drawing of beautiful
curves. Using bezier splines an artist can easily draw curves with the same slope on either side of an on-curve point. Spiros, on the other hand, are based on clothoid splines which make it easy to maintain constant curvature as well as constant slope. Such curves will simply look nicer. Raph Levien's spiro splines only use on-curve points and so are easier to use and more intuitive to the artist. This library will take an array of spiro control points and convert them into a series of bezier splines which can then be used in the myriad of ways the world has come to use beziers.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile3
-rw-r--r--graphics/libspiro/DESCR14
-rw-r--r--graphics/libspiro/Makefile24
-rw-r--r--graphics/libspiro/PLIST7
-rw-r--r--graphics/libspiro/buildlink3.mk12
-rw-r--r--graphics/libspiro/distinfo6
6 files changed, 65 insertions, 1 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index bcce0de73c6..06c7acf224d 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.761 2017/04/04 13:08:16 wiz Exp $
+# $NetBSD: Makefile,v 1.762 2017/05/04 19:21:35 adam Exp $
#
COMMENT= Graphics tools and libraries
@@ -323,6 +323,7 @@ SUBDIR+= libraw013
SUBDIR+= librsvg
SUBDIR+= libscigraphica
SUBDIR+= libsixel
+SUBDIR+= libspiro
SUBDIR+= libv4l
SUBDIR+= libvideogfx
SUBDIR+= libwebp
diff --git a/graphics/libspiro/DESCR b/graphics/libspiro/DESCR
new file mode 100644
index 00000000000..f34f304c2e1
--- /dev/null
+++ b/graphics/libspiro/DESCR
@@ -0,0 +1,14 @@
+Spiro is the creation of Raph Levien. It simplifies the drawing of beautiful
+curves.
+
+Using bezier splines an artist can easily draw curves with the same slope on
+either side of an on-curve point. Spiros, on the other hand, are based on
+clothoid splines which make it easy to maintain constant curvature as well as
+constant slope. Such curves will simply look nicer.
+
+Raph Levien's spiro splines only use on-curve points and so are easier to use
+and more intuitive to the artist.
+
+This library will take an array of spiro control points and convert them into
+a series of bezier splines which can then be used in the myriad of ways the
+world has come to use beziers.
diff --git a/graphics/libspiro/Makefile b/graphics/libspiro/Makefile
new file mode 100644
index 00000000000..758f8760ef1
--- /dev/null
+++ b/graphics/libspiro/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2017/05/04 19:21:35 adam Exp $
+
+DISTNAME= libspiro-dist-0.5.20150702
+PKGNAME= ${DISTNAME:S/-dist-/-/}
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=fontforge/}
+
+MAINTAINER= adam@NetBSD.org
+HOMEPAGE= http://fontforge.github.io/
+COMMENT= Simplifies the drawing of beautiful curves
+LICENSE= gnu-gpl-v3
+
+GITHUB_PROJECT= libspiro
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+#PKGCONFIG_OVERRIDE_STAGE= post-configure
+PKGCONFIG_OVERRIDE+= libspiro.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/libspiro/PLIST b/graphics/libspiro/PLIST
new file mode 100644
index 00000000000..033a88a93a3
--- /dev/null
+++ b/graphics/libspiro/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2017/05/04 19:21:35 adam Exp $
+include/bezctx.h
+include/bezctx_intf.h
+include/spiro.h
+include/spiroentrypoints.h
+lib/libspiro.la
+lib/pkgconfig/libspiro.pc
diff --git a/graphics/libspiro/buildlink3.mk b/graphics/libspiro/buildlink3.mk
new file mode 100644
index 00000000000..e21d737577a
--- /dev/null
+++ b/graphics/libspiro/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/05/04 19:21:35 adam Exp $
+
+BUILDLINK_TREE+= libspiro
+
+.if !defined(LIBSPIRO_BUILDLINK3_MK)
+LIBSPIRO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libspiro+= libspiro>=0.5.20150702
+BUILDLINK_PKGSRCDIR.libspiro?= ../../graphics/libspiro
+.endif # LIBSPIRO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libspiro
diff --git a/graphics/libspiro/distinfo b/graphics/libspiro/distinfo
new file mode 100644
index 00000000000..7d773005a73
--- /dev/null
+++ b/graphics/libspiro/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/05/04 19:21:35 adam Exp $
+
+SHA1 (libspiro-dist-0.5.20150702.tar.gz) = 2520a0d4c43e9db3d2d137885a8a29633f4b2c5e
+RMD160 (libspiro-dist-0.5.20150702.tar.gz) = 7bc98f9a77cd22262f4c1c1b044c6efe14237304
+SHA512 (libspiro-dist-0.5.20150702.tar.gz) = ae09915b2738cc2448df2cb00831e65fa45e887a7af9631d7361f5d2fca0b800588ea1d7c74c42e0e250835f3a322e64d44a7b18b2fd6641ac61e6adc1f03da8
+Size (libspiro-dist-0.5.20150702.tar.gz) = 411900 bytes