aboutsummaryrefslogtreecommitdiff
path: root/textproc/pdfgrep/Makefile
blob: 72348992f0d98411d1b9e66f7ca365e5ad4cfe96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: Michael Ranner <michael@ranner.eu>
# $FreeBSD$

PORTNAME=	pdfgrep
PORTVERSION=	2.1.1
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	https://pdfgrep.org/download/

MAINTAINER=	michael@ranner.eu
COMMENT=	Tool to search text in PDF files

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libgcrypt.so:security/libgcrypt \
		libpoppler.so:graphics/poppler \
		libgpg-error.so:security/libgpg-error

BROKEN_powerpc64=	fails to link: pdfgrep.cc: undefined reference to poppler::set_debug_error_function

GNU_CONFIGURE=	yes
USES=		pkgconfig

PLIST_FILES=	bin/pdfgrep man/man1/pdfgrep.1.gz \
		share/bash-completion/completions/pdfgrep \
		share/zsh/site-functions/_pdfgrep

OPTIONS_DEFINE=		LIBPCRE
LIBPCRE_DESC=		Enable Perl compatable expressions
LIBPCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
LIBPCRE_CONFIGURE_WITH=	libpcre

.include <bsd.port.mk>