diff --git a/x11/gnustep/pdfkit/Makefile b/x11/gnustep/pdfkit/Makefile new file mode 100644 index 00000000000..aaf847c5bc6 --- /dev/null +++ b/x11/gnustep/pdfkit/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ + +COMMENT = framework for accessing and rendering PDF content + +DISTNAME = PDFKit-0.9 +PKGNAME = ${DISTNAME:L} +SHARED_LIBS += PDFKit 0.0 + +HOMEPAGE = http://wiki.gnustep.org/index.php/PDFKit +MASTER_SITES = http://savannah.nongnu.org/download/gap/ + +MODULES = x11/gnustep +MODGNUSTEP_NEEDS_BASE = No +MODGNUSTEP_NEEDS_GUI = No +WANTLIB += freetype m +BUILD_DEPENDS = x11/gnustep/gui \ + textproc/xpdf>=xpdf-3.02.5p0:patch + +CONFIGURE_STYLE = gnu + +CONFIGURE_ENV = ${MAKE_ENV} LDFLAGS="-lz" CPPFLAGS="-I${X11BASE}/include" +CONFIGURE_ARGS = --with-freetype2-add-includes=${X11BASE}/include \ + --with-freetype2-includes=${X11BASE}/include/freetype2 +MAKE_FLAGS = PDFKit_INTERFACE_VERSION=${LIBPDFKit_VERSION} + +pre-configure: + cp ${WRKSRC}/xpdf/xpdf-3.02/GNUmakefile.in ${WRKDIR}/textproc/xpdf/xpdf-3.02 + cp ${WRKSRC}/xpdf/xpdf-3.02/Makefile.in ${WRKDIR}/textproc/xpdf/xpdf-3.02 + cp ${WRKSRC}/xpdf/xpdf-3.02/xpdf/Makefile.in ${WRKDIR}/textproc/xpdf/xpdf-3.02/xpdf + rm -r ${WRKSRC}/xpdf/xpdf-3.02 + ln -s ${WRKDIR}/textproc/xpdf/xpdf-3.02 ${WRKSRC}/xpdf/xpdf-3.02 + +.include diff --git a/x11/gnustep/pdfkit/distinfo b/x11/gnustep/pdfkit/distinfo new file mode 100644 index 00000000000..7bfbf97c125 --- /dev/null +++ b/x11/gnustep/pdfkit/distinfo @@ -0,0 +1,5 @@ +MD5 (gnustep/PDFKit-0.9.tar.gz) = 1shyfb7revKxZGBh2dWkSg== +RMD160 (gnustep/PDFKit-0.9.tar.gz) = cR7a7HnltSLfq0hhwZBAOv4CIRI= +SHA1 (gnustep/PDFKit-0.9.tar.gz) = 0R/2KCYJc1BXiBPVlz0/Cg2Qml0= +SHA256 (gnustep/PDFKit-0.9.tar.gz) = Tbf2clcykTCq2UZyL7BN9jVzHDnFoxrkTfPmbu9Xojg= +SIZE (gnustep/PDFKit-0.9.tar.gz) = 2044162 diff --git a/x11/gnustep/pdfkit/patches/patch-configure b/x11/gnustep/pdfkit/patches/patch-configure new file mode 100644 index 00000000000..d51347c37ca --- /dev/null +++ b/x11/gnustep/pdfkit/patches/patch-configure @@ -0,0 +1,51 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ +--- configure.orig Thu Jun 24 17:11:51 2010 ++++ configure Wed Dec 22 17:09:45 2010 +@@ -1775,7 +1775,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +-if test -z "$GNUSTEP_SYSTEM_ROOT"; then ++if test -z "$GNUSTEP_MAKEFILES"; then + as_fn_error "You must run the GNUstep initialization script first!" "$LINENO" 5 + fi + +@@ -3009,6 +3009,9 @@ else + netbsd*) + lib_freetype_libs=/usr/pkg/lib + ;; ++ openbsd*) ++ lib_freetype_libs=${X11BASE}/lib ++ ;; + *) + lib_freetype_libs=$(sh freetype-config --prefix)/lib + ;; +@@ -3016,7 +3019,7 @@ else + fi + + if test -n "$with_freetype2_add_includes"; then +- lib_freetype_add_includes=-I$with_freetype2_add_includes ++ lib_freetype_add_includes=$with_freetype2_add_includes + else + case "$target_os" in + freebsd*) +@@ -3025,6 +3028,9 @@ else + netbsd*) + lib_freetype_add_includes=/usr/pkg/include + ;; ++ openbsd*) ++ lib_freetype_add_includes=${X11BASE}/include ++ ;; + *) + lib_freetype_add_includes=$(sh freetype-config --cflags) + ;; +@@ -3040,6 +3046,9 @@ else + ;; + netbsd*) + lib_freetype_includes=/usr/pkg/include/freetype2 ++ ;; ++ openbsd*) ++ lib_freetype_add_includes=${X11BASE}/include/freetype2 + ;; + *) + lib_freetype_includes=$(sh freetype-config --prefix)/include/freetype2 diff --git a/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_GNUmakefile_in b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_GNUmakefile_in new file mode 100644 index 00000000000..9b48ec953b7 --- /dev/null +++ b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_GNUmakefile_in @@ -0,0 +1,15 @@ +$OpenBSD: patch-xpdf_xpdf-3_02_GNUmakefile_in,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ + +propagate CPPFLAGS and LDFLAGS + +--- xpdf/xpdf-3.02/GNUmakefile.in.orig Sun Dec 26 16:10:49 2010 ++++ xpdf/xpdf-3.02/GNUmakefile.in Sun Dec 26 16:11:28 2010 +@@ -38,7 +38,7 @@ all: compile + configure: Makefile + + Makefile: +- CC=@CC@ CXX=@CXX@ ./configure --without-x \ ++ CC=@CC@ CXX=@CXX@ CPPFLAGS=@CPPFLAGS@ LDFLAGS=@LDFLAGS@ ./configure --without-x \ + --with-freetype2-library=$(LIB_FREETYPE_LIBS) \ + --with-freetype2-includes=$(LIB_FREETYPE_INCLUDES) + diff --git a/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_splash_Makefile_in b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_splash_Makefile_in new file mode 100644 index 00000000000..b6f9caa589f --- /dev/null +++ b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_splash_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-xpdf_xpdf-3_02_splash_Makefile_in,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ +--- xpdf/xpdf-3.02/splash/Makefile.in.orig Thu Aug 6 00:28:03 2009 ++++ xpdf/xpdf-3.02/splash/Makefile.in Wed Dec 22 17:06:09 2010 +@@ -16,7 +16,7 @@ GOOLIBDIR = ../goo + FOFISRCDIR = $(srcdir)/../fofi + FOFILIBDIR = ../fofi + +-CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(srcdir) @freetype2_CFLAGS@ ++CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ -I${X11BASE}/include @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(srcdir) @freetype2_CFLAGS@ + + CXX = @CXX@ + AR = @AR@ diff --git a/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_xpdf_Makefile_in b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_xpdf_Makefile_in new file mode 100644 index 00000000000..40d1b686fa1 --- /dev/null +++ b/x11/gnustep/pdfkit/patches/patch-xpdf_xpdf-3_02_xpdf_Makefile_in @@ -0,0 +1,24 @@ +$OpenBSD: patch-xpdf_xpdf-3_02_xpdf_Makefile_in,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ + +The patches to xpdf need the DLOCALBASE + +--- xpdf/xpdf-3.02/xpdf/Makefile.in.orig Sun Dec 26 15:39:05 2010 ++++ xpdf/xpdf-3.02/xpdf/Makefile.in Sun Dec 26 15:39:23 2010 +@@ -19,7 +19,7 @@ FOFILIBDIR = ../fofi + SPLASHSRCDIR = $(srcdir)/../splash + SPLASHLIBDIR = ../splash + +-CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir) @freetype2_CFLAGS@ @Sgm_CFLAGS@ @Xm_CFLAGS@ @Xt_CFLAGS@ @Xp_CFLAGS@ @Xext_CFLAGS@ @Xpm_CFLAGS@ @X_CFLAGS@ ++CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ @DEFS@ -I.. -I$(GOOSRCDIR) -I$(FOFISRCDIR) -I$(SPLASHSRCDIR) -I$(srcdir) @freetype2_CFLAGS@ @Sgm_CFLAGS@ @Xm_CFLAGS@ @Xt_CFLAGS@ @Xp_CFLAGS@ @Xext_CFLAGS@ @Xpm_CFLAGS@ @X_CFLAGS@ -DLOCALBASE='"/usr/local"' + + LDFLAGS = @LDFLAGS@ + +@@ -31,7 +31,7 @@ SPLASHLIBS = -L$(SPLASHLIBDIR) -lsplash + + OTHERLIBS = @LIBS@ \ + -L$(FOFILIBDIR) -lfofi \ +- -L$(GOOLIBDIR) -lGoo ++ -L$(GOOLIBDIR) -lGoo -pthread + + CXX = @CXX@ + diff --git a/x11/gnustep/pdfkit/pkg/DESCR b/x11/gnustep/pdfkit/pkg/DESCR new file mode 100644 index 00000000000..cb178f88c67 --- /dev/null +++ b/x11/gnustep/pdfkit/pkg/DESCR @@ -0,0 +1,2 @@ +PDFKit is a wrapper over the xpdf library v. 3.0.2. It is used by +GWorkspace for the PDF content inspector. diff --git a/x11/gnustep/pdfkit/pkg/PLIST b/x11/gnustep/pdfkit/pkg/PLIST new file mode 100644 index 00000000000..ef3480bb689 --- /dev/null +++ b/x11/gnustep/pdfkit/pkg/PLIST @@ -0,0 +1,33 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2011/01/03 14:20:28 sebastia Exp $ +include/PDFKit +lib/GNUstep/ +lib/GNUstep/Frameworks/ +lib/GNUstep/Frameworks/PDFKit.framework/ +lib/GNUstep/Frameworks/PDFKit.framework/Headers +lib/GNUstep/Frameworks/PDFKit.framework/Resources +lib/GNUstep/Frameworks/PDFKit.framework/Versions/ +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/ +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/ +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/PDFDocument.h +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/PDFFontManager.h +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/PDFImageRep.h +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/PDFOutline.h +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Headers/PDFPrintView.h +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/ +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/Info-gnustep.plist +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/d050000l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n019003l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n019004l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n019023l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n019024l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n021003l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n021004l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n021023l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n021024l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n022003l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n022004l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n022023l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/n022024l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/0.0/Resources/s050000l.pfb +lib/GNUstep/Frameworks/PDFKit.framework/Versions/Current +@lib lib/libPDFKit.so.${LIBPDFKit_VERSION}