blob: d22b4a3f0c99ed6048d3cf5bc2f3ad257b0cb2db (
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
57
58
59
60
61
62
63
64
|
# Created by: Diego Depaoli <trebestie@gmail.com>
# $FreeBSD$
PORTNAME= texworks
PORTVERSION= 0.4.4
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME}-${PORTVERSION}-r${VCS_REVISION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Simple TeX front-end program
LICENSE= GPLv2
BUILD_DEPENDS= hunspell:${PORTSDIR}/textproc/hunspell
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4
USE_PKGCONFIG= build
USE_QT4= qmake_build gui corelib rcc_build moc_build uic_build \
dbus xml
QMAKE_ARGS= INSTALL_PREFIX=${PREFIX} \
DATA_DIR=${DATADIR} \
DOCS_DIR=${DOCSDIR} \
ICON_DIR=${PREFIX}/share/pixmaps \
DESKTOP_DIR=${PREFIX}/share/applications \
MAN_DIR=${MAN1PREFIX}/man/man1 \
TW_DICPATH=${LOCALBASE}/hunspell \
TW_HELPPATH=${DOCSDIR}
MAKE_JOBS_SAFE= yes
VCS_REVISION= 1004
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DESKTOP_ENTRIES="TexWorks" \
"Lowering the entry barrier to the TeX world" \
"TeXworks" \
"${PORTNAME}" \
"Utility;" \
false
MAN1= texworks.1
PLIST_FILES= bin/texworks \
share/pixmaps/TeXworks.png
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/zlib/d; s|COPYING ||' ${WRKSRC}/TeXworks.pro
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/INSTALLS/s|documentation manual ||' \
${WRKSRC}/TeXworks.pro
.endif
@${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|' \
${WRKSRC}/src/TWUtils.cpp
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKE_ARGS} TeXworks.pro
.include <bsd.port.mk>
|