Lines 2-11
Link Here
|
2 |
# $FreeBSD: ports/print/qpdfview/Makefile,v 1.4 2012/12/14 21:39:38 svnexp Exp $ |
2 |
# $FreeBSD: ports/print/qpdfview/Makefile,v 1.4 2012/12/14 21:39:38 svnexp Exp $ |
3 |
|
3 |
|
4 |
PORTNAME= qpdfview |
4 |
PORTNAME= qpdfview |
5 |
PORTVERSION= 0.3.7 |
5 |
PORTVERSION= 0.4 |
6 |
CATEGORIES= print |
6 |
CATEGORIES= print |
7 |
MASTER_SITES= https://launchpadlibrarian.net/125207295/ |
7 |
MASTER_SITES= https://launchpadlibrarian.net/131409309/ |
8 |
DISTNAME= ${PORTNAME}-${PORTVERSION}beta1 |
|
|
9 |
|
8 |
|
10 |
MAINTAINER= g.veniamin@googlemail.com |
9 |
MAINTAINER= g.veniamin@googlemail.com |
11 |
COMMENT= Tabbed PDF viewer using the poppler library |
10 |
COMMENT= Tabbed PDF viewer using the poppler library |
Lines 15-29
Link Here
|
15 |
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \ |
14 |
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \ |
16 |
cups:${PORTSDIR}/print/cups-client |
15 |
cups:${PORTSDIR}/print/cups-client |
17 |
|
16 |
|
18 |
USE_QT4= corelib dbus gui moc_build qmake_build rcc sql svg xml |
17 |
USE_QT4= corelib dbus gui moc_build qmake_build rcc_build sql sql-sqlite3_run \ |
|
|
18 |
svg xml |
19 |
|
20 |
DATADIR= ${PREFIX}/share/${PORTNAME} |
19 |
|
21 |
|
20 |
MAN1= ${PORTNAME}.1 |
22 |
MAN1= ${PORTNAME}.1 |
21 |
|
23 |
|
|
|
24 |
OPTIONS_DEFINE= DJVU PDF PS |
25 |
DJVU_DESC= Enable djvu support |
26 |
PS_DESC= Enable post script support |
27 |
OPTIONS_DEFAULT= PDF |
28 |
|
29 |
.include <bsd.port.options.mk> |
30 |
|
31 |
.if ${PORT_OPTIONS:MDJVU} |
32 |
PLIST_SUB+= DJVU="" |
33 |
LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre |
34 |
.else |
35 |
QMAKEFLAGS+= "CONFIG+=without_djvu" |
36 |
PLIST_SUB+= DJVU="@comment " |
37 |
.endif |
38 |
|
39 |
.if ${PORT_OPTIONS:MPDF} |
40 |
PLIST_SUB+= PDF="" |
41 |
.else |
42 |
QMAKEFLAGS+= "CONFIG+=without_pdf" |
43 |
PLIST_SUB+= PDF="@comment " |
44 |
.endif |
45 |
|
46 |
.if ${PORT_OPTIONS:MPS} |
47 |
PLIST_SUB+= PS="" |
48 |
LIB_DEPENDS+= spectre:${PORTSDIR}/print/libspectre |
49 |
.else |
50 |
QMAKEFLAGS+= "CONFIG+=without_ps" |
51 |
PLIST_SUB+= PS="@comment " |
52 |
.endif |
53 |
|
22 |
.include <bsd.port.pre.mk> |
54 |
.include <bsd.port.pre.mk> |
23 |
pre-configure: |
55 |
pre-configure: |
24 |
${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \ |
56 |
${REINPLACE_CMD} -e 's#/usr#${PREFIX}#g;s#${PREFIX}/share/man#${PREFIX}/man#g' \ |
25 |
${WRKSRC}/${PORTNAME}.pri |
57 |
${WRKSRC}/${PORTNAME}.pri |
26 |
|
58 |
|
27 |
do-configure: |
59 |
do-configure: |
28 |
cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} |
60 |
cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS} ${PORTNAME}.pro |
|
|
61 |
|
29 |
.include <bsd.port.post.mk> |
62 |
.include <bsd.port.post.mk> |