poppler4-xpdf stable port information

Package: poppler4-xpdf
# NOTE: Must keep %v in sync among all poppler4* packages!
Version: 0.10.7
Revision: 1
Description: PDF rendering library (alternate interface)
License: GPL
Maintainer: Benjamin Reed

BuildDepends: <<
fink (>= 0.28.0-1)
<<
Depends: <<
poppler4-shlibs (>= %v-1)
<<
Conflicts: <<
poppler2-xpdf
<<
Replaces: <<
poppler2-xpdf
<<
BuildDependsOnly: True
GCC: 4.0

Source: http://poppler.freedesktop.org/poppler-%v.tar.gz
Source-MD5: ba120e49a82567d85d00e159011ebe67
PatchFile: %n.patch
PatchFile-MD5: 786610cf50611f0387f93804b090cae3

PatchScript: <<
#!/bin/sh -ev
%{default_script}
for mfdir in goo poppler splash; do
perl -n -e 'print if s/if ENABLE_XPDF_HEADERS// .. s/endif//' < ${mfdir}/Makefile.am > ${mfdir}/Makefile
done
<<
CompileScript: #
InstallScript: <<
#!/bin/sh -ev
for mfdir in goo poppler splash; do
make -j1 -C ${mfdir} install DESTDIR=%d includedir=%p/include
done
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README README-XPDF TODO

Homepage: http://poppler.freedesktop.org/
DescDetail: Poppler is a PDF rendering library based on the xpdf-3.0 code base.
DescPackaging: <<
This is just the older-interface headers, which are installed
by poppler iff it's configured with --enable-xpdf-headers. We
just hack the makefiles we need and use just the xpdf headers
parts of them instead of actually building the poppler package
and stripping out the parts we don't need.
<<

poppler4-xpdf stable port .patch

diff -Nurd -x'*~' poppler-0.10.7.orig/goo/Makefile.am poppler-0.10.7/goo/Makefile.am
--- poppler-0.10.7.orig/goo/Makefile.am 2009-05-02 08:14:56.000000000 -0400
+++ poppler-0.10.7/goo/Makefile.am 2009-06-26 03:26:56.000000000 -0400
@@ -15,6 +15,9 @@
gfile.h \
FixedPoint.h

+install:
+ mkdir -p $(DESTDIR)$(prefix)/$(poppler_goo_includedir)
+ install -m644 $(poppler_goo_include_HEADERS) $(DESTDIR)$(prefix)/$(poppler_goo_includedir)
endif

libgoo_la_SOURCES = \
diff -Nurd -x'*~' poppler-0.10.7.orig/poppler/Makefile.am poppler-0.10.7/poppler/Makefile.am
--- poppler-0.10.7.orig/poppler/Makefile.am 2009-05-02 08:14:57.000000000 -0400
+++ poppler-0.10.7/poppler/Makefile.am 2009-06-26 03:26:56.000000000 -0400
@@ -202,6 +202,9 @@
Sound.h \
poppler-config.h

+install:
+ mkdir -p $(DESTDIR)$(prefix)/$(poppler_includedir)
+ install -m644 $(poppler_include_HEADERS) $(DESTDIR)$(prefix)/$(poppler_includedir)
endif

libpoppler_la_SOURCES = \
diff -Nurd -x'*~' poppler-0.10.7.orig/splash/Makefile.am poppler-0.10.7/splash/Makefile.am
--- poppler-0.10.7.orig/splash/Makefile.am 2009-05-02 08:14:56.000000000 -0400
+++ poppler-0.10.7/splash/Makefile.am 2009-06-26 03:26:56.000000000 -0400
@@ -33,6 +33,9 @@
SplashXPath.h \
SplashXPathScanner.h

+install:
+ mkdir -p $(DESTDIR)$(prefix)/$(poppler_splash_includedir)
+ install -m644 $(poppler_splash_include_HEADERS) $(DESTDIR)$(prefix)/$(poppler_splash_includedir)
endif

libsplash_la_SOURCES = \

poppler4-xpdf _unstable_ port .patch