2013-02-08 15:48:58 +01:00
|
|
|
# Created by: KANOU Hiroki <kanou@khdd.net>
|
2001-05-19 19:09:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-05-01 11:55:48 +02:00
|
|
|
PORTNAME= fontforge
|
2017-08-17 21:10:22 +02:00
|
|
|
PORTVERSION= 20170731
|
2001-05-19 19:09:56 +02:00
|
|
|
CATEGORIES= print
|
2016-08-01 00:41:33 +02:00
|
|
|
DISTFILES= # Empty but needed because of the freetype distfile
|
2001-05-19 19:09:56 +02:00
|
|
|
|
2007-10-28 00:04:41 +02:00
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Type 1/TrueType/OpenType/bitmap font editor
|
2001-05-19 19:09:56 +02:00
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash \
|
|
|
|
${LOCALBASE}/bin/gnulib-tool:devel/gnulib
|
|
|
|
LIB_DEPENDS= libuninameslist.so:textproc/libuninameslist \
|
|
|
|
libtiff.so:graphics/tiff \
|
|
|
|
libpng.so:graphics/png \
|
|
|
|
libgif.so:graphics/giflib \
|
|
|
|
libspiro.so:graphics/libspiro \
|
|
|
|
libfreetype.so:print/freetype2 \
|
2016-08-01 00:41:33 +02:00
|
|
|
libltdl.so:devel/libltdl \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig
|
2015-01-04 16:48:25 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2004-01-22 15:58:40 +01:00
|
|
|
|
2017-09-22 12:48:28 +02:00
|
|
|
USES= autoreconf:build compiler desktop-file-utils gettext \
|
2016-08-01 00:41:33 +02:00
|
|
|
gmake iconv jpeg libtool pkgconfig python readline:port \
|
|
|
|
shared-mime-info shebangfix
|
2015-07-29 18:26:18 +02:00
|
|
|
SHEBANG_FILES= pycontrib/gdraw/__init__.py \
|
|
|
|
pycontrib/gdraw/gdraw.py
|
2016-08-01 00:41:33 +02:00
|
|
|
USE_XORG= ice sm x11 xi xkbui xft
|
|
|
|
USE_GNOME= cairo glib20 gtk20 libxml2 pango
|
2013-05-03 22:36:33 +02:00
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
CONFIGURE_ARGS= --enable-tile-path --enable-gtk2-use
|
2014-03-23 17:56:58 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2015-01-04 16:48:25 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
INSTALLS_ICONS= yes
|
2014-03-23 17:56:58 +01:00
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
PORTDOCS= * .htaccess
|
2014-03-23 17:56:58 +01:00
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
OPTIONS_DEFINE= DOCS FREETYPE CAIRO PYTHON
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
FREETYPE_DESC= Include freetype's internal debugger
|
2014-03-23 17:56:58 +01:00
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
PYTHON_CONFIGURE_ENABLE= python-scripting python-extension
|
2014-03-23 17:56:58 +01:00
|
|
|
|
|
|
|
CAIRO_CONFIGURE_WITH= cairo
|
|
|
|
|
2013-05-03 22:36:33 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-10-28 00:04:41 +02:00
|
|
|
|
2013-05-03 22:36:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MFREETYPE}
|
2015-08-16 04:49:45 +02:00
|
|
|
MASTER_SITES+= http://savannah.nongnu.org/download/freetype/:freetype \
|
2015-08-27 18:51:59 +02:00
|
|
|
SF/freetype/freetype2/${FREETYPE_VERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/:freetype \
|
2015-08-16 04:49:45 +02:00
|
|
|
http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/:freetype \
|
2015-01-04 16:48:25 +01:00
|
|
|
http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/:freetype \
|
2015-04-02 11:47:37 +02:00
|
|
|
http://ftp.sunet.se/pub/text-processing/freetype/freetype2/:freetype \
|
2015-01-04 16:48:25 +01:00
|
|
|
ftp://ftp.freetype.org/freetype/freetype2/:freetype
|
2017-08-17 21:10:22 +02:00
|
|
|
FREETYPE_VERSION= 2.8
|
2013-05-03 22:36:33 +02:00
|
|
|
FREETYPE_SRC= freetype-${FREETYPE_VERSION}.tar.bz2
|
|
|
|
DISTFILES+= ${FREETYPE_SRC:C/$/:freetype/}
|
2015-01-04 16:48:25 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-freetype-debugger=${WRKDIR}/freetype-${FREETYPE_VERSION}
|
2013-05-03 22:36:33 +02:00
|
|
|
.else
|
2015-01-04 16:48:25 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-freetype-debugger
|
2008-12-26 23:19:52 +01:00
|
|
|
.endif
|
|
|
|
|
2015-01-04 16:48:25 +01:00
|
|
|
# This is to get around calling fontforge's bootstrap script, as that script fails
|
|
|
|
# if git isn't installed on a system DESPITE there being a --skip-git argument that
|
|
|
|
# can be passed into it. autoreconf is called here because I want to run it without
|
|
|
|
# libtoolize being run along with it.
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC} && \
|
|
|
|
${SH} -c '. ./bootstrap.conf ; \
|
2015-04-18 17:14:57 +02:00
|
|
|
${LOCALBASE}/bin/libtoolize -i -c -q ; \
|
2015-05-16 01:20:09 +02:00
|
|
|
${LOCALBASE}/bin/gnulib-tool --aux-dir=config --m4-base=m4 --libtool --symlink --import $${gnulib_modules}' ; \
|
2015-11-15 16:34:51 +01:00
|
|
|
export LIBTOOLIZE=true ; ${AUTORECONF} -f -i)
|
2001-05-19 19:09:56 +02:00
|
|
|
|
2017-04-23 05:28:15 +02:00
|
|
|
.include <bsd.port.mk>
|