aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/font-manager/Makefile
blob: 16a372626353cd75963ba0b2ac7001e5669cb7c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Created by: Zhihao Yuan <lichray@gmail.com>

PORTNAME=	font-manager
PORTVERSION=	0.8.8
PORTREVISION=	2
CATEGORIES=	x11-fonts gnome

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Font management application for the GNOME desktop

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	cmake:devel/cmake \
		itstool:textproc/itstool \
		valac:lang/vala \
		yelp-build:textproc/yelp-tools
LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libharfbuzz.so:print/harfbuzz \
		libjson-glib-1.0.so:devel/json-glib \
		libsoup-2.4.so:devel/libsoup \
		libwebkit2gtk-4.0.so:www/webkit2-gtk3

USES=		compiler:c++11-lang desktop-file-utils gettext-tools gnome \
		meson pkgconfig python:3.6+ shebangfix sqlite
USE_GITHUB=	yes
GH_ACCOUNT=	FontManager
USE_GNOME=	cairo glib20 gtk30 libxml2 pango
GLIB_SCHEMAS=	org.gnome.FontManager.gschema.xml \
		org.gnome.FontViewer.gschema.xml
USE_LDCONFIG=	yes

SHEBANG_GLOB=	*.py

PLIST_SUB=	PORTVERSION="${PORTVERSION}"

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext-runtime
NLS_MESON_TRUE=	enable-nls

post-patch:
	@${REINPLACE_CMD} \
		-e "s|\(find_installation.*\)python3|\1${PYTHON_CMD}|" \
		${WRKSRC}/meson.build

.include <bsd.port.mk>