contrib/inkscape/Pkgfile

49 lines
1.1 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
# Optional: rtmpdump openldap libexif openjade gtk-doc gtkspell brotli imagemagick-compat
2011-11-09 09:18:13 +01:00
name=inkscape
2019-05-05 09:37:01 +02:00
version=0.92.4
release=1
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.bz2
2019-05-05 09:37:01 +02:00
inkscape-0.92.4-poppler-0.76.0.patch)
2011-11-09 09:18:13 +01:00
build() {
cd $name-$version
2019-05-05 09:37:01 +02:00
patch -p1 -i $SRC/inkscape-0.92.4-poppler-0.76.0.patch
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
export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig'
export FREETYPE_CONFIG="/usr/bin/pkg-config freetype2"
2011-11-09 09:18:13 +01:00
./configure \
--prefix=/usr \
--disable-nls \
--with-python \
--with-perl \
--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
}