aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-02-13 10:31:18 +0800
committerhrs <hrs@FreeBSD.org>2012-02-13 10:31:18 +0800
commit20d11dfd728b24f804713a6222cd4843b6cc3bc9 (patch)
treefa5475b280f8b7afb24dcaa5a0688130d484f75f /print
parentab477ddf0f2a40f6afbee8d093e67bfa6e50836f (diff)
downloadfreebsd-ports-gnome-20d11dfd728b24f804713a6222cd4843b6cc3bc9.tar.gz
freebsd-ports-gnome-20d11dfd728b24f804713a6222cd4843b6cc3bc9.tar.zst
freebsd-ports-gnome-20d11dfd728b24f804713a6222cd4843b6cc3bc9.zip
Add missing patches. This should fix build on !amd64 platforms.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript9/Makefile2
-rw-r--r--print/ghostscript9/files/patch-base-Makefile.in11
-rw-r--r--print/ghostscript9/files/patch-base-openjpeg.mak11
-rw-r--r--print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_includes.h11
-rw-r--r--print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_malloc.h11
5 files changed, 44 insertions, 2 deletions
diff --git a/print/ghostscript9/Makefile b/print/ghostscript9/Makefile
index 24c3dc71ab1d..2d9204301e85 100644
--- a/print/ghostscript9/Makefile
+++ b/print/ghostscript9/Makefile
@@ -44,7 +44,7 @@ USE_AUTOTOOLS= autoconf
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
-MAKE_ENV= CFLAGS_STANDARD="${CFLAGS} -g" \
+MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \
XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \
EXTRALIBS="${EXTRALIBS}" \
SOC_LOADER="dxmainc.c"
diff --git a/print/ghostscript9/files/patch-base-Makefile.in b/print/ghostscript9/files/patch-base-Makefile.in
index b276f1bd3f27..a191e8947e82 100644
--- a/print/ghostscript9/files/patch-base-Makefile.in
+++ b/print/ghostscript9/files/patch-base-Makefile.in
@@ -1,5 +1,5 @@
--- base/Makefile.in.orig 2012-02-08 17:48:48.000000000 +0900
-+++ base/Makefile.in 2012-02-13 00:28:00.000000000 +0900
++++ base/Makefile.in 2012-02-13 11:01:06.000000000 +0900
@@ -48,9 +48,8 @@
# the directories also define the default search path for the
# initialization files (gs_*.ps) and the fonts.
@@ -45,6 +45,15 @@
ZSRCDIR=@ZLIBDIR@
#ZLIB_NAME=gz
ZLIB_NAME=z
+@@ -250,7 +249,7 @@
+ JPX_LIB=@JPX_DECODER@
+ SHARE_JPX=@SHARE_JPX@
+ JPXSRCDIR=@JPXDIR@
+-JPX_CFLAGS=@JPX_AUTOCONF_CFLAGS@
++JPX_CFLAGS=@JPX_AUTOCONF_CFLAGS@ -ffast-math -DOPJ_STATIC -std=c99
+
+ # uncomment the following three lines and one of the last two to
+ # compile in the Luratech lwf_jp2 codec
@@ -330,7 +329,7 @@
# Define the added flags for standard, debugging, profiling
# and shared object builds.
diff --git a/print/ghostscript9/files/patch-base-openjpeg.mak b/print/ghostscript9/files/patch-base-openjpeg.mak
new file mode 100644
index 000000000000..f8d9bae3f8ab
--- /dev/null
+++ b/print/ghostscript9/files/patch-base-openjpeg.mak
@@ -0,0 +1,11 @@
+--- base/openjpeg.mak.orig 2012-02-13 10:49:36.000000000 +0900
++++ base/openjpeg.mak 2012-02-13 10:57:41.000000000 +0900
+@@ -101,7 +101,7 @@
+ $(SETMOD) $(OPEN_JPEG_GEN)openjpeg_0 $(open_jpeg_OBJS)
+
+ # define our specific compiler
+-OPEN_JPEG_CC=$(CC) $(CFLAGS) $(D_)OPJ_STATIC$(_D) $(I_)$(OPEN_JPEG_GEN)$(_I) $(I_)$(JPX_OPENJPEG_I_)$(_I) $(I_)$(JPX_OPENJPEG_I_)$(D)..$(_I) $(JPXCF_)
++OPEN_JPEG_CC=$(CC) $(JPX_CFLAGS) $(CFLAGS) $(D_)OPJ_STATIC$(_D) $(I_)$(OPEN_JPEG_GEN)$(_I) $(I_)$(JPX_OPENJPEG_I_)$(_I) $(I_)$(JPX_OPENJPEG_I_)$(D)..$(_I) $(JPXCF_)
+ OPEN_JPEG_O=$(O_)$(OPEN_JPEG_OBJ)$(OPEN_JPEG_PREFIX)
+
+ OPEN_JPEG_DEP=$(AK) $(OPEN_JPEG_MAK)
diff --git a/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_includes.h b/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_includes.h
new file mode 100644
index 000000000000..67591744852e
--- /dev/null
+++ b/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_includes.h
@@ -0,0 +1,11 @@
+--- openjpeg/libopenjpeg/opj_includes.h.orig 2012-02-13 08:48:33.000000000 +0900
++++ openjpeg/libopenjpeg/opj_includes.h 2012-02-13 08:50:41.000000000 +0900
+@@ -77,7 +77,7 @@
+ #endif /* INLINE */
+
+ /* Are restricted pointers available? (C99) */
+-#if (__STDC_VERSION__ != 199901L)
++#if defined(__STDC_VERSION__) && (__STDC_VERSION__ != 199901L)
+ /* Not a C99 compiler */
+ #ifdef __GNUC__
+ #define restrict __restrict__
diff --git a/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_malloc.h b/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_malloc.h
new file mode 100644
index 000000000000..a2c27a03a799
--- /dev/null
+++ b/print/ghostscript9/files/patch-openjpeg-libopenjpeg-opj_malloc.h
@@ -0,0 +1,11 @@
+--- openjpeg/libopenjpeg/opj_malloc.h.orig 2012-02-08 17:48:48.000000000 +0900
++++ openjpeg/libopenjpeg/opj_malloc.h 2012-02-13 11:12:27.000000000 +0900
+@@ -83,6 +83,8 @@
+ #else /* Not _WIN32 */
+ #if defined(__sun)
+ #define HAVE_MEMALIGN
++ #elif defined(__FreeBSD__)
++ #undef HAVE_MEMALIGN
+ /* Linux x86_64 and OSX always align allocations to 16 bytes */
+ #elif !defined(__amd64__) && !defined(__APPLE__)
+ #define HAVE_MEMALIGN