Release 0.84.0: core: * Fix crash when converting from Unicode to ASCII-7 * Splash::scaleImageYdXu: Protect against crash if srcWidth is too big * JBIG2Stream: fix potential crash in malformed documents * JBIG2Stream: fix leak in reset() if called several times * Internal code improvements utils: * pdfimages: Add error message if first page is larger then number of pages. * pdfinfo: Improved paper size recognition * pdfsig: Fix exit code when dumping signatures * pdftocairo: Error out when even/odd selects 0 pages * pdftohtml: Fix memory leak * pdftoppm: Add an option to scale before rotate * pdftoppm: Add -hide-annotations option * pdftoppm: Error out when even/odd selects 0 pages * pdftops: Improve -optimizecolorspace qt5: * Code cleanups glib: * Fix compiler warnings Release 0.83.0 core: * Improve when a file is recognized as Linearized * Improve const-ness of the code * Make code a bit more readable/maintanable * Fix uninitialized memory uses in broken files utils: * pdffonts: Make code a bit more readable/maintanable * pdftohtml: Make code a bit more readable/maintanable qt5: * Remove a bunch of unused internal functions * trUtf8 -> tr (less warnings) build system: * make-glib-api-docs: switch to python3 PR: 243433 Exp-run by: antoine
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: Olivier Cochard-Labbe <olivier@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pdfviewer
|
|
PORTVERSION= 0.0.2
|
|
PORTREVISION= 9
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://www.defora.org/os/download/download/4431/
|
|
PKGNAMEPREFIX= deforaos-
|
|
DISTNAME= PDFViewer-${PORTVERSION}
|
|
|
|
MAINTAINER= olivier@FreeBSD.org
|
|
COMMENT= DeforaOS desktop PDF viewer
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= libSystem.so:devel/deforaos-libsystem \
|
|
libDesktop.so:x11/deforaos-libdesktop \
|
|
libpoppler-glib.so:graphics/poppler-glib \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2
|
|
|
|
MAKE_ARGS+= PREFIX=${PREFIX}
|
|
USES= desktop-file-utils gnome pkgconfig
|
|
USE_GNOME= gtk20 gdkpixbuf2 cairo
|
|
MAKE_ENV+= MANDIR=${STAGEDIR}${MANPREFIX}/man
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
NLS_USES= gettext
|
|
DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \
|
|
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
|
|
|
|
post-patch-DOCS-off:
|
|
${REINPLACE_CMD} 's|data doc po|data po|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-patch-NLS-off:
|
|
${REINPLACE_CMD} 's|po src tools|src tools|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|-Wl,-pie||g' \
|
|
${WRKSRC}/tools/Makefile \
|
|
${WRKSRC}/src/Makefile
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pdfviewer
|
|
|
|
.include <bsd.port.mk>
|