pdftk.cfg 1.93 KB
Newer Older
1
[buildout]
2 3 4 5
# Note: Locally provided gcc with gcj is used, as there is high unstability
# in how gcj is functional on many operating systems.
# Because of this the only way to have portable pdftk profile it is required
# to provide working gcj and then have it used for pdftk compilation.
6 7 8 9
extends =
  gcc.cfg
  zlib.cfg

10 11
parts = pdftk

Łukasz Nowak's avatar
Łukasz Nowak committed
12 13 14 15 16
[pdftk-patch-download]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/patches/${:filename}
download-only = true

17
[pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch]
Łukasz Nowak's avatar
Łukasz Nowak committed
18
<= pdftk-patch-download
19 20
md5sum = 7b8268061f011c9b63613a078ac941ae
filename = pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch
21

Łukasz Nowak's avatar
Łukasz Nowak committed
22 23 24 25 26 27 28
[pdftk-hooks-download]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/buildout-hooks/pdftk-hooks.py-r38757
filename = pdftk-hooks.py
md5sum = b4b4a31ded6b59888e2a56d1b5726c99
download-only = true

29
[fastjar]
Łukasz Nowak's avatar
Łukasz Nowak committed
30
recipe = hexagonit.recipe.cmmi
31 32
url = http://sourceforge.net/projects/fastjar/files/fastjar/0.94/fastjar-0.94.tar.gz/download
md5sum = 14d4bdfac236e347d806c6743dba48c6
33 34 35
environment =
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
Łukasz Nowak's avatar
Łukasz Nowak committed
36

37 38 39 40
[pdftk]
recipe = hexagonit.recipe.cmmi
url = http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip
md5sum = 9eb50fffcd621a627d387750c60982b4
Łukasz Nowak's avatar
Łukasz Nowak committed
41
configure-command = true
42 43 44
patches =
  ${pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch:location}/${pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch:filename}
patch-options = -p1
Łukasz Nowak's avatar
Łukasz Nowak committed
45
make-options =
46
  -f Makefile.Redhat
47
  DEST=${buildout:parts-directory}/${:_buildout_section_name_}
Łukasz Nowak's avatar
Łukasz Nowak committed
48 49

pre-make-hook = ${pdftk-hooks-download:location}/${pdftk-hooks-download:filename}:pre_make_hook
50 51 52
environment =
  PATH=${gcc-java:location}/bin:${fastjar:location}/bin:%(PATH)s
  LDFLAGS=-L${gcc-java:location}/lib -Wl,-rpath -Wl,${gcc-java:location}/lib -L${gcc-java:location}/lib64 -Wl,-rpath -Wl,${gcc-java:location}/lib64
53
  LD_LIBRARY_PATH=${gcc-java:location}/lib:${gcc-java:location}/lib64