summaryrefslogtreecommitdiff
path: root/graphics/klatexformula/Makefile
blob: 79d67a8aef496026ebcd6176de215727a90dce3e (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
# $FreeBSD$

PORTNAME=	klatexformula
PORTVERSION=	4.0.0
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Convert LaTeX formula to image

LICENSE=	GPLv2

DEPRECATED=		Qt4 has been EOL since december 2015
EXPIRATION_DATE=	2019-03-15

BUILD_DEPENDS=	help2man:misc/help2man

USES=		cmake desktop-file-utils ghostscript:run \
		qt:5 shared-mime-info tar:bzip2 localbase
USE_QT=		core dbus gui sql svg widgets x11extras xml \
		buildtools_build designer_build linguisttools_build \
		qmake_build uitools_build
USE_TEX=	latex dvipsk
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
		-DKLF_INSTALL_SHARE_MAN1_DIR=man/man1

post-patch:
	${REINPLACE_CMD} '/CMAKE_SYSTEM_NAME STREQUAL/s,Linux,FreeBSD,' \
		${WRKSRC}/src/klftools/CMakeLists.txt

.include <bsd.port.mk>