From 9d39f570f6cac00d63a3bafbcb3bce7a005c847c Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Sun, 28 Jul 2013 04:20:32 +0000 Subject: [PATCH] 1: Fix build with newer zlib [1] 2: switch to gcc46. PR: ports/180748 Submitted by: John Marino [1] --- lang/ofc/Makefile | 4 ++-- lang/ofc/files/patch-ofc_DGZipFile.h | 19 +++++++++++++++++++ lang/ofc/files/patch-ofc_DGZipFile.m | 22 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 lang/ofc/files/patch-ofc_DGZipFile.h create mode 100644 lang/ofc/files/patch-ofc_DGZipFile.m diff --git a/lang/ofc/Makefile b/lang/ofc/Makefile index 1b3cea22b28f..0b4e9cb4ca1b 100644 --- a/lang/ofc/Makefile +++ b/lang/ofc/Makefile @@ -18,7 +18,7 @@ LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \ PROJECTHOST= ${PORTNAME} USE_SDL= sdl USE_AUTOTOOLS= libtool -USES= pathfix +USES= pathfix GNU_CONFIGURE= yes USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 ${PTHREAD_CFLAGS} @@ -38,7 +38,7 @@ LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp .if ${OSVERSION} >= 900000 # needs libobjc -GCCSUFFIX=42 +GCCSUFFIX= 46 CC= gcc${GCCSUFFIX} CXX= g++${GCCSUFFIX} OFC_GCC_PORT?= lang/gcc${GCCSUFFIX} diff --git a/lang/ofc/files/patch-ofc_DGZipFile.h b/lang/ofc/files/patch-ofc_DGZipFile.h new file mode 100644 index 000000000000..6423325cb2e9 --- /dev/null +++ b/lang/ofc/files/patch-ofc_DGZipFile.h @@ -0,0 +1,19 @@ +--- ofc/DGZipFile.h.orig 2008-08-02 15:15:11.000000000 +0000 ++++ ofc/DGZipFile.h +@@ -46,6 +46,7 @@ + #endif + + #ifdef HAVE_DGZIPFILE ++#include + + // the seek origins + #define DGZ_SEEK_SET (0) // Seek from the start of the file +@@ -114,7 +115,7 @@ + @interface DGZipFile : Object + { + @private +- void *_file; // the file pointer ++ gzFile _file; // the file pointer + } + + #endif diff --git a/lang/ofc/files/patch-ofc_DGZipFile.m b/lang/ofc/files/patch-ofc_DGZipFile.m new file mode 100644 index 000000000000..68abf4674b44 --- /dev/null +++ b/lang/ofc/files/patch-ofc_DGZipFile.m @@ -0,0 +1,22 @@ +--- ofc/DGZipFile.m.orig 2008-08-02 05:58:14.000000000 +0000 ++++ ofc/DGZipFile.m +@@ -31,10 +31,6 @@ + #include + #include + +-#ifdef HAVE_DGZIPFILE +-#include +-#endif +- + #include "ofc/DDatable.h" + + +@@ -123,7 +119,7 @@ + @interface DGZipFile : Object + { + @private +- void *_file; // the file pointer ++ gzFile _file; // the file pointer + } + + #endif