View | Details | Raw Unified | Return to bug 166038
Collapse All | Expand All

(-)graphics/podofo/Makefile (-18 / +32 lines)
Lines 7-16 Link Here
7
7
8
PORTNAME=	podofo
8
PORTNAME=	podofo
9
PORTVERSION=	0.9.1
9
PORTVERSION=	0.9.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	graphics print
11
CATEGORIES=	graphics print
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
13
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	PDF manipulation library and tools
15
COMMENT=	PDF manipulation library and tools
Lines 18-50 Link Here
18
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
17
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
19
		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
18
		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
20
19
20
LICENSE=	GPLv2 LGPL21
21
LICENSE_COMB=	multi
22
21
OPTIONS=	JPEG "Enable JPEG support" on \
23
OPTIONS=	JPEG "Enable JPEG support" on \
22
		TIFF "Enable TIFF support" on \
24
		TIFF "Enable TIFF support" on \
25
		PNG "Enable PNG support" on \
23
		IMPOSE "Build impose tool (needs Lua)" off
26
		IMPOSE "Build impose tool (needs Lua)" off
24
27
25
USE_CMAKE=	yes
28
USE_CMAKE=	yes
26
USE_LDCONFIG=	yes
29
CMAKE_ARGS=	-DPODOFO_BUILD_SHARED:BOOL=TRUE \
27
CMAKE_ARGS+=	-DPODOFO_BUILD_SHARED:BOOL=TRUE \
28
		-DPODOFO_BUILD_STATIC:BOOL=FALSE
30
		-DPODOFO_BUILD_STATIC:BOOL=FALSE
31
USE_LDCONFIG=	yes
32
MAKE_JOBS_SAFE=	yes
29
33
30
.include <bsd.port.pre.mk>
34
MAN1=		podofobox.1 podofocountpages.1 podofocrop.1 \
31
35
		podofoencrypt.1 podofoimg2pdf.1 podofoimgextract.1 \
32
MAN1=		podofobox.1 podofoxmp.1 podofouncompress.1 podofomerge.1 \
36
		podofoimpose.1 podofoincrementalupdates.1 podofomerge.1 \
33
		podofoimgextract.1 podofoimg2pdf.1 podofotxtextract.1 \
37
		podofopages.1 podofopdfinfo.1 podofotxt2pdf.1 \
34
		podofoencrypt.1 podofocrop.1 podofopdfinfo.1 podofoimpose.1 \
38
		podofotxtextract.1 podofouncompress.1 podofoxmp.1
35
		podofoincrementalupdates.1 podofocountpages.1 podofopages.1 \
39
36
		podofotxt2pdf.1
40
.include <bsd.port.options.mk>
41
42
.if !defined(WITHOUT_JPEG)
43
LIB_DEPENDS+=	jpeg.11:${PORTSDIR}/graphics/jpeg
44
CMAKE_ARGS+=	-DWANT_LIBJPEG:BOOL=TRUE
45
.endif
37
46
38
.if !defined(WITHOUT_JPEG) || exists(${LOCALBASE}/lib/libjpeg.so)
47
.if !defined(WITHOUT_TIFF)
39
LIB_DEPENDS+=	jpeg:${PORTSDIR}/graphics/jpeg
48
LIB_DEPENDS+=	tiff.4:${PORTSDIR}/graphics/tiff
49
CMAKE_ARGS+=	-DWANT_TIFF:BOOL=TRUE
40
.endif
50
.endif
41
.if !defined(WITHOUT_TIFF) || exists(${LOCALBASE}/lib/libtiff.so)
51
42
LIB_DEPENDS+=	tiff:${PORTSDIR}/graphics/tiff
52
.if !defined(WITHOUT_PNG)
53
LIB_DEPENDS+=	png.6:${PORTSDIR}/graphics/png
54
CMAKE_ARGS+=	-DWANT_PNG:BOOL=TRUE
43
.endif
55
.endif
44
.if defined(WITH_IMPOSE) || exists(${LOCALBASE}/lib/lua51/liblua.so)
56
57
.if defined(WITH_IMPOSE)
45
USE_LUA=	5.1
58
USE_LUA=	5.1
59
CMAKE_ARGS+=	-DWANT_LUA:BOOL=TRUE
46
CPPFLAGS+=	-I${LUA_INCDIR}
60
CPPFLAGS+=	-I${LUA_INCDIR}
47
LDFLAGS+=	-L${LUA_LIBDIR}
61
LDFLAGS+=	-L${LUA_LIBDIR}
48
.endif
62
.endif
49
63
50
.include <bsd.port.post.mk>
64
.include <bsd.port.mk>
(-)graphics/podofo/files/patch-CMakeLists.txt (-11 / +66 lines)
Lines 1-6 Link Here
1
--- CMakeLists.txt.orig	2011-04-26 20:02:47.000000000 +0200
1
--- CMakeLists.txt.orig	2011-04-27 03:02:47.000000000 +0900
2
+++ CMakeLists.txt	2011-12-02 18:44:04.974966708 +0100
2
+++ CMakeLists.txt	2012-03-03 04:27:15.000000000 +0900
3
@@ -485,7 +485,7 @@
3
@@ -309,6 +309,7 @@
4
 FIND_PACKAGE(ZLIB REQUIRED)
