BSD Ports

graphics/nanosvg 20241219 FreeBSD

Simple C++ header-only SVG parser

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ZLIB
Categories
graphics
Package size
28.0 KiB, 120.0 KiB installed

Description

NanoSVG is a simple stupid single-header-file SVG parse. The output of the parser is a list of cubic bezier shapes.

The library suits well for anything from rendering scalable icons in your editor application to prototyping a game.

NanoSVG supports a wide range of SVG features, but something may be missing, feel free to create a pull request!

The shapes in the SVG images are transformed by the viewBox and converted to specified units. That is, you should get the same looking data as your designed in your favorite app.

NanoSVG can return the paths in few different units. For example if you want to render an image, you may choose to get the paths in pixels, or if you are feeding the data into a CNC-cutter, you may want to use millimeters.

The units passed to NanoSVG should be one of: 'px', 'pt', 'pc' 'mm', 'cm', or 'in'. DPI (dots-per-inch) controls how the unit conversion is done.

If you don't know or care about the units stuff, "px" and 96 should get you going.

In the other systems

SystemPortVersion
FreeBSDgraphics/nanosvg20241219
OpenBSDgraphics/nanosvg20221222
DragonFlygraphics/nanosvg20241219

Install

Binary package:

pkg install nanosvg

From the ports tree:

cd /usr/ports/graphics/nanosvg/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	nanosvg>0:graphics/nanosvg

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2024121920241219g202109032024121920241219
FreeBSD:14:quarterly2024121920241219n/a2024121920241219
FreeBSD:15:latest2024121920241219n/a2024121920241219
FreeBSD:15:quarterly2024121920241219n/an/an/a
FreeBSD:16:latest2024121920241219n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Configuration

No options to configure.

USES
cpe
Service scripts
none

Files

distinfo 1
FileSizeSHA256
memononen-nanosvg-20241219-ea6a6ac_GH0.tar.gz2979851f69560fefa7c97d0497753d898514dae52146faeb626c6a252d59b224198d64

Commit history 0

No commits in the history this site was built from.