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/
|
2023-03-05 22:04:37 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2021-01-31 18:07:06 +11:00
|
|
|
# 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
|
2023-03-05 22:04:37 -05:00
|
|
|
source=(https://inkscape.org/gallery/item/37360/inkscape-$version.tar.xz)
|
2019-12-04 22:52:25 +11:00
|
|
|
|
2011-11-09 19:18:13 +11:00
|
|
|
build() {
|
2021-04-03 11:51:15 +11:00
|
|
|
# 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
|
|
|
|
2023-03-05 22:04:37 -05:00
|
|
|
cmake -S inkscape-${version}* -B build -G Ninja \
|
2020-11-08 11:19:41 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2021-06-19 23:14:58 +10:00
|
|
|
-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" \
|
2021-09-19 16:59:21 +10:00
|
|
|
-D WITH_INTERNAL_2GEOM=ON \
|
2020-11-08 09:05:08 +00:00
|
|
|
-Wno-dev
|
|
|
|
|
2020-05-29 01:02:37 +10:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-11-09 19:18:13 +11:00
|
|
|
|
2020-05-29 01:02:37 +10:00
|
|
|
rm -r $PKG/usr/share/man/?? \
|
|
|
|
$PKG/usr/share/locale \
|
|
|
|
$PKG/usr/share/inkscape/doc
|
2012-03-02 23:29:46 +11:00
|
|
|
|
2023-03-05 22:04:37 -05:00
|
|
|
find $PKG/usr/share/inkscape \( -name 'README' -o -name 'README.*' \) -delete
|
2021-01-31 18:07:06 +11:00
|
|
|
|
2020-05-29 01:02:37 +10:00
|
|
|
/usr/bin/python3 -mcompileall $PKG
|
2021-01-31 18:07:06 +11:00
|
|
|
/usr/bin/python3 -O -m compileall $PKG
|
|
|
|
/usr/bin/python3 -OO -m compileall $PKG
|
2022-11-13 16:19:30 +00:00
|
|
|
|
2023-03-05 22:04:37 -05:00
|
|
|
rm -rf $PKG/usr/share/man/zh_TW \
|
|
|
|
$PKG/usr/share/man/pt_BR
|
2011-11-09 19:18:13 +11:00
|
|
|
}
|