From dde213c0bad69af070eba316a73fc0dc2f40301b Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Mar 26 2019 08:07:11 +0000 Subject: vars/build.vars:native_packages_etc: adds ghostscript v9.26 (via Redfoxmoon.) patches/ghostscript-9.26.local.patch: via Redfoxmoon. vars/ghostscript.vars: via Redfoxmoon. --- diff --git a/patches/ghostscript-9.26.local.patch b/patches/ghostscript-9.26.local.patch new file mode 100644 index 0000000..b38b40c --- /dev/null +++ b/patches/ghostscript-9.26.local.patch @@ -0,0 +1,24 @@ +diff -ru ghostscript-9.26.orig/configure ghostscript-9.26/configure +--- ghostscript-9.26.orig/configure 2018-11-20 11:08:58.000000000 +0100 ++++ ghostscript-9.26/configure 2019-03-25 13:54:01.738597533 +0100 +@@ -3787,7 +3787,7 @@ + echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in + echo $AUXFLAGS_MAK_LINE07 >> $AUXFLAGS_MAK.in + +- ../$0 CC="$CCAUX" CFLAGS="$CFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host= --build= --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-fapi --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-luratech --without-jbig2dec --without-x --with-drivers="" ++ $0 CC="$CCAUX" CFLAGS="$CFLAGSAUX" LDFLAGS="$LDFLAGSAUX" CCAUX= CFLAGSAUX= CFLAGSAUX= MAKEFILE=$AUXFLAGS_MAK --host= --build= --without-libtiff --disable-contrib --disable-fontconfig --disable-dbus --disable-freetype --disable-fapi --disable-cups --disable-openjpeg --disable-gtk --with-libiconv=no --without-libidn --without-libpaper --without-pdftoraster --without-ijs --without-luratech --without-jbig2dec --without-x --with-drivers="" + status=$? + cp config.log ../configaux.log + if test $status -eq 0 ; then +diff -ru ghostscript-9.26.orig/devices/devs.mak ghostscript-9.26/devices/devs.mak +--- ghostscript-9.26.orig/devices/devs.mak 2018-11-20 11:08:19.000000000 +0100 ++++ ghostscript-9.26/devices/devs.mak 2019-03-25 16:52:13.774662402 +0100 +@@ -308,7 +308,7 @@ + + # See the main makefile for the definition of XLIBDIRS and XLIBS. + x11_=$(DEVOBJ)gdevx.$(OBJ) $(DEVOBJ)gdevxcmp.$(OBJ) $(DEVOBJ)gdevxini.$(OBJ)\ +- $(DEVOBJ)gdevxres.$(OBJ) $(DEVOBJ)gsparamx.$(OBJ) ++ $(DEVOBJ)gdevxres.$(OBJ) $(DEVOBJ)gsparamx.$(OBJ) $(DEVOBJ)gsparam.$(OBJ) $(DEVOBJ)gdevnfwd.$(OBJ) + $(DD)x11_.dev : $(x11_) $(GLD)bboxutil.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS) + $(SETMOD) $(DD)x11_ $(x11_) + $(ADDMOD) $(DD)x11_ -link $(XLIBDIRS) diff --git a/vars/build.vars b/vars/build.vars index cf4e807..b9917ef 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -1237,7 +1237,7 @@ bdwgc bison chicken cparser diffutils flex lunix m4 make mandoc nasm patch patch # # Packages list native_packages_etc NATIVE_PACKAGES_ETC_PACKAGES=" -ca_certificates cron dante debianutils emacs fetchmail ffmpeg gnuchess hexcurse htop icecast isync infounzip +ca_certificates cron dante debianutils emacs fetchmail ffmpeg gnuchess ghostscript hexcurse htop icecast isync infounzip infozip jamvm classpath john less mlogin mc mintty nano ncdu p7zip procps_ng qemu qpdf rdesktop rw rxvt_unicode st tmux tzdb vim xcowsay xeyes xorriso xterm xwd"; : ${PKG_CA_CERTIFICATES_URLS_GIT:="ca-certificates=https://github.com/Redfoxmoon3/ca-certificates@master"}; @@ -1277,6 +1277,12 @@ tmux tzdb vim xcowsay xeyes xorriso xterm xwd"; : ${PKG_GNUCHESS_SHA256SUM:=9a99e963355706cab32099d140b698eda9de164ebce40a5420b1b9772dd04802}; : ${PKG_GNUCHESS_VERSION:=6.2.5}; : ${PKG_GNUCHESS_URL:=http://ftp.gnu.org/gnu/chess/gnuchess-${PKG_GNUCHESS_VERSION}.tar.gz}; +: ${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_HEXCURSE_URLS_GIT:="hexcurse=https://github.com/LonnyGomes/hexcurse@master"}; : ${PKG_HEXCURSE_CFLAGS_CONFIGURE_EXTRA:=-I${PREFIX_NATIVE}/include/ncursesw}; : ${PKG_HTOP_SHA256SUM:=d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57}; diff --git a/vars/ghostscript.vars b/vars/ghostscript.vars new file mode 100644 index 0000000..9b429c9 --- /dev/null +++ b/vars/ghostscript.vars @@ -0,0 +1,12 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_ghostscript_configure_patch_pre() { + ex_rtl_fileop rm "${PKG_BASE_DIR}/ghostscript-9.26/zlib"; + ex_rtl_fileop rm "${PKG_BASE_DIR}/ghostscript-9.26/libpng"; + ex_rtl_fileop rm "${PKG_PREFIX}/freetype"; + ex_rtl_fileop rm "${PKG_PREFIX}/lcms2mt"; +}; + +# vim:filetype=sh