summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-10-11 09:41:35 +0000
committerwiz <wiz@pkgsrc.org>2009-10-11 09:41:35 +0000
commite7a1e9682912f7242997dde565c03e12ca9ee59c (patch)
treecb8f9000cfdea29a66f540a741d1068628fbd334 /print
parente5cb6c207d9f58d8d7c6a439d88bea5c7611c924 (diff)
downloadpkgsrc-e7a1e9682912f7242997dde565c03e12ca9ee59c.tar.gz
Initial import of podofo-0.7.0:
PoDoFo is a library to work with the PDF file format. The name comes from the first letter of PDF (Portable Document Format). A few tools to work with PDF files are already included in the PoDoFo package. The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. The changes can be written back to disk easily. The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). Besides parsing PoDoFo includes also very simple classes to create your own PDF files. All classes are documented so it is easy to start writing your own application using PoDoFo.
Diffstat (limited to 'print')
-rw-r--r--print/podofo/DESCR13
-rw-r--r--print/podofo/Makefile31
-rw-r--r--print/podofo/PLIST91
-rw-r--r--print/podofo/buildlink3.mk17
-rw-r--r--print/podofo/distinfo6
-rw-r--r--print/podofo/patches/patch-aa13
6 files changed, 171 insertions, 0 deletions
diff --git a/print/podofo/DESCR b/print/podofo/DESCR
new file mode 100644
index 00000000000..85cbedf8d0e
--- /dev/null
+++ b/print/podofo/DESCR
@@ -0,0 +1,13 @@
+PoDoFo is a library to work with the PDF file format. The name
+comes from the first letter of PDF (Portable Document Format). A
+few tools to work with PDF files are already included in the PoDoFo
+package.
+
+The PoDoFo library is a free, portable C++ library which includes
+classes to parse PDF files and modify their contents into memory.
+The changes can be written back to disk easily. The parser can also
+be used to extract information from a PDF file (for example the
+parser could be used in a PDF viewer). Besides parsing PoDoFo
+includes also very simple classes to create your own PDF files.
+All classes are documented so it is easy to start writing your own
+application using PoDoFo.
diff --git a/print/podofo/Makefile b/print/podofo/Makefile
new file mode 100644
index 00000000000..7a91b62de7a
--- /dev/null
+++ b/print/podofo/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $
+#
+
+DISTNAME= podofo-0.7.0
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=podofo/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://podofo.sourceforge.net/
+COMMENT= Library to work with the PDF file format
+#LICENSE= gnu-lgpl-v? AND gnu-gpl-v?
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+CMAKE_ARGS+= -DFREETYPE_INCLUDE_DIR_FT2BUILD:PATH=${BUILDLINK_PREFIX.freetype2}/include
+CMAKE_ARGS+= -DFREETYPE_LIB_PATHS:PATH=${BUILDLINK_PREFIX.freetype2}/lib
+CFLAGS+= -fPIC
+CXXFLAGS+= -fPIC
+
+# optional: lua support
+# tests-depend on cppunit (for unit tests)
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/podofo/PLIST b/print/podofo/PLIST
new file mode 100644
index 00000000000..0879dc6e20e
--- /dev/null
+++ b/print/podofo/PLIST
@@ -0,0 +1,91 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $
+bin/podofoencrypt
+bin/podofoimgextract
+bin/podofoimpose
+bin/podofomerge
+bin/podofopdfinfo
+bin/podofotxt2pdf
+bin/podofotxtextract
+bin/podofouncompress
+include/podofo/Pdf3rdPtyForwardDecl.h
+include/podofo/PdfAcroForm.h
+include/podofo/PdfAction.h
+include/podofo/PdfAnnotation.h
+include/podofo/PdfArray.h
+include/podofo/PdfCanvas.h
+include/podofo/PdfColor.h
+include/podofo/PdfContents.h
+include/podofo/PdfContentsTokenizer.h
+include/podofo/PdfData.h
+include/podofo/PdfDataType.h
+include/podofo/PdfDate.h
+include/podofo/PdfDefines.h
+include/podofo/PdfDestination.h
+include/podofo/PdfDictionary.h
+include/podofo/PdfDifferenceEncoding.h
+include/podofo/PdfDocument.h
+include/podofo/PdfElement.h
+include/podofo/PdfEncoding.h
+include/podofo/PdfEncodingFactory.h
+include/podofo/PdfEncrypt.h
+include/podofo/PdfError.h
+include/podofo/PdfExtGState.h
+include/podofo/PdfField.h
+include/podofo/PdfFileSpec.h
+include/podofo/PdfFileStream.h
+include/podofo/PdfFilter.h
+include/podofo/PdfFiltersPrivate.h
+include/podofo/PdfFont.h
+include/podofo/PdfFontCID.h
+include/podofo/PdfFontCache.h
+include/podofo/PdfFontFactory.h
+include/podofo/PdfFontMetrics.h
+include/podofo/PdfFontSimple.h
+include/podofo/PdfFontTTFSubset.h
+include/podofo/PdfFontTrueType.h
+include/podofo/PdfFontType1.h
+include/podofo/PdfFunction.h
+include/podofo/PdfHintStream.h
+include/podofo/PdfImage.h
+include/podofo/PdfImmediateWriter.h
+include/podofo/PdfInfo.h
+include/podofo/PdfInputDevice.h
+include/podofo/PdfInputStream.h
+include/podofo/PdfLocale.h
+include/podofo/PdfMemDocument.h
+include/podofo/PdfMemStream.h
+include/podofo/PdfName.h
+include/podofo/PdfNamesTree.h
+include/podofo/PdfObject.h
+include/podofo/PdfOutlines.h
+include/podofo/PdfOutputDevice.h
+include/podofo/PdfOutputStream.h
+include/podofo/PdfPage.h
+include/podofo/PdfPagesTree.h
+include/podofo/PdfPainter.h
+include/podofo/PdfPainterMM.h
+include/podofo/PdfParser.h
+include/podofo/PdfParserObject.h
+include/podofo/PdfRect.h
+include/podofo/PdfRefCountedBuffer.h
+include/podofo/PdfRefCountedInputDevice.h
+include/podofo/PdfReference.h
+include/podofo/PdfRijndael.h
+include/podofo/PdfShadingPattern.h
+include/podofo/PdfStream.h
+include/podofo/PdfStreamedDocument.h
+include/podofo/PdfString.h
+include/podofo/PdfTable.h
+include/podofo/PdfTokenizer.h
+include/podofo/PdfVariant.h
+include/podofo/PdfVecObjects.h
+include/podofo/PdfVersion.h
+include/podofo/PdfWriter.h
+include/podofo/PdfXObject.h
+include/podofo/PdfXRef.h
+include/podofo/PdfXRefStream.h
+include/podofo/podofo.h
+include/podofo/podofoapi.h
+include/podofo/util/PdfMutex.h
+include/podofo/util/PdfMutexWrapper.h
+lib/libpodofo.a
diff --git a/print/podofo/buildlink3.mk b/print/podofo/buildlink3.mk
new file mode 100644
index 00000000000..85433ff57dd
--- /dev/null
+++ b/print/podofo/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $
+
+BUILDLINK_TREE+= podofo
+
+.if !defined(PODOFO_BUILDLINK3_MK)
+PODOFO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.podofo+= podofo>=0.7.0
+BUILDLINK_PKGSRCDIR.podofo?= ../../nih/podofo
+BUILDLINK_DEPMETHOD.podofo?= build
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.endif # PODOFO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -podofo
diff --git a/print/podofo/distinfo b/print/podofo/distinfo
new file mode 100644
index 00000000000..88ce4cd780c
--- /dev/null
+++ b/print/podofo/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $
+
+SHA1 (podofo-0.7.0.tar.gz) = bd9862770c99f5790e6be53a57c77c5d4796d841
+RMD160 (podofo-0.7.0.tar.gz) = 37721670a706da614b61ec9620fb1ef46aaff4ae
+Size (podofo-0.7.0.tar.gz) = 1117023 bytes
+SHA1 (patch-aa) = 7d3bb709d86ad13b21120d41223a4d84c5d9215d
diff --git a/print/podofo/patches/patch-aa b/print/podofo/patches/patch-aa
new file mode 100644
index 00000000000..3f4c1336b66
--- /dev/null
+++ b/print/podofo/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/10/11 09:41:35 wiz Exp $
+
+--- cmake/modules/FindFREETYPE.cmake.orig 2007-11-07 17:45:20.000000000 +0000
++++ cmake/modules/FindFREETYPE.cmake
+@@ -41,7 +41,7 @@ ENDIF(NOT FREETYPE_FIND_QUIETLY)
+ SET(FREETYPE_LIBRARY_NAMES_DEBUG ${FREETYPE_LIBRARY_NAMES_DEBUG} freetyped libfreetyped)
+ SET(FREETYPE_LIBRARY_NAMES_RELEASE ${FREETYPE_LIBRARY_NAMES_RELEASE} freetype libfreetype)
+
+-SET(FREETYPE_LIB_PATHS /usr/lib /usr/local/lib)
++#SET(FREETYPE_LIB_PATHS /usr/lib /usr/local/lib)
+
+ FIND_LIBRARY(FREETYPE_LIBRARY_RELEASE
+ ${FREETYPE_LIBRARY_NAMES_RELEASE}