The attached packaging would be one approach to working around
the problems with pdftk-1.44 on powerpc darwin. The problems with
gcj are rather complex but largely stem from the fact that as of
gcc45 we are using the system unwinder rather than that in libgcc
from FSF gcc. Since gcc45 also introduced epilogue notes in the
eh frames which aren't understood by the system unwinder on
darwin, this triggers crashes in gcj on darwin8/9. One workaround
for 10.4/10.5 would be to build those variants with the gcj from
gcc44 as the attached packaging does. Note that this will likely
only fix powerpc darwin since intel darwin was never properly
tested for compilation of java code in gcj (as the gcc testsuite
runs its tests using precompiled class files and doesn't catch
these problems). The intel darwin8/9 problems will likely have
to wait until upstream (FSF gcc) completely suppresses the epilogue
notes on darwin. This is unlikely to happen before gcc 4.7 (or
if we are luckly gcc 4.6.1). It definitely won't make it into
gcc 4.6.0.
            Jack
Package: pdftk
Version: 1.44
Revision: 2
Distribution: 10.4, 10.5

BuildDepends: gcc44-compiler, libwmf, libjasper.1, fink (>= 0.24.12)
Depends: gcc44-shlibs, libwmf-shlibs, libjasper.1-shlibs
Source: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/%n-%v-src.zip
SourceDirectory: %n-%v-dist
Source-MD5: 9eb50fffcd621a627d387750c60982b4

PatchScript: <<
   #!/bin/sh -ev
   perl -pi -e "s|/sw.lib/gcc4.5/|%p/lib/gcc4.4/|g" ./pdftk/Makefile.OSX-10.6
   perl -pi -e "s|fsf-4.5|fsf-4.4|g" ./pdftk/Makefile.OSX-10.6
   gccvers=`gcc-fsf-4.4 -dumpversion`
   perl -pi -e "s|4.5.0|${gccvers}|g" ./pdftk/Makefile.OSX-10.6
   mv ./pdftk/Makefile.OSX-10.6 ./pdftk/Makefile
<<
CompileScript: <<
  cd pdftk; make
<<

InstallScript: <<
  mkdir -p %i/bin
  cp pdftk/pdftk %i/bin
  mkdir -p %i/share/man/man1
  cp pdftk.1 %i/share/man/man1 
<<

DocFiles: pdftk.1.txt pdftk.1.html changelog.html changelog.txt

Description: Handy tool for manipulating PDF
DescDetail: <<
       If  PDF  is  electronic paper, then pdftk is an electronic
       staple-remover, hole-punch,  binder,  secret-decoder-ring,
       and  X-Ray-glasses.   Pdftk  is  a  simple  tool for doing
       everyday things with PDF documents.  Use it to:

       * Merge PDF Documents
       * Split PDF Pages into a New Document
       * Decrypt Input as Necessary (Password Required)
       * Encrypt Output as Desired
       * Fill PDF Forms with FDF Data and/or Flatten Forms
       * Apply a Background Watermark
       * Report PDF Metrics such as Metadata and Bookmarks
       * Update PDF Metadata
       * Attach Files to PDF Pages or the PDF Document
       * Unpack PDF Attachments
       * Burst a PDF Document into Single Pages
       * Uncompress and Re-Compress Page Streams
       * Repair Corrupted PDF (Where Possible)
<<

DescPackaging: <<
    The original Makefile.OSX-10.6 uses a hard-coded /sw/lib. 
    A warning by fink validate is avoided by using /sw.lib in the patchscript.
<<

License: GPL
Homepage: http://www.pdfhacks.com/pdftk
Maintainer: Matthias Ringwald <[email protected]>
Package: pdftk
Version: 1.44
Revision: 200
Distribution: 10.6

BuildDepends: gcc45-compiler, libwmf, libjasper.1, fink (>= 0.24.12)
Depends: gcc45-shlibs, libwmf-shlibs, libjasper.1-shlibs
Source: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/%n-%v-src.zip
SourceDirectory: %n-%v-dist
Source-MD5: 9eb50fffcd621a627d387750c60982b4

PatchScript: <<
  #!/bin/sh -ev
  perl -pi -e "s|/sw.lib/gcc4.5/|%p/lib/gcc4.5/|g" ./pdftk/Makefile.OSX-10.6
  gccvers=`gcc-fsf-4.5 -dumpversion`
  perl -pi -e "s|4.5.0|${gccvers}|g" ./pdftk/Makefile.OSX-10.6
  mv ./pdftk/Makefile.OSX-10.6 ./pdftk/Makefile
<<
CompileScript: <<
  cd pdftk; make
<<

InstallScript: <<
  mkdir -p %i/bin
  cp pdftk/pdftk %i/bin
  mkdir -p %i/share/man/man1
  cp pdftk.1 %i/share/man/man1 
<<

DocFiles: pdftk.1.txt pdftk.1.html changelog.html changelog.txt

Description: Handy tool for manipulating PDF
DescDetail: <<
       If  PDF  is  electronic paper, then pdftk is an electronic
       staple-remover, hole-punch,  binder,  secret-decoder-ring,
       and  X-Ray-glasses.   Pdftk  is  a  simple  tool for doing
       everyday things with PDF documents.  Use it to:

       * Merge PDF Documents
       * Split PDF Pages into a New Document
       * Decrypt Input as Necessary (Password Required)
       * Encrypt Output as Desired
       * Fill PDF Forms with FDF Data and/or Flatten Forms
       * Apply a Background Watermark
       * Report PDF Metrics such as Metadata and Bookmarks
       * Update PDF Metadata
       * Attach Files to PDF Pages or the PDF Document
       * Unpack PDF Attachments
       * Burst a PDF Document into Single Pages
       * Uncompress and Re-Compress Page Streams
       * Repair Corrupted PDF (Where Possible)
<<

DescPackaging: <<
    The original Makefile.OSX-10.6 uses a hard-coded /sw/lib. 
    A warning by fink validate is avoided by using /sw.lib in the patchscript.
<<

License: GPL
Homepage: http://www.pdfhacks.com/pdftk
Maintainer: Matthias Ringwald <[email protected]>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to