freebsd-ports/print/pdf-tools/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

51 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= pdf-tools
DISTVERSIONPREFIX= v
DISTVERSION= 0.90-41
DISTVERSIONSUFFIX= -g2ece508
PORTREVISION= 6
CATEGORIES= print elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= jrm@FreeBSD.org
COMMENT= Emacs support library for PDF files
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: cannot find necessary poppler-private header (see README.org)
BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: cannot find necessary poppler-private header (see README.org)
BUILD_DEPENDS= cask${EMACS_PKGNAMESUFFIX}>0:devel/cask@${EMACS_FLAVOR} \
tablist${EMACS_PKGNAMESUFFIX}>=0.70.4:devel/tablist@${EMACS_FLAVOR}
LIB_DEPENDS= libMagickCore-7.so:graphics/ImageMagick7 \
libpng.so:graphics/png \
libpoppler-glib.so:graphics/poppler-glib \
libpoppler.so:graphics/poppler
RUN_DEPENDS= tablist${EMACS_PKGNAMESUFFIX}>=0.70:devel/tablist@${EMACS_FLAVOR}
USES= autoreconf:build emacs gettext-runtime gmake gnome
USE_GITHUB= yes
GH_ACCOUNT= politza
USE_GNOME= cairo glib20
EMACS_FLAVORS_EXCLUDE= devel_nox nox
do-build:
cd ${WRKSRC}/server && ./autogen.sh && ./configure -q && make
${EMACS_CMD} -q --batch -L ${WRKSRC}/lisp -f batch-byte-compile \
${WRKSRC}/lisp/*.el
${EMACS_CMD} -q --batch \
--eval "(setq generated-autoload-file \
\"${WRKSRC}/lisp/${PORTNAME}-loaddefs.el\" \
backup-inhibited t)" \
-f batch-update-autoloads ${WRKSRC}/lisp
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/server/epdfinfo ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lisp/* ${FILESDIR}/${PORTNAME}-init.el \
${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
.include <bsd.port.mk>