-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3255 from mariux64/update-ghostscript
Update ghostscript
- Loading branch information
Showing
2 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,44 @@ | ||
#!/bin/env beesh | ||
|
||
# BEE_VERSION ghostscript-9.55.0-1 | ||
# BEE_VERSION ghostscript-10.05.1-0 | ||
|
||
XPKGVERSION_COMPACT=$(echo ${PKGVERSION} | tr -d '.') | ||
|
||
#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" | ||
SRCURL[0]="https://beehive.molgen.mpg.de/40d4284b50b5d6ecc61533e3fdf2ee13/ghostscript-10.05.1.tar.gz" | ||
|
||
build_in_sourcedir | ||
|
||
mee_patch() { | ||
bee_patch "${@}" | ||
sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure | ||
rm -rf freetype lcms2 jpeg libpng openjpeg | ||
sed -i 's/gscms_transformm_color_const/gscms_transform_color_const/' base/gsicc_lcms2.c | ||
rm -r freetype lcms2mt jpeg libpng openjpeg tiff zlib | ||
# libs link unwanted to libgpdl that isn't installed | ||
rm -rf gpdl | ||
# Remove internal CMaps (CMaps from poppler-data are used instead) | ||
rm -r Resource/CMap | ||
} | ||
|
||
mee_configure() { | ||
bee_configure \ | ||
--enable-dynamic \ | ||
--with-drivers=ALL,x11 \ | ||
--with-x \ | ||
--with-drivers=ALL \ | ||
--with-system-libtiff \ | ||
--enable-fontconfig \ | ||
--enable-freetype \ | ||
--enable-openjpeg \ | ||
--disable-compile-inits | ||
} | ||
|
||
mee_build() { | ||
bee_build | ||
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 | ||
install -v -m644 base/*.h ${D}${INCLUDEDIR}/ghostscript && | ||
ln -v -s ghostscript ${D}${INCLUDEDIR}/ps | ||
ln -s /usr/share/poppler/cMap ${D}/usr/share/ghostscript/${PKGVERSION}/Resource/CMap | ||
ln -s gs ${D}/usr/bin/ghostscript | ||
cd ${D} && rm -rf usr/share/doc | ||
} |