Skip to content

Commit

Permalink
ghostscript: update 9.27 to 9.55.0
Browse files Browse the repository at this point in the history
- update
- parallel build
- cleanup
  • Loading branch information
wwwutz committed Nov 22, 2021
1 parent ab9d96c commit 907a0e2
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions ghostscript.be0
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
#!/bin/env beesh

# BEE_VERSION ghostscript-9.27-0
# BEE_VERSION ghostscript-9.55.0-0

XPKGVERSION_COMPACT=$(echo ${PKGVERSION} | tr -d '.')
SRCURL[0]="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${XPKGVERSION_COMPACT}/ghostscript-${PKGVERSION}.tar.gz"

B=${S}
#SRCURL[0]="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${XPKGVERSION_COMPACT}/ghostscript-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/4d3e03b54741265dfbcd24c08a1680a7/ghostscript-9.55.0.tar.gz"

build_in_sourcedir

mee_patch() {
bee_patch ${bee_PATCHFILES[@]}
bee_patch "${@}"
sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure
rm -rf freetype lcms2 jpeg libpng
rm -rf freetype lcms2 jpeg libpng openjpeg
sed -i 's/gscms_transformm_color_const/gscms_transform_color_const/' base/gsicc_lcms2.c
}

mee_configure() {
bee_configure --enable-dynamic --with-drivers=ALL,x11 --with-system-libtiff --disable-compile-inits
bee_configure \
--enable-dynamic \
--with-drivers=ALL,x11 \
--with-system-libtiff \
--disable-compile-inits
}

mee_build() {
bee_build
start_cmd make so
start_cmd make ${BEE_MAKEFLAGS} so
}

mee_install() {
bee_install soinstall

install -v -m644 base/*.h ${D}/${INCLUDEDIR}/ghostscript &&
ln -v -s ghostscript ${D}/${INCLUDEDIR}/ps
cd ${D} && rm -rf usr/share/doc
}

0 comments on commit 907a0e2

Please sign in to comment.