aboutsummaryrefslogtreecommitdiffstats
path: root/editors/texmaker/Makefile
blob: 1c2357ff83552a1756269544083328d7a30b7322 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by: ijliao
# $FreeBSD$

PORTNAME=   texmaker
PORTVERSION=    3.5.2
PORTEPOCH=  1
CATEGORIES= editors
MASTER_SITES=   http://www.xm1math.net/texmaker/

MAINTAINER= makc@FreeBSD.org
COMMENT=    LaTeX Development Environment

LIB_DEPENDS=    poppler.18:${PORTSDIR}/graphics/poppler \
        poppler-qt4.3:${PORTSDIR}/graphics/poppler-qt4
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX-base \
        dvips:${PORTSDIR}/print/dvipsk-tetex \
        ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme

USE_BZIP2=  yes
USE_GHOSTSCRIPT=yes
USE_QT4=    gui network xml webkit \
        moc_build qmake_build rcc_build uic_build
HAS_CONFIGURE=  yes
QMAKE_ARGS= PREFIX=${PREFIX} ICONDIR=${PREFIX}/share/pixmaps \
        DESKTOPDIR=${DESKTOPDIR}
MAKE_JOBS_SAFE= yes

OPTIONS_DEFINE= GV XDVI
GV_DESC=    View ps files with gv
XDVI_DESC=  View dvi files with xdvi

STRIP_FILES=    bin/texmaker

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXDVI}
RUN_DEPENDS+=   xdvi:${PORTSDIR}/print/xdvik
.endif

.if ${PORT_OPTIONS:MGV}
RUN_DEPENDS+=   gv:${PORTSDIR}/print/gv
.endif

pre-configure:
    ${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,g' \
        -e 's,/usr/lib,${LOCALBASE}/lib,g' \
        ${WRKSRC}/texmaker.pro

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
        ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} texmaker.pro

post-install:
    ${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}

.include <bsd.port.mk>