freebsd-ports/print/qpdfview/Makefile
Jeremy Messenger 8112386f17 - Update poppler to 0.22.2.
- Bump the rest ports that depend on the poppler and poppler-qt because of
  shared library version have been changed.
- Add a note in the UPDATING for require to rebuild all ports that depend
  on poppler.

Submitted by:	kwm (poppler* part)
2013-03-21 05:27:16 +00:00

63 lines
1.4 KiB
Makefile

# 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>