Import birdfont. Birdfont is a free font editor for TTF, EOG, and SVG fonts

ok landry@
This commit is contained in:
bcallah 2013-07-13 16:16:36 +00:00
parent 7025c2a9c6
commit 40970bb1b7
7 changed files with 208 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/07/13 16:16:36 bcallah Exp $
COMMENT = free font editor for TTF, EOT, and SVG fonts
DISTNAME = birdfont-0.21
CATEGORIES = graphics print
SHARED_LIBS += birdfont 0.0 # 0.0
HOMEPAGE = http://birdfont.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo fontconfig
WANTLIB += freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 gtk-x11-2.0 harfbuzz
WANTLIB += javascriptcoregtk-1.0 m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread-stubs pthread
WANTLIB += soup-2.4 webkitgtk-1.0 xcb-render xcb-shm xcb xml2 z
MASTER_SITES = http://birdfont.org/releases/
MODULES = devel/gettext \
lang/python
BUILD_DEPENDS = devel/py-doit \
lang/vala
LIB_DEPENDS = www/webkit
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
CONFIGURE_STYLE = simple
NO_TEST = Yes
SUBST_VARS += DESTDIR
post-patch:
perl -pi -e "s,/usr/bin/python,${MODPY_BIN},g" ${WRKSRC}/configure ${WRKSRC}/install
perl -pi -e "s,bash,sh,g" ${WRKSRC}/birdfont.sh
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/install ${WRKSRC}/scripts/bavala.py
do-build:
cd ${WRKSRC} && ${LOCALBASE}/bin/doit
do-install:
cd ${WRKSRC} && ./install
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (birdfont-0.21.tar.gz) = ENykc6JXQ/w1BBHj9S2BwVOsFmVWTkeh9bDU/b+7ys4=
SIZE (birdfont-0.21.tar.gz) = 283983

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1.1.1 2013/07/13 16:16:36 bcallah Exp $
--- configure.orig Fri Jul 5 18:29:19 2013
+++ configure Fri Jul 5 18:29:47 2013
@@ -83,7 +83,7 @@ parser.add_option("-c", "--cc", dest="cc", help="C com
(options, args) = parser.parse_args()
if not options.prefix:
- options.prefix = "/usr"
+ options.prefix = "${DESTDIR}${PREFIX}"
if not options.dest:
options.dest = ""
if not options.cc:

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-install,v 1.1.1.1 2013/07/13 16:16:36 bcallah Exp $
--- install.orig Fri Jul 5 18:28:19 2013
+++ install Fri Jul 5 18:29:12 2013
@@ -52,10 +52,10 @@ install ('resources/linux/birdfont.png', '/share/icons
install ('build/bin/birdfont', '/bin')
install ('build/bin/birdfont-export', '/bin')
-install ('build/libbirdfont.so', '/lib')
+install ('build/libbirdfont.so.${LIBbirdfont_VERSION}', '/lib')
-install ('build/birdfont.1.gz', '/share/man/man1')
-install ('build/birdfont-export.1.gz', '/share/man/man1')
+install ('resources/linux/birdfont.1', '/man/man1')
+install ('resources/linux/birdfont-export.1', '/man/man1')
# translations
for lang_dir in glob.glob('build/locale/*'):

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-scripts_bavala_py,v 1.1.1.1 2013/07/13 16:16:36 bcallah Exp $
--- scripts/bavala.py.orig Fri Jul 5 18:30:02 2013
+++ scripts/bavala.py Fri Jul 5 18:30:31 2013
@@ -82,7 +82,7 @@ class Vala(object):
if library:
self.header = join(build, library) + '.h'
self.vapi = join(build, library) + '.vapi'
- self.so = join(build, src) + '.so'
+ self.so = join(build, src) + '.so' + '.${LIBbirdfont_VERSION}'
def gen_c(self, opts):
"""translate code from vala to C and create .vapi"""

View File

@ -0,0 +1,2 @@
Birdfont is a free font editor that lets you create vector graphics and
export TTF, EOT, and SVG fonts.

110
graphics/birdfont/pkg/PLIST Normal file
View File

@ -0,0 +1,110 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/07/13 16:16:36 bcallah Exp $
@bin bin/birdfont
@bin bin/birdfont-export
@lib lib/libbirdfont.so.${LIBbirdfont_VERSION}
@man man/man1/birdfont-export.1
@man man/man1/birdfont.1
share/applications/birdfont.desktop
share/birdfont/
share/birdfont/icons/
share/birdfont/icons/active_edit_point.png
share/birdfont/icons/active_edit_point_cubic.png
share/birdfont/icons/active_edit_point_handle.png
share/birdfont/icons/active_selected_edit_point.png
share/birdfont/icons/active_selected_edit_point_cubic.png
share/birdfont/icons/add_background_image.png
share/birdfont/icons/add_new_grid.png
share/birdfont/icons/available_characters.png
share/birdfont/icons/background_help_lines.png
share/birdfont/icons/cancel_save.png
share/birdfont/icons/close_paths.png
share/birdfont/icons/corner.png
share/birdfont/icons/cubic_points.png
share/birdfont/icons/custom_character_set.png
share/birdfont/icons/cut.png
share/birdfont/icons/cut_background.png
share/birdfont/icons/delete_menu_item.png
share/birdfont/icons/delete_selected_glyph.png
share/birdfont/icons/double_points.png
share/birdfont/icons/edit_point.png
share/birdfont/icons/edit_point_cubic.png
share/birdfont/icons/edit_point_handle.png
share/birdfont/icons/export.png
share/birdfont/icons/full_glyph.png
share/birdfont/icons/help_lines.png
share/birdfont/icons/info_icon.png
share/birdfont/icons/insert_background.png
share/birdfont/icons/insert_point_on_path.png
share/birdfont/icons/move.png
share/birdfont/icons/move_background.png
share/birdfont/icons/move_layer.png
share/birdfont/icons/move_point.png
share/birdfont/icons/new_file.png
share/birdfont/icons/new_grid.png
share/birdfont/icons/new_point.png
share/birdfont/icons/new_point_on_path.png
share/birdfont/icons/next.png
share/birdfont/icons/next_tab.png
share/birdfont/icons/no_icon.png
share/birdfont/icons/pen_tool.png
share/birdfont/icons/prev.png
share/birdfont/icons/previous_tab.png
share/birdfont/icons/quadratic_points.png
share/birdfont/icons/resize_handle.png
share/birdfont/icons/reverse_path.png
share/birdfont/icons/selected_edit_point.png
share/birdfont/icons/selected_edit_point_cubic.png
share/birdfont/icons/show_background.png
share/birdfont/icons/show_xheight_helplines.png
share/birdfont/icons/slow_test.png
share/birdfont/icons/spin_button.png
share/birdfont/icons/tab1_left.png
share/birdfont/icons/tab1_right.png
share/birdfont/icons/tab2_left.png
share/birdfont/icons/tab2_right.png
share/birdfont/icons/tab3_left.png
share/birdfont/icons/tab3_right.png
share/birdfont/icons/tabbar_background.png
share/birdfont/icons/test_case.png
share/birdfont/icons/test_icon.png
share/birdfont/icons/tie_is_active.png
share/birdfont/icons/tie_point.png
share/birdfont/icons/tool_button_deselected.png
share/birdfont/icons/tool_button_deselected_active.png
share/birdfont/icons/tool_button_selected.png
share/birdfont/icons/tool_button_selected_active.png
share/birdfont/icons/toolbox_background.png
share/birdfont/icons/union_paths.png
share/birdfont/icons/utf_8.png
share/birdfont/icons/version.png
share/birdfont/icons/view_result.png
share/birdfont/icons/window_icon.png
share/birdfont/icons/zoom_1_1.png
share/birdfont/icons/zoom_background_image.png
share/birdfont/icons/zoom_boundries.png
share/birdfont/icons/zoom_in.png
share/birdfont/icons/zoom_out.png
share/birdfont/icons/zoom_tool.png
share/birdfont/layout/
share/birdfont/layout/birdfont.rc
share/birdfont/layout/delete_backup.png
share/birdfont/layout/index.html
share/birdfont/layout/style.css
share/birdfont/layout/supplement.js
share/icons/hicolor/48x48/apps/birdfont.png
share/locale/de/LC_MESSAGES/birdfont.mo
share/locale/fa/LC_MESSAGES/birdfont.mo
share/locale/it/LC_MESSAGES/birdfont.mo
share/locale/ja/LC_MESSAGES/birdfont.mo
share/locale/nl/LC_MESSAGES/birdfont.mo
share/locale/oc/LC_MESSAGES/birdfont.mo
share/locale/pt/LC_MESSAGES/birdfont.mo
share/locale/pt_BR/LC_MESSAGES/birdfont.mo
share/locale/ru/LC_MESSAGES/birdfont.mo
share/locale/sv/LC_MESSAGES/birdfont.mo
share/locale/tr/LC_MESSAGES/birdfont.mo
share/locale/zh_CN/LC_MESSAGES/birdfont.mo
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database