aboutsummaryrefslogtreecommitdiff
path: root/graphics/xournalpp/Makefile
blob: a01f77bf8cdfd1775325864891c684ca34ce6a51 (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
# $FreeBSD$

PORTNAME=	xournalpp
DISTVERSION=	1.0.18.20200819
CATEGORIES=	graphics

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Handwriting notetaking software with PDF annotation support

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libpoppler-glib.so:graphics/poppler-glib \
		libportaudio.so:audio/portaudio \
		libsndfile.so:audio/libsndfile \
		libzip.so:archivers/libzip

USES=		cmake compiler:c++11-lang gettext-tools gnome pkgconfig xorg
USE_GITHUB=	yes
GH_TAGNAME=	cdebec61151f968e6fafb2074be182aff970b0af
USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 libxml2 pango
USE_XORG=	x11 xi
USE_TEX=	latex

post-patch: # TEMP workaround for the bug in release 1.0.17: https://github.com/xournalpp/xournalpp/issues/1734#event-3018678460
	@${REINPLACE_CMD} 's|gettext_create_translations ("$${potfile}")|gettext_create_translations ("$${potfile}" ALL)|' ${WRKSRC}/po/CMakeLists.txt

# CAVEAT: crashes when built with gcc: https://github.com/xournalpp/xournalpp/issues/851

.include <bsd.port.mk>