summaryrefslogtreecommitdiff
path: root/print/pdflib-lite
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2008-06-02 16:46:42 +0000
committerdrochner <drochner@pkgsrc.org>2008-06-02 16:46:42 +0000
commit847b66bcf7072fe552ce5cca77dc3579f33a8868 (patch)
treed744115b00af9f5855b17e3d295cfe5fb2e42dc7 /print/pdflib-lite
parent387d4876973ea839e486ef599781107c02e0a758 (diff)
downloadpkgsrc-847b66bcf7072fe552ce5cca77dc3579f33a8868.tar.gz
make it build on DragonFly/FreeBSD, from Hasso Tepper per PR pkg/38832
Diffstat (limited to 'print/pdflib-lite')
-rw-r--r--print/pdflib-lite/distinfo4
-rw-r--r--print/pdflib-lite/patches/patch-aa16
-rw-r--r--print/pdflib-lite/patches/patch-ab31
3 files changed, 50 insertions, 1 deletions
diff --git a/print/pdflib-lite/distinfo b/print/pdflib-lite/distinfo
index 515e3b3a2fa..40a801fa1da 100644
--- a/print/pdflib-lite/distinfo
+++ b/print/pdflib-lite/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/05/15 20:06:03 drochner Exp $
+$NetBSD: distinfo,v 1.2 2008/06/02 16:46:42 drochner Exp $
SHA1 (PDFlib-Lite-7.0.3.tar.gz) = f63950303de23b9c13e9fdf5d6aa6ecae1ddc542
RMD160 (PDFlib-Lite-7.0.3.tar.gz) = 90f91e2ff08e0280dce63801899162411889f0b7
Size (PDFlib-Lite-7.0.3.tar.gz) = 5898798 bytes
+SHA1 (patch-aa) = a01fa6d85d550f203982a17a898929a8cd94a492
+SHA1 (patch-ab) = b6278ca1573225e4cd462b88064a800acd19d504
diff --git a/print/pdflib-lite/patches/patch-aa b/print/pdflib-lite/patches/patch-aa
new file mode 100644
index 00000000000..75010e7e08c
--- /dev/null
+++ b/print/pdflib-lite/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2008/06/02 16:46:42 drochner Exp $
+
+--- libs/pdflib/p_document.c.orig 2008-06-02 12:35:41 +0300
++++ libs/pdflib/p_document.c 2008-06-02 12:39:01 +0300
+@@ -1358,7 +1358,11 @@ pdf__begin_document(PDF *p, const char *
+ #endif
+
+ doc->fp = fp;
++#ifdef __DragonFly__
++ doc->len = sizeof(struct __FILE_public);
++#else
+ doc->len = sizeof(FILE);
++#endif
+ }
+ else if (filename && (*filename || len > 0))
+ {
diff --git a/print/pdflib-lite/patches/patch-ab b/print/pdflib-lite/patches/patch-ab
new file mode 100644
index 00000000000..e2e8cee1838
--- /dev/null
+++ b/print/pdflib-lite/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2008/06/02 16:46:42 drochner Exp $
+
+--- configure.orig 2008-06-02 13:09:29 +0300
++++ configure 2008-06-02 13:13:20 +0300
+@@ -3839,7 +3839,7 @@ darwin* | rhapsody*)
+ esac
+ ;;
+
+-freebsd*)
++freebsd*|dragonfly*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -6113,7 +6113,7 @@ else
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd*|dragonfly*)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -6576,7 +6576,7 @@ freebsd1*)
+ dynamic_linker=no
+ ;;
+
+-freebsd*)
++freebsd*|dragonfly*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in