mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
GS: bump (#4438)
This commit is contained in:
153
app-text/ghostscript_gpl/ghostscript_gpl-9.50.recipe
Normal file
153
app-text/ghostscript_gpl/ghostscript_gpl-9.50.recipe
Normal file
@@ -0,0 +1,153 @@
|
||||
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-2019 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="db9bb0817b6f22974e6d5ad751975f346420c2c86a0afcfe6b4e09c47803e7d4"
|
||||
SOURCE_DIR="ghostscript-$portVersion"
|
||||
PATCHES="ghostscript_gpl-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, 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:gsc
|
||||
cmd:gsbj
|
||||
cmd:gsdj
|
||||
cmd:gsdj500
|
||||
cmd:gslj
|
||||
cmd:gslp
|
||||
cmd:gsnd
|
||||
cmd:gsx
|
||||
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
|
||||
lib:libgs$secondaryArchSuffix = 9 compat >= 9
|
||||
"
|
||||
|
||||
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
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ghostscript_gpl${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgs$secondaryArchSuffix = 9 compat >= 9
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
ghostscript_gpl$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
|
||||
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:autoconf
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:grep
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
defineDebugInfoPackage ghostscript_gpl$secondaryArchSuffix \
|
||||
"$commandBinDir"/gs \
|
||||
"$libDir"/libgs.so.9
|
||||
|
||||
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}
|
||||
|
||||
autoconf
|
||||
|
||||
# Do configure
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir \
|
||||
--with-fontpath="$FONTPATH"
|
||||
|
||||
# Do make
|
||||
make $jobArgs
|
||||
make so $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
make soinstall
|
||||
|
||||
prepareInstalledDevelLib libgs
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
From 476a63ad1478ae24038f38edf61ef26c18a9c5f9 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 10 Mar 2019 13:45:11 +0100
|
||||
Subject: Fix build on x86 32bit
|
||||
|
||||
Conflict of macro name with a struct field in one of our headers.
|
||||
|
||||
diff --git a/psi/estack.h b/psi/estack.h
|
||||
index f48c726..4a59ff9 100644
|
||||
--- a/psi/estack.h
|
||||
+++ b/psi/estack.h
|
||||
@@ -18,6 +18,8 @@
|
||||
#ifndef estack_INCLUDED
|
||||
# define estack_INCLUDED
|
||||
|
||||
+#include <signal.h> /* before we #define esp, which prevents it from building */
|
||||
+
|
||||
#include "iestack.h"
|
||||
#include "icstate.h" /* for access to exec_stack */
|
||||
|
||||
--
|
||||
2.19.1
|
||||
|
||||
|
||||
From 0e065ed8df55ba2742d6567f8e4148edf0f17bea Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Wed, 13 Mar 2019 21:14:28 +0100
|
||||
Subject: fix building shared libs
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 8ecaccc..c52a2c3 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -2396,7 +2396,7 @@ else
|
||||
DLL_EXT=".dll"
|
||||
SO_LIB_VERSION_SEPARATOR="-"
|
||||
;;
|
||||
- *BSD)
|
||||
+ *BSD|Haiku*)
|
||||
DYNAMIC_CFLAGS="-fPIC"
|
||||
GS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GS_SONAME_MAJOR)"
|
||||
PCL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PCL_SONAME_MAJOR)"
|
||||
--
|
||||
2.19.1
|
||||
|
||||
Reference in New Issue
Block a user