summaryrefslogtreecommitdiff
path: root/editors/texworks/Makefile
blob: 5173d27faa316ba4665fb1d8ee40f999abee3110 (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
# $NetBSD: Makefile,v 1.6 2012/09/15 10:04:30 obache Exp $

DISTNAME=	texworks-0.4.3-r858
PKGNAME=	texworks-0.4.3
PKGREVISION=	5
CATEGORIES=	editors
MASTER_SITES=	http://texworks.googlecode.com/files/

MAINTAINER=	markd@NetBSD.org
HOMEPAGE=	http://www.tug.org/texworks/
COMMENT=	a simple TeX front-end program
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=	c c++
USE_TOOLS+=	pkg-config gmake
MAKE_ENV+=	INSTALL_ROOT=${DESTDIR}

DEPENDS+=	poppler-data>=0.4.5:../../print/poppler-data

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}

SUBST_CLASSES+=man
SUBST_STAGE.man=post-configure
SUBST_FILES.man=Makefile
SUBST_SED.man=-e s!/share/man/man1!/man/man1!g

pre-configure:
	${LN} -sf ${QTDIR}/bin/qmake ${BUILDLINK_DIR}/bin/

do-configure:
	cd ${WRKSRC}; env QTDIR=${QTDIR} qmake INSTALL_PREFIX=${PREFIX}

BUILDLINK_DEPMETHOD.qt4-tools=	full

.include "../../devel/zlib/buildlink3.mk"
.include "../../print/poppler-qt4/buildlink3.mk"
.include "../../textproc/hunspell/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../x11/qt4-qdbus/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"