void-packages/srcpkgs/inkscape/template

34 lines
1.4 KiB
Bash

# Template file for 'inkscape'
pkgname=inkscape
version=0.92.4
revision=8
wrksrc="${pkgname}-INKSCAPE_${version//./_}"
build_style=gnu-configure
configure_args="--enable-lcms --enable-poppler-cairo
--without-gnome-vfs --disable-static --disable-strict-build"
hostmakedepends="automake pkg-config libtool intltool gettext-devel
glib-devel perl-XML-Parser tar which xz"
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 python-numpy python-scour"
short_desc="Vector-based drawing program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, LGPL-2.1-or-later"
homepage="http://inkscape.org/"
distfiles="https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_${version//./_}/inkscape-INKSCAPE_${version//./_}.tar.bz2"
checksum=b8f16d1417d3ed8d3cb32a68f64f8f31ae4c6553bb556f71b6590c4e2cb3cfb4
# Use c++11 mode and reduce log spam due to gcc6 warnings
CXXFLAGS="-std=c++11 -Wno-deprecated -Wno-deprecated-declarations -Wno-deprecated-copy"
CXXFLAGS+=" -Wno-parentheses -Wno-misleading-indentation -Wno-cast-align"
case "$XBPS_TARGET_MACHINE" in
arm*|aarch64*) makedepends+=" libatomic_ops-devel" ;;
esac
pre_configure() {
./autogen.sh
}