summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-05-09 21:31:29 -0400
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-05-10 06:58:17 +0000
commit2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85 (patch)
tree6d5855993de33d87306b4e11e33a452a1a002ec3
parentefc22a2160a99b53bdb7c58cc827e37ce6a0bfff (diff)
downloadmidipix_build-2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85.tar.bz2
midipix_build-2c2c5b1f48bd1a3ffff20e5b1d476f3b50f3dc85.tar.xz
ghostscript: work around ghostscript's incomplete support of cross-compilation.
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
-rw-r--r--patches/ghostscript-9.26.local.patch32
-rw-r--r--vars/build.vars6
2 files changed, 35 insertions, 3 deletions
diff --git a/patches/ghostscript-9.26.local.patch b/patches/ghostscript-9.26.local.patch
index b38b40c7..e674d312 100644
--- a/patches/ghostscript-9.26.local.patch
+++ b/patches/ghostscript-9.26.local.patch
@@ -22,3 +22,35 @@ diff -ru ghostscript-9.26.orig/devices/devs.mak ghostscript-9.26/devices/devs.ma
$(DD)x11_.dev : $(x11_) $(GLD)bboxutil.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
$(SETMOD) $(DD)x11_ $(x11_)
$(ADDMOD) $(DD)x11_ -link $(XLIBDIRS)
+--- /dev/null 2019-05-07 18:48:18.199999973 -0400
++++ ghostscript-9.26/arch/x86_64-nt64-midipix.h 2019-05-09 22:02:33.196268736 -0400
+@@ -0,0 +1,29 @@
++#define ARCH_ALIGN_SHORT_MOD 2
++#define ARCH_ALIGN_INT_MOD 4
++#define ARCH_ALIGN_LONG_MOD 8
++#define ARCH_ALIGN_PTR_MOD 8
++#define ARCH_ALIGN_FLOAT_MOD 4
++#define ARCH_ALIGN_DOUBLE_MOD 8
++
++#define ARCH_LOG2_SIZEOF_CHAR 0
++#define ARCH_LOG2_SIZEOF_SHORT 1
++#define ARCH_LOG2_SIZEOF_INT 2
++#define ARCH_LOG2_SIZEOF_LONG 3
++#define ARCH_LOG2_SIZEOF_LONG_LONG 3
++#define ARCH_SIZEOF_GX_COLOR_INDEX 8
++#define ARCH_SIZEOF_PTR 8
++#define ARCH_SIZEOF_FLOAT 4
++#define ARCH_SIZEOF_DOUBLE 8
++#define ARCH_FLOAT_MANTISSA_BITS 24
++#define ARCH_DOUBLE_MANTISSA_BITS 53
++
++#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
++#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
++#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
++#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
++
++#define ARCH_IS_BIG_ENDIAN 0
++#define ARCH_PTRS_ARE_SIGNED 0
++#define ARCH_FLOATS_ARE_IEEE 1
++#define ARCH_ARITH_RSHIFT 2
++#define ARCH_DIV_NEG_POS_TRUNCATES 1
diff --git a/vars/build.vars b/vars/build.vars
index 800b00ed..e7f9538d 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -1304,9 +1304,9 @@ tmux tzdb vim xcowsay xeyes xorriso xterm xwd";
: ${PKG_GHOSTSCRIPT_SHA256SUM:=831fc019bd477f7cc2d481dc5395ebfa4a593a95eb2fe1eb231a97e450d7540d};
: ${PKG_GHOSTSCRIPT_VERSION:=9.26};
: ${PKG_GHOSTSCRIPT_URL:=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostscript-${PKG_GHOSTSCRIPT_VERSION}.tar.gz};
-: ${PKG_GHOSTSCRIPT_CONFIGURE_ARGS_EXTRA:="CCAUX=gcc --without-x --disable-compile-inits --enable-dynamic --with-system-libtiff --with-memory-alignment=8"};
-: ${PKG_GHOSTSCRIPT_MAKEFLAGS_BUILD:=-j1};
-: ${PKG_GHOSTSCRIPT_IN_TREE:=1};
+: ${PKG_GHOSTSCRIPT_CONFIGURE_ARGS_EXTRA:="--without-x --disable-compile-inits --enable-dynamic --with-system-libtiff --with-memory-alignment=8"};
+: ${PKG_GHOSTSCRIPT_MAKEFLAGS_BUILD_EXTRA:="CCAUX_=cc:TARGET_ARCH_FILE=${BUILD_WORKDIR}/ghostscript-native-${DEFAULT_TARGET}/ghostscript-${PKG_GHOSTSCRIPT_VERSION}/arch/${DEFAULT_TARGET}.h"}
+: ${PKG_GHOSTSCRIPT_ENV_VARS_EXTRA:="CCAUX=cc:SHARE_ZLIB=-lz"}
: ${PKG_HASTYHEX_URLS_GIT:="hastyhex=https://github.com/skeeto/hastyhex.git@master"};
: ${PKG_HASTYHEX_IN_TREE:=1};
: ${PKG_HASTYHEX_CFLAGS_BUILD_EXTRA:="-g3 -O0 -ansi -pedantic -funroll-loops"};