summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-28 02:29:29 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-28 02:29:29 +0800
commit8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb (patch)
tree9be831ddfe4707459ffb9b0a4302f35f8b942beb
parent1574f827c4531298095da89fad7afbc5d06b9a24 (diff)
downloadmarcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar.gz
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar.bz2
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar.lz
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar.xz
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.tar.zst
marcuscom-ports-8a4b6229c68c59f267ac7bc448f57d2a23a1b6eb.zip
Fix build with new poppler.
Fix by marcus@ git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13053 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/gambas2-gb-pdf/Makefile16
-rw-r--r--graphics/gambas2-gb-pdf/files/patch-gb.pdf_src_CPdfDocument.cpp19
-rw-r--r--graphics/gambas2-gb-pdf/pkg-plist10
3 files changed, 45 insertions, 0 deletions
diff --git a/graphics/gambas2-gb-pdf/Makefile b/graphics/gambas2-gb-pdf/Makefile
new file mode 100644
index 000000000..57b3efa31
--- /dev/null
+++ b/graphics/gambas2-gb-pdf/Makefile
@@ -0,0 +1,16 @@
+# New ports collection makefile for: gambas2-gb-pdf
+# Date created: 2009-05-02
+# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
+#
+# $FreeBSD: ports/graphics/gambas2-gb-pdf/Makefile,v 1.1 2009/05/09 01:29:08 acm Exp $
+#
+
+PORTREVISION= 1
+CATEGORIES= graphics lang
+PKGNAMESUFFIX= -gb-pdf
+
+COMMENT= The gambas pdf component
+
+MASTERDIR= ${.CURDIR}/../../lang/gambas2-base
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/gambas2-gb-pdf/files/patch-gb.pdf_src_CPdfDocument.cpp b/graphics/gambas2-gb-pdf/files/patch-gb.pdf_src_CPdfDocument.cpp
new file mode 100644
index 000000000..65d1f7c27
--- /dev/null
+++ b/graphics/gambas2-gb-pdf/files/patch-gb.pdf_src_CPdfDocument.cpp
@@ -0,0 +1,19 @@
+--- gb.pdf/src/CPdfDocument.cpp.orig 2009-09-27 18:30:35.000000000 +0200
++++ gb.pdf/src/CPdfDocument.cpp 2009-09-27 20:10:45.000000000 +0200
+@@ -510,9 +510,15 @@ END_PROPERTY
+ BEGIN_PROPERTY(PDFINFO_format)
+
+ char *ctx=NULL;
++ double version;
++ int major, minor;
++
++ major = THIS->doc->getPDFMajorVersion();
++ minor = THIS->doc->getPDFMinorVersion();
++ version = (double)(major + minor *0.1);
+
+ GB.Alloc(POINTER(&ctx),16*sizeof(char));
+- snprintf(ctx,16*sizeof(char),"%.2g",THIS->doc->getPDFVersion());
++ snprintf(ctx,16*sizeof(char),"%.2g", version);
+ GB.ReturnNewZeroString(ctx);
+ GB.Free(POINTER(&ctx));
+
diff --git a/graphics/gambas2-gb-pdf/pkg-plist b/graphics/gambas2-gb-pdf/pkg-plist
new file mode 100644
index 000000000..da751be8c
--- /dev/null
+++ b/graphics/gambas2-gb-pdf/pkg-plist
@@ -0,0 +1,10 @@
+@comment $FreeBSD: ports/graphics/gambas2-gb-pdf/pkg-plist,v 1.1 2009/05/09 01:29:08 acm Exp $
+lib/gambas2/gb.pdf.component
+lib/gambas2/gb.pdf.so.0
+lib/gambas2/gb.pdf.so
+lib/gambas2/gb.pdf.la
+%%DATADIR%%/info/gb.pdf.info
+%%DATADIR%%/info/gb.pdf.list
+@dirrmtry lib/gambas2
+@dirrmtry %%DATADIR%%/info
+@dirrmtry %%DATADIR%%