summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-01 14:52:20 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-01 14:52:20 +0000
commit270ba543f058ecfab26facebe09c8a81762196a9 (patch)
tree7f0e91ec8f55238cbf88d96f6fc5450dec77ae3d
parentClean up plist (diff)
New port: graphics/birdfont
Birdfont is a free font editor which lets you create vector graphics and export TTF, OTF, EOT and SVG fonts. The editor has good support for both monochrome and color font formats. WWW: https://birdfont.org/
Notes
Notes: svn path=/head/; revision=527557
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/birdfont/Makefile54
-rw-r--r--graphics/birdfont/distinfo3
-rw-r--r--graphics/birdfont/files/patch-libbirdgems_fit__cubic.c11
-rw-r--r--graphics/birdfont/pkg-descr5
-rw-r--r--graphics/birdfont/pkg-plist36
6 files changed, 110 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index b3ca5d6ba2b2..c92a44931c86 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -66,6 +66,7 @@
SUBDIR += barbecue
SUBDIR += barcode
SUBDIR += batik
+ SUBDIR += birdfont
SUBDIR += bitmap
SUBDIR += blend2d
SUBDIR += blender
diff --git a/graphics/birdfont/Makefile b/graphics/birdfont/Makefile
new file mode 100644
index 000000000000..22813b09760a
--- /dev/null
+++ b/graphics/birdfont/Makefile
@@ -0,0 +1,54 @@
+# $FreeBSD$
+
+PORTNAME= birdfont
+DISTVERSION= 2.28.0
+CATEGORIES= graphics x11-fonts
+MASTER_SITES= http://birdfont.org/releases/
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= Editor for vector graphics and TTF, OTF, EOT and SVG fonts
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/GPLv3.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}doit>0:devel/py-doit@${PY_FLAVOR} \
+ valac:lang/vala
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2 \
+ libgee-0.8.so:devel/libgee \
+ libnotify.so:devel/libnotify \
+ libsoup-2.4.so:devel/libsoup \
+ libwebkit2gtk-4.0.so:www/webkit2-gtk3 \
+ libxmlbird.so:textproc/libxmlbird
+
+USES= gettext-tools gnome pkgconfig python:3.7+,build \
+ shared-mime-info shebangfix sqlite:3 tar:xz
+USE_GNOME= cairo glib20 gtk30
+INSTALLS_ICONS= yes
+USE_LDCONFIG= yes
+SHEBANG_FILES= configure install.py
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --cc="${CC}" \
+ --cflags="${CFLAGS}" \
+ --dest="${STAGEDIR}" \
+ --ldflags="${LDFLAGS}" \
+ --prefix="${PREFIX}"
+
+_STRIPPABLE= bin/birdfont bin/birdfont-autotrace bin/birdfont-export \
+ bin/birdfont-import lib/libbirdfont.so.36.0 \
+ lib/libbirdgems.so.0.0
+
+do-build:
+ (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/doit)
+
+do-install:
+ (cd ${WRKSRC} && ./install.py \
+ --dest="${STAGEDIR}" \
+ --nogzip=1 \
+ --manpages-directory="/share/man/man1")
+.for _file in ${_STRIPPABLE:S|^|${STAGEDIR}${PREFIX}|}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${_file}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/graphics/birdfont/distinfo b/graphics/birdfont/distinfo
new file mode 100644
index 000000000000..11a81d2bb266
--- /dev/null
+++ b/graphics/birdfont/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1582990714
+SHA256 (birdfont-2.28.0.tar.xz) = 3fbb1bf7c735e4d67442ee5740e2e0ed29cb5ce56508c0c96d2599f8ece727a6
+SIZE (birdfont-2.28.0.tar.xz) = 2589212
diff --git a/graphics/birdfont/files/patch-libbirdgems_fit__cubic.c b/graphics/birdfont/files/patch-libbirdgems_fit__cubic.c
new file mode 100644
index 000000000000..2a276711331b
--- /dev/null
+++ b/graphics/birdfont/files/patch-libbirdgems_fit__cubic.c
@@ -0,0 +1,11 @@
+--- libbirdgems/fit_cubic.c.orig 2020-02-29 17:58:28 UTC
++++ libbirdgems/fit_cubic.c
+@@ -24,6 +24,8 @@ Adapted to BirdFont by Johan Mattsson 2015
+
+ #ifdef MAC
+ #include <malloc/malloc.h>
++#elif __FreeBSD__
++#include <stdlib.h>
+ #else
+ #include <malloc.h>
+ #endif
diff --git a/graphics/birdfont/pkg-descr b/graphics/birdfont/pkg-descr
new file mode 100644
index 000000000000..4cf6f86f5404
--- /dev/null
+++ b/graphics/birdfont/pkg-descr
@@ -0,0 +1,5 @@
+Birdfont is a free font editor which lets you create vector graphics and
+export TTF, OTF, EOT and SVG fonts. The editor has good support for both
+monochrome and color font formats.
+
+WWW: https://birdfont.org/
diff --git a/graphics/birdfont/pkg-plist b/graphics/birdfont/pkg-plist
new file mode 100644
index 000000000000..008019722ee0
--- /dev/null
+++ b/graphics/birdfont/pkg-plist
@@ -0,0 +1,36 @@
+bin/birdfont
+bin/birdfont-autotrace
+bin/birdfont-export
+bin/birdfont-import
+lib/libbirdfont.so
+lib/libbirdfont.so.36
+lib/libbirdfont.so.36.0
+lib/libbirdgems.so
+lib/libbirdgems.so.0
+lib/libbirdgems.so.0.0
+share/applications/birdfont.desktop
+%%DATADIR%%/Roboto-Regular.ttf
+%%DATADIR%%/birdfont_window_icon.png
+%%DATADIR%%/bright.theme
+%%DATADIR%%/codepages.sqlite
+%%DATADIR%%/dark.theme
+%%DATADIR%%/high_contrast.theme
+%%DATADIR%%/icons.birdfont
+%%DATADIR%%/key_bindings.xml
+%%DATADIR%%/ucd.sqlite
+share/icons/hicolor/128x128/apps/birdfont.png
+share/icons/hicolor/256x256/apps/birdfont.png
+share/icons/hicolor/48x48/apps/birdfont.png
+share/locale/cs/LC_MESSAGES/birdfont.mo
+share/locale/de/LC_MESSAGES/birdfont.mo
+share/locale/es/LC_MESSAGES/birdfont.mo
+share/locale/it/LC_MESSAGES/birdfont.mo
+share/locale/nl/LC_MESSAGES/birdfont.mo
+share/locale/pt_BR/LC_MESSAGES/birdfont.mo
+share/locale/sv/LC_MESSAGES/birdfont.mo
+share/man/man1/birdfont-autotrace.1.gz
+share/man/man1/birdfont-export.1.gz
+share/man/man1/birdfont-import.1.gz
+share/man/man1/birdfont.1.gz
+share/metainfo/birdfont.appdata.xml
+share/mime/packages/birdfont.xml