update to PoDoFo 0.9.3

This commit is contained in:
sthen 2015-10-18 13:09:38 +00:00
parent 92bb88c69a
commit 3b9c3615a2
6 changed files with 36 additions and 51 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2014/09/16 10:46:22 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2015/10/18 13:09:38 sthen Exp $
COMMENT= library and tools to modify and parse PDF documents
# note, this is not the latest; 0.9.3 does not build on OpenBSD as-is
DISTNAME= podofo-0.9.2
DISTNAME= podofo-0.9.3
SHARED_LIBS += podofo 0.0 # 0.9
SHARED_LIBS += podofo 1.0 # 0.9
CATEGORIES= textproc
@ -36,14 +35,9 @@ CONFIGURE_ARGS+= -DCMAKE_INCLUDE_PATH=${X11BASE}/include \
post-extract:
rm ${WRKSRC}/cmake/modules/FindZLIB.cmake
NO_TEST= Yes
# there are various cppunit-based tests (which must be installed during
# configure), podofo-test is easy to run, but there's no framework to
# automatically run the others.
#
#BUILD_DEPENDS= devel/cppunit
#do-test:
# ${WRKBUILD}/test/unit/podofo-test
BUILD_DEPENDS= devel/cppunit
do-test:
${WRKBUILD}/test/unit/podofo-test
.include <bsd.port.arch.mk>

View File

