graphviz: Workaround building ghostscript plugin

This commit is contained in:
Biswapriyo Nath
2023-08-02 20:49:44 +05:30
parent d724492423
commit a566a36dd4
2 changed files with 27 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
--- a/configure.ac
+++ b/configure.ac
@@ -1492,9 +1492,6 @@
if test "x$with_ghostscript" != "xyes"; then
use_ghostscript="No (disabled)"
else
- if test "x$HAVE_XRENDER" != "xyes"; then
- use_ghostscript="No (missing Xrender)"
- else
AC_CHECK_HEADER(ghostscript/iapi.h, GS_CFLAGS="",use_ghostscript="No (missing headers)")
if test "x$use_ghostscript" = "x"; then
AC_CHECK_LIB(gs, main, GS_LIBS="-lgs", use_ghostscript="No (missing lib)")
@@ -1506,7 +1503,6 @@
AC_SUBST([GS_LIBS])
fi
fi
- fi
fi
AM_CONDITIONAL(WITH_GS, [test "x$use_ghostscript" = "xYes"])

View File

@@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-${_realname}-docs")
pkgver=8.1.0
pkgrel=2
pkgrel=3
pkgdesc="Graph Visualization Software (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
@@ -50,7 +50,8 @@ source=(https://gitlab.com/graphviz/graphviz/-/archive/${pkgver}/graphviz-${pkgv
0003-gdiplus-fix-library.patch
0004-gvpr-remove-buiddir.patch
0005-makefile-no-undefined.patch
0006-tclpkg-fix-dll-extension.patch)
0006-tclpkg-fix-dll-extension.patch
0007-graphviz-workaround-ghostscript-check.patch)
noextract=("graphviz-${pkgver}.tar.gz")
sha256sums=('2e4dfee3c24925ad51d1e76a9fb2b19b26a5a0049ef7be6d3e52667aac72eabe'
'6ae607fcb534a0950e0140645422244592c746d87215e5152747b4225ceb5b34'
@@ -58,7 +59,8 @@ sha256sums=('2e4dfee3c24925ad51d1e76a9fb2b19b26a5a0049ef7be6d3e52667aac72eabe'
'2588f6b42f9499527a34cda0574e0517f138745d3659e73041b21055a3e923f4'
'cee214ebd9b3d905fb502a8a5009015198774a1c18afd49a870ce57e14ddd00d'
'303fbd53d7502582f36acd384f6b306607ffcd35aab4a94b057307734ece51ae'
'2391b6d4b9fc3c9c5da9ef61187af0dc5f17d2277ab1e0d3e9a7d4a0dbf6338c')
'2391b6d4b9fc3c9c5da9ef61187af0dc5f17d2277ab1e0d3e9a7d4a0dbf6338c'
'd2891e814ac6e52f73bab26256234631a900eb93ff28f942e6cc06ca1a8d9c91')
_apply_patch_with_msg() {
for _patch in "$@"
@@ -79,7 +81,8 @@ prepare() {
0003-gdiplus-fix-library.patch \
0004-gvpr-remove-buiddir.patch \
0005-makefile-no-undefined.patch \
0006-tclpkg-fix-dll-extension.patch
0006-tclpkg-fix-dll-extension.patch \
0007-graphviz-workaround-ghostscript-check.patch
./autogen.sh
}