2013-03-29 09:49:21 +00:00
|
|
|
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= harfbuzz
|
2020-06-22 12:01:31 +00:00
|
|
|
DISTVERSION= 2.6.8
|
2019-09-30 20:56:49 +00:00
|
|
|
PORTREVISION?= 0
|
2013-03-29 09:49:21 +00:00
|
|
|
CATEGORIES= print
|
2020-04-23 00:56:50 +00:00
|
|
|
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
|
2013-03-29 09:49:21 +00:00
|
|
|
|
2016-03-03 10:10:11 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2017-04-27 21:31:09 +00:00
|
|
|
COMMENT?= OpenType text shaping engine
|
2013-03-29 09:49:21 +00:00
|
|
|
|
2019-08-24 09:20:46 +00:00
|
|
|
LICENSE= MIT
|
2020-04-23 00:56:50 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2019-08-24 09:20:46 +00:00
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
|
|
libgraphite2.so:graphics/graphite2
|
2013-03-29 09:49:21 +00:00
|
|
|
|
2018-09-23 21:15:05 +00:00
|
|
|
USES= compiler:c++11-lib gettext-runtime gmake gnome libtool \
|
2019-05-24 21:13:25 +00:00
|
|
|
pathfix pkgconfig tar:xz
|
2019-08-24 09:20:46 +00:00
|
|
|
USE_GNOME= glib20 introspection:build
|
|
|
|
|
2013-12-29 13:31:28 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2016-03-03 10:10:11 +00:00
|
|
|
CONFIGURE_ARGS= --with-graphite2 --with-gobject=yes
|
2019-08-24 09:20:46 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2014-05-02 16:28:34 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2016-07-11 08:21:36 +00:00
|
|
|
TEST_TARGET= check
|
2013-03-29 09:49:21 +00:00
|
|
|
|
2020-06-22 12:01:31 +00:00
|
|
|
PLIST_SUB+= LIBVER=0.20600.8
|
2015-04-06 14:25:37 +00:00
|
|
|
|
2017-04-27 21:31:09 +00:00
|
|
|
HARFBUZZ_SLAVE?= no
|
|
|
|
|
|
|
|
.if ${HARFBUZZ_SLAVE} == no
|
2019-08-24 09:20:46 +00:00
|
|
|
CONFIGURE_ARGS+= --without-icu --without-cairo
|
|
|
|
.elif ${HARFBUZZ_SLAVE} == icu
|
2017-04-27 21:31:09 +00:00
|
|
|
CONFIGURE_ARGS+= --with-icu \
|
2019-08-24 09:20:46 +00:00
|
|
|
--without-cairo \
|
2017-04-27 21:31:09 +00:00
|
|
|
--disable-gtk-doc-html
|
|
|
|
LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz \
|
|
|
|
libicudata.so:devel/icu
|
|
|
|
|
2019-08-24 09:20:46 +00:00
|
|
|
.elif ${HARFBUZZ_SLAVE} == hb-view
|
|
|
|
CONFIGURE_ARGS+= --with-cairo \
|
|
|
|
--without-icu
|
|
|
|
LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz
|
|
|
|
USE_GNOME+= cairo
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HARFBUZZ_SLAVE} != no
|
2017-04-27 21:31:09 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|install-data-am: install-data-local|install-data-am:|g' \
|
|
|
|
${WRKSRC}/docs/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2016-07-11 08:21:36 +00:00
|
|
|
.include <bsd.port.mk>
|