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
|
2020-05-25 17:13:07 +02:00
|
|
|
# Depends on: boehm-gc boost gsl gtkmm libxslt poppler-glib popt
|
|
|
|
# Optional: brotli gtk-doc gtkspell imagemagick-compat libexif openjade openldap rtmpdump
|
2011-11-09 09:18:13 +01:00
|
|
|
|
|
|
|
name=inkscape
|
2019-05-05 09:37:01 +02:00
|
|
|
version=0.92.4
|
2020-02-01 08:38:43 +01:00
|
|
|
release=4
|
2017-09-26 00:47:31 +02:00
|
|
|
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.bz2
|
2020-02-01 08:38:43 +01:00
|
|
|
https://poppler.freedesktop.org/poppler-0.85.0.tar.xz
|
|
|
|
inkscape-0.92.4-poppler_0_83_0_fixes-1.patch
|
2019-11-09 12:05:10 +01:00
|
|
|
inkscape-0.92.4-use_versioned_ImageMagick6-1.patch
|
|
|
|
inkscape-0.92.4-upstream_fixes-1.patch)
|
2011-11-09 09:18:13 +01:00
|
|
|
|
2019-12-04 12:52:25 +01:00
|
|
|
poppler() {
|
|
|
|
#-boehm-gc boost gsl gtkmm poppler-glib popt
|
|
|
|
#+cmake cairo lcms2 boehm-gc boost gsl gtkmm popt
|
2020-02-01 08:38:43 +01:00
|
|
|
cd poppler-0.85.0
|
2019-12-04 12:52:25 +01:00
|
|
|
cmake . \
|
2020-05-25 17:13:07 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=$SRC/poppler \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=$SRC/poppler/lib \
|
|
|
|
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
|
|
|
|
-DENABLE_UTILS=ON \
|
|
|
|
-DENABLE_SPLASH=ON \
|
|
|
|
-DENABLE_CPP=ON \
|
|
|
|
-DENABLE_GLIB=ON \
|
|
|
|
-DENABLE_QT5=OFF \
|
|
|
|
-DENABLE_ZLIB=ON \
|
|
|
|
-DENABLE_CMS=lcms2 \
|
|
|
|
-DENABLE_LIBOPENJPEG=none \
|
|
|
|
-DWITH_NSS3=OFF
|
2019-12-04 12:52:25 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2020-02-01 08:38:43 +01:00
|
|
|
install -D -t $PKG/usr/lib/ $SRC/poppler/lib/libpoppler.so.95
|
2019-12-04 12:52:25 +01:00
|
|
|
|
|
|
|
export CXXFLAGS+=" -I$SRC/poppler/include -I$SRC/poppler/include/poppler"
|
|
|
|
export PKG_CONFIG_PATH="$SRC/poppler/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
}
|
|
|
|
|
2011-11-09 09:18:13 +01:00
|
|
|
build() {
|
2020-02-05 09:57:41 +01:00
|
|
|
[ ! -e '/usr/lib/libpoppler.so.95' ] && poppler
|
2019-12-04 12:52:25 +01:00
|
|
|
|
|
|
|
cd $SRC/$name-$version
|
2011-11-09 09:18:13 +01:00
|
|
|
|
2019-11-09 12:05:10 +01:00
|
|
|
# fix a problem introduced by Poppler-0.76.1
|
|
|
|
sed -e 's|new Lexer(xref, obj)|obj|g' -i src/extension/internal/pdfinput/pdf-parser.cpp
|
|
|
|
|
2020-02-01 08:38:43 +01:00
|
|
|
# fix Inkscape to be able to build with poppler-0.82.0 and higher
|
|
|
|
sed -e 's|Unicode \*u|Unicode const *u|g' -i src/extension/internal/pdfinput/*
|
|
|
|
|
|
|
|
patch -p1 -i $SRC/inkscape-0.92.4-poppler_0_83_0_fixes-1.patch
|
2019-11-09 12:05:10 +01:00
|
|
|
patch -p1 -i $SRC/inkscape-0.92.4-use_versioned_ImageMagick6-1.patch
|
|
|
|
patch -p1 -i $SRC/inkscape-0.92.4-upstream_fixes-1.patch
|
|
|
|
|
2018-12-26 08:13:18 +01:00
|
|
|
|
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
|
|
|
|
|
2019-12-04 12:52:25 +01:00
|
|
|
export PKG_CONFIG_PATH="/usr/lib/imagemagick6/pkgconfig:$PKG_CONFIG_PATH"
|
2018-12-26 08:13:18 +01:00
|
|
|
export FREETYPE_CONFIG="/usr/bin/pkg-config freetype2"
|
|
|
|
|
2011-11-09 09:18:13 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2016-05-18 14:27:08 +02:00
|
|
|
--disable-nls \
|
2018-12-26 08:13:18 +01:00
|
|
|
--with-python \
|
|
|
|
--with-perl \
|
2016-05-18 14:27:08 +02:00
|
|
|
--enable-lcms \
|
|
|
|
--enable-poppler-cairo \
|
2019-11-09 12:05:10 +01:00
|
|
|
--disable-strict-build
|
2011-11-09 09:18:13 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2012-03-02 13:29:46 +01:00
|
|
|
rm \
|
2016-05-18 14:27:08 +02:00
|
|
|
$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 \
|
2016-05-18 14:27:08 +02:00
|
|
|
$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 {} +
|
2014-01-27 08:41:06 +01:00
|
|
|
/usr/bin/python -mcompileall $PKG
|
2011-11-09 09:18:13 +01:00
|
|
|
}
|