1SUMMARY="Open source Portable Document Format (PDF) viewer"
2DESCRIPTION="The Xpdf project also includes a PDF text extractor, PDF-to-PostScript \
3converter, and various other utilities.
4
5The non-X components should run on pretty much any system with a decent \
6C++ compiler.  Xpdf will run on 32-bit and 64-bit machines."
7HOMEPAGE="https://www.xpdfreader.com/"
8COPYRIGHT="1996-2014 Glyph & Cog, LLC."
9LICENSE="GNU GPL v2"
10REVISION="3"
11SOURCE_URI="http://mirror.neu.edu.cn/CTAN/support/xpdf/xpdf-$portVersion.tar.gz"
12CHECKSUM_SHA256="11390c74733abcb262aaca4db68710f13ffffd42bfe2a0861a5dfc912b2977e5"
13
14ARCHITECTURES="all"
15
16GLOBAL_WRITABLE_FILES="
17	settings/xpdfrc keep-old
18	"
19
20PROVIDES="
21	xpdf$secondaryArchSuffix = $portVersion
22	cmd:pdfdetach$secondaryArchSuffix
23	cmd:pdffonts$secondaryArchSuffix
24	cmd:pdfimages$secondaryArchSuffix
25	cmd:pdfinfo$secondaryArchSuffix
26	cmd:pdftops$secondaryArchSuffix
27	cmd:pdftotext$secondaryArchSuffix
28	"
29REQUIRES="
30	haiku$secondaryArchSuffix
31	lib:libfreetype$secondaryArchSuffix
32	lib:libpng16$secondaryArchSuffix
33	lib:libz$secondaryArchSuffix
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	devel:libfreetype$secondaryArchSuffix
39	devel:libpng16$secondaryArchSuffix
40	devel:libz$secondaryArchSuffix
41	"
42BUILD_PREREQUIRES="
43	cmd:awk
44	cmd:gcc$secondaryArchSuffix
45	cmd:ld$secondaryArchSuffix
46	cmd:make
47	"
48
49BUILD()
50{
51	runConfigure ./configure \
52		--enable-multithreaded \
53		--enable-cmyk
54	make $jobArgs
55}
56
57INSTALL()
58{
59	make install
60}
61