@ -1,2 +1,2 @@
SHA256 (podofo-0.9.2.tar.gz) = RlGRYYxX2prpIw55GeGYWiQt3H0QRc/bb7BmFA7Qo/M=
SIZE (podofo-0.9.2.tar.gz) = 1092131
SHA256 (podofo-0.9.3.tar.gz) = 7CYeMeidzkWxoxvmHpxrslBTLmMaAtaOxbuEnvCiItg=
SIZE (podofo-0.9.3.tar.gz) = 1135095

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-CMakeLists_txt,v 1.2 2014/12/12 18:24:44 espie Exp $
--- CMakeLists.txt.orig Wed Dec 12 15:55:46 2012
+++ CMakeLists.txt Fri Dec 12 11:01:44 2014
@@ -282,7 +282,6 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
$OpenBSD: patch-CMakeLists_txt,v 1.3 2015/10/18 13:09:38 sthen Exp $
--- CMakeLists.txt.orig Sun Jun 15 17:53:10 2014
+++ CMakeLists.txt Sun Oct 18 13:51:24 2015
@@ -290,7 +290,6 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
-Wswitch-enum
-Wcast-qual
-Wwrite-strings
@ -9,25 +9,7 @@ $OpenBSD: patch-CMakeLists_txt,v 1.2 2014/12/12 18:24:44 espie Exp $
-Wreorder
#-Wold-style-cast
)
@@ -357,16 +356,8 @@ ELSE(PNG_FOUND)
ENDIF(PNG_FOUND)
-FIND_PACKAGE(CppUnit)
+MESSAGE("Cppunit not found. No unit tests will be built.")
-IF(CppUnit_FOUND)
- MESSAGE("Found cppunit. Unit tests will be built.")
- SET(PODOFO_HAVE_CPPUNIT CppUnit_FOUND)
- INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIR})
-ELSE(CppUnit_FOUND)
- MESSAGE("Cppunit not found. No unit tests will be built.")
-ENDIF(CppUnit_FOUND)
-
FIND_PACKAGE(OpenSSL)
FIND_PACKAGE(FREETYPE REQUIRED)
@@ -505,7 +496,7 @@ SET(PODOFO_LIB
@@ -524,7 +523,7 @@ SET(PODOFO_LIB
#
# Setup directories we will need
#

View File

@ -1,11 +1,11 @@
$OpenBSD: patch-src_base_PdfString_cpp,v 1.1.1.1 2014/04/06 11:31:21 sthen Exp $
$OpenBSD: patch-src_base_PdfString_cpp,v 1.2 2015/10/18 13:09:38 sthen Exp $
For some reason, alloca() doesn't seem to be working from C++ on OpenBSD,
returning a linker error, so convert to malloc() instead.
--- src/base/PdfString.cpp.orig Mon Mar 31 22:47:08 2014
+++ src/base/PdfString.cpp Mon Mar 31 22:50:17 2014
@@ -530,7 +530,11 @@ void PdfString::InitFromUtf8( const pdf_utf8* pszStrin
--- src/base/PdfString.cpp.orig Sun Jun 15 13:53:43 2014
+++ src/base/PdfString.cpp Sun Oct 18 13:51:24 2015
@@ -554,7 +554,11 @@ void PdfString::InitFromUtf8( const pdf_utf8* pszStrin
pdf_long lBufLen = (lLen << 1) + sizeof(wchar_t);
// twice as large buffer should always be enough
@ -18,7 +18,7 @@ returning a linker error, so convert to malloc() instead.
lBufLen = PdfString::ConvertUTF8toUTF16( pszStringUtf8, lLen, pBuffer, lBufLen );
@@ -539,6 +543,7 @@ void PdfString::InitFromUtf8( const pdf_utf8* pszStrin
@@ -563,6 +567,7 @@ void PdfString::InitFromUtf8( const pdf_utf8* pszStrin
memcpy( m_buffer.GetBuffer(), reinterpret_cast<const char*>(pBuffer), lBufLen );
m_buffer.GetBuffer()[lBufLen] = '\0';
m_buffer.GetBuffer()[lBufLen+1] = '\0';

View File

@ -1,11 +1,11 @@
$OpenBSD: patch-src_base_PdfXRefStream_cpp,v 1.1.1.1 2014/04/06 11:31:21 sthen Exp $
$OpenBSD: patch-src_base_PdfXRefStream_cpp,v 1.2 2015/10/18 13:09:38 sthen Exp $
For some reason, alloca() doesn't seem to be working from C++ on OpenBSD,
returning a linker error, so convert to malloc() instead.
--- src/base/PdfXRefStream.cpp.orig Mon Mar 31 22:47:08 2014
+++ src/base/PdfXRefStream.cpp Mon Mar 31 22:51:31 2014
@@ -64,7 +64,11 @@ void PdfXRefStream::WriteSubSection( PdfOutputDevice*,
--- src/base/PdfXRefStream.cpp.orig Fri May 2 23:17:50 2014
+++ src/base/PdfXRefStream.cpp Sun Oct 18 13:51:24 2015
@@ -77,7 +77,11 @@ void PdfXRefStream::WriteSubSection( PdfOutputDevice*,
void PdfXRefStream::WriteXRefEntry( PdfOutputDevice*, pdf_uint64 offset, pdf_gennum generation,
char cMode, pdf_objnum objectNumber )
{
@ -18,11 +18,11 @@ returning a linker error, so convert to malloc() instead.
if( cMode == 'n' && objectNumber == m_pObject->Reference().ObjectNumber() )
m_offset = offset;
@@ -76,6 +80,7 @@ void PdfXRefStream::WriteXRefEntry( PdfOutputDevice*,
memcpy( &buffer[1], reinterpret_cast<const char*>(&offset_be), sizeof(pdf_uint64) );
@@ -89,6 +93,7 @@ void PdfXRefStream::WriteXRefEntry( PdfOutputDevice*,
memcpy( &buffer[1], reinterpret_cast<const char*>(&offset_be), sizeof(pdf_uint32) );
m_pObject->GetStream()->Append( buffer, m_bufferLen );
+ free(buffer);
}
void PdfXRefStream::EndWrite( PdfOutputDevice* pDevice )
void PdfXRefStream::EndWrite( PdfOutputDevice* pDevice )

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/04/06 11:31:21 sthen Exp $
@comment $OpenBSD: PLIST,v 1.2 2015/10/18 13:09:38 sthen Exp $
@bin bin/podofobox
@bin bin/podofocolor
@bin bin/podofocountpages
@ -35,6 +35,7 @@ include/podofo/base/PdfEncoding.h
include/podofo/base/PdfEncodingFactory.h
include/podofo/base/PdfEncrypt.h
include/podofo/base/PdfError.h
include/podofo/base/PdfExtension.h
include/podofo/base/PdfFileStream.h
include/podofo/base/PdfFilter.h
include/podofo/base/PdfFiltersPrivate.h
@ -55,6 +56,7 @@ include/podofo/base/PdfRect.h
include/podofo/base/PdfRefCountedBuffer.h
include/podofo/base/PdfRefCountedInputDevice.h
include/podofo/base/PdfReference.h
include/podofo/base/PdfSigIncWriter.h
include/podofo/base/PdfStream.h
include/podofo/base/PdfString.h
include/podofo/base/PdfTokenizer.h
@ -102,6 +104,7 @@ include/podofo/doc/PdfFontTTFSubset.h
include/podofo/doc/PdfFontTrueType.h
include/podofo/doc/PdfFontType1.h
include/podofo/doc/PdfFontType1Base14.h
include/podofo/doc/PdfFontType3.h
include/podofo/doc/PdfFunction.h
include/podofo/doc/PdfHintStream.h
include/podofo/doc/PdfIdentityEncoding.h
@ -116,19 +119,25 @@ include/podofo/doc/PdfPagesTreeCache.h
include/podofo/doc/PdfPainter.h
include/podofo/doc/PdfPainterMM.h
include/podofo/doc/PdfShadingPattern.h
include/podofo/doc/PdfSigIncMemDocument.h
include/podofo/doc/PdfSigIncPainter.h
include/podofo/doc/PdfSigIncSignatureField.h
include/podofo/doc/PdfSignOutputDevice.h
include/podofo/doc/PdfSignatureField.h
include/podofo/doc/PdfStreamedDocument.h
include/podofo/doc/PdfTable.h
include/podofo/doc/PdfTilingPattern.h
include/podofo/doc/PdfXObject.h
include/podofo/podofo-base.h
include/podofo/podofo.h
lib/libpodofo.a
@lib lib/libpodofo.so.${LIBpodofo_VERSION}
@man man/man1/podofobox.1
@man man/man1/podofocolor.1
@man man/man1/podofocountpages.1
@man man/man1/podofocrop.1
@man man/man1/podofoencrypt.1
@man man/man1/podofogc.1
@man man/man1/podofoimg2pdf.1
@man man/man1/podofoimgextract.1
@man man/man1/podofoimpose.1