contrib/inkscape/Pkgfile

47 lines
1.0 KiB
Plaintext
Raw Normal View History

2011-11-09 09:18:13 +01:00
# Description: An open source SVG editor.
2017-02-11 06:29:26 +01:00
# URL: https://www.inkscape.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2017-11-01 13:35:12 +01:00
# Depends on: boehm-gc boost gsl gtkmm poppler-glib popt
2018-04-28 08:56:53 +02:00
# Optional: rtmpdump openldap libexif openjade gtk-doc gtkspell brotli
2011-11-09 09:18:13 +01:00
name=inkscape
2018-04-28 08:56:53 +02:00
version=0.92.3
release=1
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.bz2
2018-09-03 14:58:47 +02:00
noconst.patch
poppler-0.65.0.patch)
2011-11-09 09:18:13 +01:00
build() {
cd $name-$version
2018-04-28 08:56:53 +02:00
patch -p1 -i $SRC/noconst.patch
2018-09-03 14:58:47 +02:00
patch -p1 -i $SRC/poppler-0.65.0.patch
2018-04-28 08:56:53 +02:00
sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp
2015-12-07 01:21:19 +01:00
CXXFLAGS+=' -std=c++11'
2012-06-14 16:48:46 +02:00
2017-02-11 06:29:26 +01:00
./autogen.sh
2011-11-09 09:18:13 +01:00
./configure \
--prefix=/usr \
--disable-nls \
--enable-lcms \
--enable-poppler-cairo \
--disable-strict-build \
--disable-dependency-tracking
2011-11-09 09:18:13 +01:00
make
make DESTDIR=$PKG install
2012-03-02 13:29:46 +01:00
rm \
$PKG/usr/share/man/man1/inkscape.??.1 \
$PKG/usr/share/man/man1/inkscape.zh_TW.1
2012-03-02 13:29:46 +01:00
2011-11-09 09:18:13 +01:00
rm -r \
$PKG/usr/share/man/?? \
$PKG/usr/share/man/zh_TW
2011-11-09 09:18:13 +01:00
find $PKG/usr/share/inkscape -name README -exec rm -f {} +
/usr/bin/python -mcompileall $PKG
2011-11-09 09:18:13 +01:00
}