1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/graphics/pqiv/Makefile
Tobias C. Berner 5dc59a82ae graphics/poppler: update to 20.09.0
Release 20.09.0:
        core:
         * Compability fix for Forms
         * Fix fetching of Objects failing in some cases
         * Fix clearing date in Annot setModified/setDate
         * TextSelectionPainter: support glyphless fonts
         * Splash: Don't try read past end of image
         * avoid abort() on large memory allocation
         * Fix memory leak on broken files
         * Fix potential invalid memory read
         * Small code improvements

        qt5:
         * Document TextAnnotation::inplaceAlign
         * Make Annotation::setModification/CreationDate work on existing annots
         * Be a bit more stubborn converting dates that come from xml
         * Clean as many null characters from the end as possible when converting strings

        glib:
         * Add accessor functions for PopplerAttachment
         * Deprecate PopplerAttachment GTime fields
         * Deprecate PopplerDocument date properties

        utils:
         * pdftoppm: report error and exit if output file cannot be written
         * Document that PDF-file can be '-' to read it from stdin

        build system:
         * cmake: Modern way to link against libpng, zlib and libtiff
         * cmake: Remove stray support for lcms1 in pdftocairo

PR:		249060
Exp-run by:	antoine
2020-09-10 18:32:06 +00:00

88 lines
2.0 KiB
Makefile

# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
# $FreeBSD$
PORTNAME= pqiv
PORTVERSION= 2.11
PORTREVISION= 13
CATEGORIES= graphics
MAINTAINER= danilo@FreeBSD.org
COMMENT= Pretty Quick Image Viewer
LICENSE= GPLv2
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
BUILD_DEPENDS= bash:shells/bash
USE_GITHUB= yes
GH_ACCOUNT= phillipberndt
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= GTK
OPTIONS_SINGLE_GTK= GTK2 GTK3
OPTIONS_GROUP= BACKENDS
OPTIONS_GROUP_BACKENDS= LIBARCHIVE LIBAV PIXBUF POPPLER SPECTRE WAND WEBP
LIBARCHIVE_DESC= Libarchive formats support
LIBAV_DESC= Video support
SPECTRE_DESC= PS/EPS support
WAND_DESC= ImageMagick image processing support
OPTIONS_DEFAULT= GTK2 PIXBUF
USES= compiler gettext-runtime gmake gnome pkgconfig xorg
USE_XORG= x11
USE_GNOME= cairo gdkpixbuf2
HAS_CONFIGURE= yes
LIBARCHIVE_CONFIGURE_WITH= archive archive_cbx
LIBARCHIVE_USES= libarchive
LIBAV_CONFIGURE_WITH= libav
LIBAV_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
PIXBUF_CONFIGURE_WITH= gdkpixbuf
POPPLER_CONFIGURE_WITH= poppler
POPPLER_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib
SPECTRE_CONFIGURE_WITH= spectre
SPECTRE_LIB_DEPENDS= libspectre.so:print/libspectre
WAND_CONFIGURE_WITH= wand
WAND_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick6
WEBP_CONFIGURE_WITH= webp
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
GTK2_CONFIGURE_ON= --gtk-version=2
GTK2_USE= GNOME=gtk20
GTK3_CONFIGURE_ON= --gtk-version=3
GTK3_USE= GNOME=gtk30
MAKEFILE= GNUmakefile
PORTDOCS= README.markdown
PLIST_FILES= bin/pqiv man/man1/pqiv.1.gz
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
post-patch:
@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
-e '/PQIV_DISABLE_PEDANTIC/d' \
-e '/PQIV_ENABLE_PEDANTIC/d' \
${WRKSRC}/pqiv.c
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>