contrib/inkscape/Pkgfile

42 lines
1.4 KiB
Plaintext
Raw Normal View History

2011-11-09 19:18:13 +11:00
# Description: An open source SVG editor.
2017-02-11 16:29:26 +11:00
# URL: https://www.inkscape.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: boehm-gc boost double-conversion graphicsmagick gsl gtkmm3 libsoup libxslt poppler-glib popt potrace gdl
2011-11-09 19:18:13 +11:00
name=inkscape
2022-12-09 21:43:11 +00:00
version=1.2.2
2022-12-17 15:24:20 +00:00
release=3
source=(https://inkscape.org/gallery/item/37360/inkscape-$version.tar.xz)
2011-11-09 19:18:13 +11:00
build() {
# https://gitlab.gnome.org/GNOME/glib/-/issues/2331
2022-09-30 08:44:29 +10:00
CFLAGS+=' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_66 -L/usr/lib/inkscape'
CXXFLAGS+=' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_66 -L/usr/lib/inkscape'
export LDFLAGS+=" -Wl,-rpath=/usr/lib/inkscape"
2017-02-11 16:29:26 +11:00
cmake -S inkscape-${version}* -B build -G Ninja \
2020-11-08 11:19:41 +00:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
2020-11-08 11:19:41 +00:00
-D CMAKE_BUILD_TYPE=Release \
2020-12-06 23:54:57 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D WITH_INTERNAL_2GEOM=ON \
2020-11-08 09:05:08 +00:00
-Wno-dev
cmake --build build
2020-07-08 13:01:36 +00:00
DESTDIR=$PKG cmake --install build
2011-11-09 19:18:13 +11:00
rm -r $PKG/usr/share/man/?? \
$PKG/usr/share/locale \
$PKG/usr/share/inkscape/doc
2012-03-02 23:29:46 +11:00
find $PKG/usr/share/inkscape \( -name 'README' -o -name 'README.*' \) -delete
/usr/bin/python3 -mcompileall $PKG
/usr/bin/python3 -O -m compileall $PKG
/usr/bin/python3 -OO -m compileall $PKG
2022-11-13 16:19:30 +00:00
rm -rf $PKG/usr/share/man/zh_TW \
$PKG/usr/share/man/pt_BR
2011-11-09 19:18:13 +11:00
}