blob: 0cd20552fc1619ab93113f1d427be354b4aa8211 (
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
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= qpdfview
PORTVERSION= 0.4.14
CATEGORIES= print
MASTER_SITES= https://launchpad.net/qpdfview/trunk/0.4.14/+download/
MAINTAINER= vg@FreeBSD.org
COMMENT= Tabbed DjVu/PDF/PS document viewer
LICENSE= GPLv2
USES= desktop-file-utils pkgconfig qmake
USE_QT4= corelib dbus gui imageformats_run linguisttools_build \
moc_build rcc_build sql sql-sqlite3_run svg xml
USE_LDCONFIG= yes
QMAKE_ARGS+= QMAKE_CFLAGS_RELEASE="" QMAKE_CXXFLAGS_RELEASE=""
QMAKE_SOURCE_PATH= ${PORTNAME}.pro
DATADIR= ${PREFIX}/share/${PORTNAME}
OPTIONS_DEFINE= CUPS
OPTIONS_MULTI= BACKEND
OPTIONS_MULTI_BACKEND= DJVU PDF PS
BACKEND_DESC= Documents support
OPTIONS_DEFAULT= CUPS PDF
OPTIONS_SUB= yes
CUPS_QMAKE_OFF= "CONFIG+=without_cups"
CUPS_LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
DJVU_LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
DJVU_QMAKE_OFF= "CONFIG+=without_djvu"
PDF_LIB_DEPENDS= libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
PDF_QMAKE_OFF= "CONFIG+=without_pdf"
PS_LIB_DEPENDS= libspectre.so:${PORTSDIR}/print/libspectre
PS_QMAKE_OFF= "CONFIG+=without_ps"
pre-configure:
${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \
${WRKSRC}/${PORTNAME}.pri
cd ${WRKSRC} && ${LRELEASE} ${PORTNAME}.pro
.include <bsd.port.mk>
|