SUMMARY="An interpreter for the PostScript language and for PDF" DESCRIPTION="Ghostscript is a suite of software based on an interpreter for \ Adobe Systems' PostScript and Portable Document Format (PDF) page description \ languages. Its main purposes are the rasterization or rendering of such page \ 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" SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${portVersion/./}/ghostscript-$portVersion.tar.xz" CHECKSUM_SHA256="a2971a23bf15bbd9ddcd173141b15504e51ddc1d5a0a0144b00a6a8b14a62fed" SOURCE_DIR="ghostscript-$portVersion" ARCHITECTURES="!x86_gcc2 ?x86 x86_64" if [ "$targetArchitecture" = x86_gcc2 ]; then SECONDARY_ARCHITECTURES="x86" fi # On x86_gcc2 we don't want to install the commands in bin//, but in bin/. commandBinDir=$binDir if [ "$targetArchitecture" = x86_gcc2 ]; then commandBinDir=$prefix/bin fi PROVIDES=" ghostscript_gpl$secondaryArchSuffix = $portVersion cmd:dvipdf cmd:eps2eps cmd:font2c cmd:gs cmd:gsbj cmd:gsdj cmd:gsdj500 cmd:gslj cmd:gslp cmd:gsnd cmd:lprsetup.sh cmd:pfbtopfa cmd:pdf2dsc cmd:pdf2ps cmd:pf2afm cmd:pphs cmd:printafm cmd:ps2ascii cmd:ps2epsi cmd:ps2pdf cmd:ps2pdfwr cmd:ps2pdf12 cmd:ps2pdf13 cmd:ps2pdf14 cmd:ps2ps cmd:ps2ps2 cmd:unix_lpr.sh cmd:wftopfa " REQUIRES=" haiku$secondaryArchSuffix poppler_data lib:libfontconfig$secondaryArchSuffix lib:libfreetype$secondaryArchSuffix lib:libidn$secondaryArchSuffix lib:libjbig2dec$secondaryArchSuffix lib:libjpeg$secondaryArchSuffix lib:liblcms2$secondaryArchSuffix lib:libpaper$secondaryArchSuffix lib:libpng16$secondaryArchSuffix lib:libtiff$secondaryArchSuffix lib:libz$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libfontconfig$secondaryArchSuffix devel:libfreetype$secondaryArchSuffix devel:libidn$secondaryArchSuffix devel:libjbig2dec$secondaryArchSuffix devel:libjpeg$secondaryArchSuffix devel:liblcms2$secondaryArchSuffix devel:libpaper$secondaryArchSuffix devel:libpng16$secondaryArchSuffix devel:libtiff$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:awk cmd:find cmd:gcc$secondaryArchSuffix cmd:grep cmd:make cmd:pkg_config$secondaryArchSuffix cmd:sed " defineDebugInfoPackage ghostscript_gpl$secondaryArchSuffix \ "$commandBinDir"/gs BUILD() { # Set up fonts paths local FONTPATH for path in \ $(findpath B_FIND_PATH_FONTS_DIRECTORY otfonts) \ $(findpath B_FIND_PATH_FONTS_DIRECTORY psfonts) \ $(findpath B_FIND_PATH_FONTS_DIRECTORY ttfonts) \ $(findpath 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} # Do configure runConfigure --omit-dirs binDir ./configure \ --bindir=$commandBinDir \ --with-fontpath="$FONTPATH" # Do make make $jobArgs } INSTALL() { make install } TEST() { make check }