blob: ad0d498ec29fa64de04345a627dc967c10984f34 (
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
|
# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$
PORTNAME= qpdfview
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= https://launchpadlibrarian.net/131409309/
MAINTAINER= g.veniamin@googlemail.com
COMMENT= Tabbed PDF viewer using the poppler library
LICENSE= GPLv2
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \
cups:${PORTSDIR}/print/cups-client
USE_QT4= corelib dbus gui moc_build qmake_build rcc_build sql sql-sqlite3_run \
svg xml
QMAKEFLAGS+= QMAKE_CFLAGS_RELEASE="" QMAKE_CXXFLAGS_RELEASE=""
DATADIR= ${PREFIX}/share/${PORTNAME}
MAN1= ${PORTNAME}.1
OPTIONS_DEFINE= DJVU PDF PS
DJVU_DESC= DjVu support
PS_DESC= PostScript support
OPTIONS_DEFAULT= PDF
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDJVU}
PLIST_SUB+= DJVU=""
LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
.else
QMAKEFLAGS+= "CONFIG+=without_djvu"
PLIST_SUB+= DJVU="@comment "
.endif
.if ${PORT_OPTIONS:MPDF}
PLIST_SUB+= PDF=""
.else
QMAKEFLAGS+= "CONFIG+=without_pdf"
PLIST_SUB+= PDF="@comment "
.endif
.if ${PORT_OPTIONS:MPS}
PLIST_SUB+= PS=""
LIB_DEPENDS+= spectre:${PORTSDIR}/print/libspectre
.else
QMAKEFLAGS+= "CONFIG+=without_ps"
PLIST_SUB+= PS="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \
${WRKSRC}/${PORTNAME}.pri
do-configure:
cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} ${PORTNAME}.pro
.include <bsd.port.mk>
|