5
 MESSAGE("Found zlib headers in ${ZLIB_INCLUDE_DIR}, library at ${ZLIB_LIBRARIES}")
6
 
7
+IF(WANT_LIBJPEG)
8
 FIND_PACKAGE(LIBJPEG)
9
 
10
 IF(LIBJPEG_FOUND)
11
@@ -318,7 +319,9 @@
12
 ELSE(LIBJPEG_FOUND)
13
   MESSAGE("Libjpeg not found. JPEG support will be disabled")
14
 ENDIF(LIBJPEG_FOUND)
15
+ENDIF(WANT_LIBJPEG)
16
 
17
+IF(WANT_TIFF)
18
 FIND_PACKAGE(TIFF)
19
 
20
 IF(TIFF_FOUND)
21
@@ -328,7 +331,9 @@
22
 ELSE(TIFF_FOUND)
23
   MESSAGE("Libtiff not found. TIFF support will be disabled")
24
 ENDIF(TIFF_FOUND)
25
+ENDIF(WANT_TIFF)
26
 
27
+IF(WANT_PNG)
28
 FIND_PACKAGE(PNG)
29
 
30
 IF(PNG_FOUND)
31
@@ -338,8 +343,10 @@
32
 ELSE(PNG_FOUND)
33
   MESSAGE("LibPng not found. PNG support will be disabled")
34
 ENDIF(PNG_FOUND)
35
+ENDIF(WANT_PNG)
36
 
37
 
38
+IF(WANT_CppUnit)
39
 FIND_PACKAGE(CppUnit)
40
 
41
 IF(CppUnit_FOUND)
42
@@ -348,6 +355,7 @@
43
 ELSE(CppUnit_FOUND)
44
   MESSAGE("Cppunit not found. No unit tests will be built.")
45
 ENDIF(CppUnit_FOUND)
46
+ENDIF(WANT_CppUnit)
47
 
48
 FIND_PACKAGE(OpenSSL)
49
 
50
@@ -407,6 +415,7 @@
51
 	ENDIF(NOT WIN32)
52
 ENDIF(DEFINED JPEG_RUNTIME_COMPATIBLE)
53
 
54
+IF(WANT_LUA)
55
 FIND_PACKAGE(LUA)
56
 IF(LUA_FOUND)
57
 	# If we have lua, we can build podofoimpose.
58
@@ -418,6 +427,7 @@
59
 ELSE(LUA_FOUND)
60
 	MESSAGE("Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support")
61
 ENDIF(LUA_FOUND)
62
+ENDIF(WANT_LUA)
63
 
64
 
65
 # Check if we should build a multithreaded version of PoDoFo
66
@@ -485,7 +495,7 @@
4
 #
67
 #
5
 # Setup directories we will need
68
 # Setup directories we will need
6
 #
69
 #
Lines 9-19 Link Here
9
 
72
 
10
 # Create the config file. It'll be appended to as the subdirs run though
