ghostscript8: actually build the BeOS code

This commit is contained in:
Adrien Destugues
2019-03-23 08:34:29 +01:00
parent 8c49c4036c
commit bf8925cd19
3 changed files with 360 additions and 52 deletions

View File

@@ -6,8 +6,8 @@ description language files, for the display or printing of document pages, and \
the conversion between PostScript and PDF files."
HOMEPAGE="https://ghostscript.com/"
COPYRIGHT="2001-2018 Artifex Software, Inc."
LICENSE="AGPL-3.0"
REVISION="1"
LICENSE="AFPL"
REVISION="2"
SOURCE_URI="https://sourceforge.net/projects/ghostscript/files/AFPL%20Ghostscript/$portVersion/ghostscript-$portVersion.tar.gz"
CHECKSUM_SHA256="343aaf45cd52539a04ec2172259c8c39b87f613e1a493c74a275350a1ecc6b6a"
SOURCE_DIR="ghostscript-$portVersion"
@@ -23,7 +23,7 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
fi
PROVIDES="
ghostscript_gpl$secondaryArchSuffix = $portVersion
ghostscript8$secondaryArchSuffix = $portVersion
cmd:bdftops
cmd:dvipdf
cmd:eps2eps
@@ -69,18 +69,17 @@ REQUIRES="
lib:libjpeg$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
lib:libpaper$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
ghostscript_gpl${secondaryArchSuffix}_devel = $portVersion
ghostscript8${secondaryArchSuffix}_devel = $portVersion
devel:libgs$secondaryArchSuffix = 8.14 compat >= 8
"
REQUIRES_devel="
ghostscript_gpl$secondaryArchSuffix == $portVersion base
ghostscript8$secondaryArchSuffix == $portVersion base
"
@@ -93,7 +92,6 @@ BUILD_REQUIRES="
devel:libjpeg$secondaryArchSuffix
devel:liblcms2$secondaryArchSuffix
devel:libpaper$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
@@ -108,12 +106,23 @@ BUILD_PREREQUIRES="
cmd:sed
"
defineDebugInfoPackage ghostscript_gpl$secondaryArchSuffix \
defineDebugInfoPackage ghostscript8$secondaryArchSuffix \
"$commandBinDir"/gs \
"$libDir"/libgs.so.8.14
BUILD()
{
# Set up fonts paths
local FONTPATH
for path in \
$(findpaths B_FIND_PATH_FONTS_DIRECTORY otfonts) \
$(findpaths B_FIND_PATH_FONTS_DIRECTORY psfonts) \
$(findpaths B_FIND_PATH_FONTS_DIRECTORY ttfonts) \
$(findpaths B_FIND_PATH_FONTS_DIRECTORY X11)
do
FONTPATH="$FONTPATH${FONTPATH:+:}$path"
done
# Force configure to use system-libs
rm -rf {freetype,jbig2dec,jpeg,lcms2,libpng,tiff,zlib}
@@ -121,11 +130,11 @@ BUILD()
# Do configure
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir EXTRALIBS=-lbe\
--bindir=$commandBinDir --with-fontpath="$FONTPATH" EXTRALIBS=-lbe
# Do make
EXTRALIBS=-lbe make
EXTRALIBS=-lbe make so
make
make so
}
INSTALL()