summaryrefslogtreecommitdiff
path: root/editors/texmaker/Makefile
blob: f4b6372663cdaea2e45dcf9e035b047785332337 (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
# $NetBSD: Makefile,v 1.115 2020/08/18 17:57:44 leot Exp $

DISTNAME=	texmaker-5.0.3
PKGREVISION=	9
CATEGORIES=	editors
MASTER_SITES=	http://www.xm1math.net/texmaker/
EXTRACT_SUFX=	.tar.bz2
EXTRACT_USING=	bsdtar

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.xm1math.net/texmaker/
COMMENT=	LaTeX editor and front end
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c++ c
USE_LIBTOOL=	yes

INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR}

do-configure:
	cd ${WRKSRC} && env ${CONFIGURE_ENV} \
	${QTDIR}/bin/qmake PREFIX=${PREFIX} texmaker.pro \
		DESKTOPDIR=${PREFIX}/share/applications \
		ICONDIR=${PREFIX}/share/pixmaps \
		METAINFODIR=${PREFIX}/share/appdata

pre-configure:
	${CP} ${FILESDIR}/fxge_pkgsrcfonts.inc ${WRKSRC}/pdfium/core/fxge
	${CP} ${FILESDIR}/fxge_x11fonts.inc ${WRKSRC}/pdfium/core/fxge
	${CP} ${FILESDIR}/fgas_stdfontmgr_pkgsrcfonts.inc \
		${WRKSRC}/pdfium/xfa/fgas/font
	${CP} ${FILESDIR}/fgas_stdfontmgr_x11fonts.inc \
		${WRKSRC}/pdfium/xfa/fgas/font

.include "options.mk"

.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/hunspell/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"