summaryrefslogtreecommitdiff
path: root/graphics/birdfont/Makefile
blob: c25e65d184453bf06df2297986e027cea4b576e6 (plain)
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
50
51
52
53

PORTNAME=	birdfont
DISTVERSION=	2.29.1
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=		compiler:c++11-lang 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")
	@(cd ${STAGEDIR}${PREFIX} && \
		${STRIP_CMD} ${_STRIPPABLE})

.include <bsd.port.mk>