73
 # Create the config file. It'll be appended to as the subdirs run though
11
 # then dependency information will be written to it at the end of the
74
 # then dependency information will be written to it at the end of the
12
@@ -503,7 +503,6 @@
13
 IF(NOT PODOFO_BUILD_LIB_ONLY)
14
 ADD_SUBDIRECTORY(test)
15
 ADD_SUBDIRECTORY(tools)
16
-ADD_SUBDIRECTORY(examples)
17
 ADD_SUBDIRECTORY(debian)
18
 ENDIF(NOT PODOFO_BUILD_LIB_ONLY)
19
 
(-)graphics/podofo/pkg-plist (-92 / +92 lines)
Lines 15-125 Link Here
15
bin/podofotxtextract
15
bin/podofotxtextract
16
bin/podofouncompress
16
bin/podofouncompress
17
bin/podofoxmp
17
bin/podofoxmp
18
include/podofo/doc/PdfDifferenceEncoding.h
18
include/podofo/base/Pdf3rdPtyForwardDecl.h
19
include/podofo/doc/PdfFontTTFSubset.h
19
include/podofo/base/PdfArray.h
20
include/podofo/doc/PdfFontFactoryBase14Data.h
20
include/podofo/base/PdfCanvas.h
21
include/podofo/doc/PdfAnnotation.h
21
include/podofo/base/PdfColor.h
22
include/podofo/doc/PdfHintStream.h
22
include/podofo/base/PdfCompilerCompat.h
23
include/podofo/doc/PdfFunction.h
24
include/podofo/doc/PdfXObject.h
25
include/podofo/doc/PdfInfo.h
26
include/podofo/doc/PdfPagesTreeCache.h
27
include/podofo/doc/PdfFontFactory.h
28
include/podofo/doc/PdfImage.h
29
include/podofo/doc/PdfFileSpec.h
30
include/podofo/doc/PdfDestination.h
31
include/podofo/doc/PdfEncodingObjectFactory.h
32
include/podofo/doc/PdfSignOutputDevice.h
33
include/podofo/doc/PdfShadingPattern.h
34
include/podofo/doc/PdfDocument.h
35
include/podofo/doc/PdfIdentityEncoding.h
36
include/podofo/doc/PdfField.h
37
include/podofo/doc/PdfFontCache.h
38
include/podofo/doc/PdfPage.h
39
include/podofo/doc/PdfNamesTree.h
40
include/podofo/doc/PdfPagesTree.h
41
include/podofo/doc/PdfAcroForm.h
42
include/podofo/doc/PdfFontMetricsObject.h
43
include/podofo/doc/PdfFontMetrics.h
44
include/podofo/doc/PdfPainterMM.h
45
include/podofo/doc/PdfTable.h
46
include/podofo/doc/PdfSignatureField.h
47
include/podofo/doc/PdfElement.h
48
include/podofo/doc/PdfFontCID.h
49
include/podofo/doc/PdfFontTrueType.h
50
include/podofo/doc/PdfOutlines.h
51
include/podofo/doc/PdfFontMetricsBase14.h
52
include/podofo/doc/PdfFontType1Base14.h
53
include/podofo/doc/PdfExtGState.h
54
include/podofo/doc/PdfFontMetricsFreetype.h
55
include/podofo/doc/PdfStreamedDocument.h
56
include/podofo/doc/PdfFont.h
57
include/podofo/doc/PdfFontType1.h
58
include/podofo/doc/PdfFontSimple.h
59
include/podofo/doc/PdfAction.h
60
include/podofo/doc/PdfMemDocument.h
61
include/podofo/doc/PdfContents.h
62
include/podofo/doc/PdfPainter.h
63
include/podofo/base/PdfCompilerCompatPrivate.h
23
include/podofo/base/PdfCompilerCompatPrivate.h
64
include/podofo/base/PdfFiltersPrivate.h
24
include/podofo/base/PdfContentsTokenizer.h
65
include/podofo/base/PdfOutputDevice.h
25
include/podofo/base/PdfData.h
66
include/podofo/base/PdfRect.h
26
include/podofo/base/PdfDataType.h
67
include/podofo/base/PdfObject.h
27
include/podofo/base/PdfDate.h
28
include/podofo/base/PdfDefines.h
29
include/podofo/base/PdfDefinesPrivate.h
30
include/podofo/base/PdfDictionary.h
31
include/podofo/base/PdfEncoding.h
68
include/podofo/base/PdfEncodingFactory.h
32
include/podofo/base/PdfEncodingFactory.h
69
include/podofo/base/PdfEncrypt.h
33
include/podofo/base/PdfEncrypt.h
70
include/podofo/base/PdfWriter.h
71
include/podofo/base/PdfError.h
34
include/podofo/base/PdfError.h
72
include/podofo/base/PdfArray.h
35
include/podofo/base/PdfFileStream.h
73
include/podofo/base/PdfMemoryManagement.h
36
include/podofo/base/PdfFilter.h
37
include/podofo/base/PdfFiltersPrivate.h
38
include/podofo/base/PdfImmediateWriter.h
39
include/podofo/base/PdfInputDevice.h
40
include/podofo/base/PdfInputStream.h
74
include/podofo/base/PdfLocale.h
41
include/podofo/base/PdfLocale.h
75
include/podofo/base/PdfCompilerCompat.h
42
include/podofo/base/PdfMemStream.h
43
include/podofo/base/PdfMemoryManagement.h
44
include/podofo/base/PdfName.h
45
include/podofo/base/PdfObject.h
46
include/podofo/base/PdfObjectStreamParserObject.h
47
include/podofo/base/PdfOutputDevice.h
76
include/podofo/base/PdfOutputStream.h
48
include/podofo/base/PdfOutputStream.h
77
include/podofo/base/PdfColor.h
49
include/podofo/base/PdfParser.h
78
include/podofo/base/PdfContentsTokenizer.h
50
include/podofo/base/PdfParserObject.h
79
include/podofo/base/PdfFilter.h
51
include/podofo/base/PdfRect.h
80
include/podofo/base/PdfDefines.h
81
include/podofo/base/podofo_config.h
82
include/podofo/base/PdfTokenizer.h
83
include/podofo/base/podofoapi.h
84
include/podofo/base/PdfVecObjects.h
85
include/podofo/base/PdfRefCountedBuffer.h
52
include/podofo/base/PdfRefCountedBuffer.h
86
include/podofo/base/PdfData.h
53
include/podofo/base/PdfRefCountedInputDevice.h
87
include/podofo/base/PdfReference.h
54
include/podofo/base/PdfReference.h
88
include/podofo/base/PdfXRef.h
55
include/podofo/base/PdfRijndael.h
89
include/podofo/base/PdfCanvas.h
56
include/podofo/base/PdfStream.h
90
include/podofo/base/PdfObjectStreamParserObject.h
57
include/podofo/base/PdfString.h
91
include/podofo/base/PdfDate.h
58
include/podofo/base/PdfTokenizer.h
92
include/podofo/base/PdfInputDevice.h
59
include/podofo/base/PdfVariant.h
93
include/podofo/base/PdfDataType.h
60
include/podofo/base/PdfVecObjects.h
94
include/podofo/base/PdfVersion.h
61
include/podofo/base/PdfVersion.h
95
include/podofo/base/PdfXRefStreamParserObject.h
62
include/podofo/base/PdfWriter.h
96
include/podofo/base/PdfImmediateWriter.h
63
include/podofo/base/PdfXRef.h
97
include/podofo/base/PdfDictionary.h
98
include/podofo/base/PdfParser.h
99
include/podofo/base/PdfXRefStream.h
64
include/podofo/base/PdfXRefStream.h
100
include/podofo/base/PdfDefinesPrivate.h
65
include/podofo/base/PdfXRefStreamParserObject.h
101
include/podofo/base/util/PdfMutexWrapper.h
66
include/podofo/base/podofo_config.h
102
include/podofo/base/util/PdfMutexImpl_win32.h
67
include/podofo/base/podofoapi.h
103
include/podofo/base/util/PdfMutexImpl_pthread.h
104
include/podofo/base/util/PdfMutexImpl_noop.h
105
include/podofo/base/util/PdfMutex.h
68
include/podofo/base/util/PdfMutex.h
106
include/podofo/base/PdfName.h
69
include/podofo/base/util/PdfMutexImpl_noop.h
107
include/podofo/base/Pdf3rdPtyForwardDecl.h
70
include/podofo/base/util/PdfMutexImpl_pthread.h
108
include/podofo/base/PdfRefCountedInputDevice.h
71
include/podofo/base/util/PdfMutexImpl_win32.h
109
include/podofo/base/PdfInputStream.h
72
include/podofo/base/util/PdfMutexWrapper.h
110
include/podofo/base/PdfString.h
73
include/podofo/doc/PdfAcroForm.h
111
include/podofo/base/PdfVariant.h
74
include/podofo/doc/PdfAction.h
112
include/podofo/base/PdfEncoding.h
75
include/podofo/doc/PdfAnnotation.h
113
include/podofo/base/PdfParserObject.h
76
include/podofo/doc/PdfContents.h
114
include/podofo/base/PdfRijndael.h
77
include/podofo/doc/PdfDestination.h
115
include/podofo/base/PdfMemStream.h
78
include/podofo/doc/PdfDifferenceEncoding.h
116
include/podofo/base/PdfFileStream.h
79
include/podofo/doc/PdfDocument.h
117
include/podofo/base/PdfStream.h
80
include/podofo/doc/PdfElement.h
118
include/podofo/podofo.h
81
include/podofo/doc/PdfEncodingObjectFactory.h
82
include/podofo/doc/PdfExtGState.h
83
include/podofo/doc/PdfField.h
84
include/podofo/doc/PdfFileSpec.h
85
include/podofo/doc/PdfFont.h
86
include/podofo/doc/PdfFontCID.h
87
include/podofo/doc/PdfFontCache.h
88
include/podofo/doc/PdfFontFactory.h
89
include/podofo/doc/PdfFontFactoryBase14Data.h
90
include/podofo/doc/PdfFontMetrics.h
91
include/podofo/doc/PdfFontMetricsBase14.h
92
include/podofo/doc/PdfFontMetricsFreetype.h
93
include/podofo/doc/PdfFontMetricsObject.h
94
include/podofo/doc/PdfFontSimple.h
95
include/podofo/doc/PdfFontTTFSubset.h
96
include/podofo/doc/PdfFontTrueType.h
97
include/podofo/doc/PdfFontType1.h
98
include/podofo/doc/PdfFontType1Base14.h
99
include/podofo/doc/PdfFunction.h
100
include/podofo/doc/PdfHintStream.h
101
include/podofo/doc/PdfIdentityEncoding.h
102
include/podofo/doc/PdfImage.h
103
include/podofo/doc/PdfInfo.h
104
include/podofo/doc/PdfMemDocument.h
105
include/podofo/doc/PdfNamesTree.h
106
include/podofo/doc/PdfOutlines.h
107
include/podofo/doc/PdfPage.h
108
include/podofo/doc/PdfPagesTree.h
109
include/podofo/doc/PdfPagesTreeCache.h
110
include/podofo/doc/PdfPainter.h
111
include/podofo/doc/PdfPainterMM.h
112
include/podofo/doc/PdfShadingPattern.h
113
include/podofo/doc/PdfSignOutputDevice.h
114
include/podofo/doc/PdfSignatureField.h
115
include/podofo/doc/PdfStreamedDocument.h
116
include/podofo/doc/PdfTable.h
117
include/podofo/doc/PdfXObject.h
119
include/podofo/podofo-base.h
118
include/podofo/podofo-base.h
120
lib/libpodofo.so.0
119
include/podofo/podofo.h
121
lib/libpodofo.so
120
lib/libpodofo.so
121
lib/libpodofo.so.0
122
@dirrm include/podofo/doc
122
@dirrm include/podofo/base/util
123
@dirrm include/podofo/base/util
123
@dirrm include/podofo/base
124
@dirrm include/podofo/base
124
@dirrm include/podofo/doc
125
@dirrm include/podofo
125
@dirrm include/podofo

Return to bug 166038