Import graphics/libspiro.
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. 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. From Alessandro De Laurenzis, thanks! OK bentley@
This commit is contained in:
parent
788b0a7599
commit
e4d8421c79
29
graphics/libspiro/Makefile
Normal file
29
graphics/libspiro/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2021/02/01 14:44:30 fcambus Exp $
|
||||
|
||||
COMMENT = simplifies the drawing of beautiful curves
|
||||
|
||||
V = 20200505
|
||||
DISTNAME = libspiro-dist-${V}
|
||||
PKGNAME = libspiro-${V}
|
||||
WRKDIST = ${WRKDIR}/libspiro-${V}
|
||||
|
||||
SHARED_LIBS = spiro 0.0 # 1.0
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = https://github.com/fontforge/libspiro
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB = m
|
||||
|
||||
MASTER_SITES = https://github.com/fontforge/libspiro/releases/download/${V}/
|
||||
|
||||
# spiro fails to build using base libtool:
|
||||
# cc: error: unsupported option '--mode=link'
|
||||
USE_LIBTOOL = gnu
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/libspiro/distinfo
Normal file
2
graphics/libspiro/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libspiro-dist-20200505.tar.gz) = BsaaHo3LyrzwCf2W/ZCxokTQJXJG43bCxNV8TqSvDkk=
|
||||
SIZE (libspiro-dist-20200505.tar.gz) = 422546
|
14
graphics/libspiro/pkg/DESCR
Normal file
14
graphics/libspiro/pkg/DESCR
Normal file
@ -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.
|
||||
|
||||
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.
|
10
graphics/libspiro/pkg/PLIST
Normal file
10
graphics/libspiro/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/02/01 14:44:30 fcambus Exp $
|
||||
include/bezctx.h
|
||||
include/bezctx_intf.h
|
||||
include/spiro.h
|
||||
include/spiroentrypoints.h
|
||||
@static-lib lib/libspiro.a
|
||||
lib/libspiro.la
|
||||
@lib lib/libspiro.so.${LIBspiro_VERSION}
|
||||
lib/pkgconfig/libspiro.pc
|
||||
@man man/man3/libspiro.3
|
Loading…
Reference in New Issue
Block a user