blob: c66aa2b641e1b33356017b0a7bbaf5e9a3159072 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
PORTNAME= pdf2djvu
DISTVERSION= 0.9.18.2
PORTREVISION= 13
CATEGORIES= converters
MASTER_SITES= https://github.com/jwilk/${PORTNAME}/releases/download/${PORTVERSION}/
PATCH_SITES= https://github.com/jwilk/pdf2djvu/commit/
PATCHFILES= e170ad557d5f13daeeac047dfaa79347bbe5062f.diff:-p1 \
956fedc7e0831126b9006efedad5519c14201c52.diff:-p1 \
dca43e8182174bc04e107eaefcafcfdfdf9bcd61.diff:-p1
MAINTAINER= samy.mahmoudi@gmail.com
COMMENT= Creates DjVu files from PDF files
WWW= https://jwilk.net/software/pdf2djvu
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/pstreams/pstream.h:devel/pstreams
LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre \
libpoppler.so:graphics/poppler
USES= autoreconf:build compiler:c++17-lang gettext-tools \
gmake iconv localbase pkgconfig tar:xz
USE_CXXSTD= c++17
GNU_CONFIGURE= yes
OPTIONS_DEFINE= COLOR_QUANTIZATION DOCS NLS MULTITHREADING XMP
OPTIONS_DEFAULT=COLOR_QUANTIZATION MULTITHREADING
OPTIONS_SUB= yes
COLOR_QUANTIZATION_DESC=Color quantization via GraphicsMagick++
DOCS_DESC= Generate the man page
NLS_DESC= Native Language Support via gettext utilities
MULTITHREADING_DESC= Multithreading support via OpenMP
XMP_DESC= XMP metadata support via Exiv2
COLOR_QUANTIZATION_CONFIGURE_WITH=graphicsmagick
COLOR_QUANTIZATION_LIB_DEPENDS= \
libGraphicsMagick++.so:graphics/GraphicsMagick \
libGraphicsMagick.so:graphics/GraphicsMagick
DOCS_BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl \
xsltproc:textproc/libxslt
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext-runtime
MULTITHREADING_CONFIGURE_ENABLE=openmp
XMP_CONFIGURE_ENABLE= xmp
XMP_LIB_DEPENDS= libexiv2.so:graphics/exiv2
XMP_BROKEN= graphics/exiv2 and graphics/poppler disagree about usable C++ standard
pre-configure:
@cd ${WRKSRC} && ${SH} ${FILESDIR}/bootstrap
# Poppler 20.12 no longer installs the pc file for this private backend.
# https://github.com/jwilk/pdf2djvu/issues/144
${REINPLACE_CMD} -e 's|poppler-splash|poppler|g' ${WRKSRC}/configure
post-build-DOCS-on:
@cd ${WRKSRC}/doc && ${GMAKE}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|