# $Id: Portfile,v 1.3 2005/01/05 03:53:30 blb Exp $ PortSystem 1.0 name pdftk version 1.12 categories textproc graphics pdf maintainers blb@pobox.com description pdftk - PDF Toolkit, for various operations on PDF files long_description \ pdftk is a simple tool for doing everyday things with PDF documents: \ 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 on PDF Metrics such as Metadata, Bookmarks, and Page Labels \ 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) platforms darwin homepage http://www.pdfhacks.com/pdftk/ master_sites ${homepage} use_bzip2 yes checksums md5 ec1b6d9e06109c6f05e19033f1d91d8a \ sha1 caab4ae9ede56b12b007e9b5c9a78c6a4873dc44 depends_lib bin:gcj:gcj34 worksrcdir ${distname}/${name} use_configure no # Use glob's -nocomplain so portindex succeeds on systems without gcj34 build.args -f Makefile.MacOSX \ TOOLPATH=[glob -nocomplain ${prefix}/gcj34-*]/bin/ destroot { xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} xinstall -m 755 -W ${worksrcpath} pdftk ${destroot}/${prefix}/bin xinstall -m 644 -W ${worksrcpath}/.. pdftk.1.html pdftk.1.txt \ ${destroot}/${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath}/../debian pdftk.1 \ ${destroot}/${prefix}/share/man/man1 }