void-packages/srcpkgs/inkscape/template

37 lines
1.4 KiB
Bash

# Template file for 'inkscape'
pkgname=inkscape
version=0.92.3
revision=10
build_style=gnu-configure
configure_args="--enable-lcms --enable-poppler-cairo
--without-gnome-vfs --disable-static"
hostmakedepends="automake pkg-config libtool intltool gettext-devel
glib-devel perl-XML-Parser"
makedepends="
popt-devel libpng-devel gsl-devel gc-devel gtkmm2-devel libxslt-devel
lcms2-devel poppler-glib-devel boost-devel libmagick6-devel
libvisio-devel libwpg-devel libcdr-devel dbus-glib-devel libgomp-devel
potrace-devel cairomm-devel"
depends="desktop-file-utils hicolor-icon-theme python-lxml"
short_desc="Vector-based drawing program"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2, LGPL-2.1"
homepage="http://inkscape.org/"
distfiles="https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_${version//./_}/inkscape-INKSCAPE_${version//./_}.tar.bz2"
checksum=a530c3ac5c9670a0533f4b71e27e62fa9c8a7f3bcff2148d882e4afafb2387d4
wrksrc="${pkgname}-INKSCAPE_${version//./_}"
# Use c++11 mode and reduce log spam due to gcc6 warnings
CXXFLAGS="-std=c++11 -Wno-deprecated -Wno-misleading-indentation -Wno-cast-align"
case "$XBPS_TARGET_MACHINE" in
arm*|aarch64*) makedepends+=" libatomic_ops-devel" ;;
esac
pre_configure() {
./autogen.sh
sed -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' -i src/extension/internal/pdfinput/pdf-parser.*
sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp
}