2019-04-29 21:18:18 +10:00
|
|
|
# Description: SVG rendering library with cairo backend
|
2020-01-10 23:20:02 +11:00
|
|
|
# URL: https://wiki.gnome.org/Projects/LibRsvg
|
2023-06-07 21:23:50 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: gdk-pixbuf pango rust
|
|
|
|
# Optional: graphite2 sccache vala
|
2019-04-29 21:18:18 +10:00
|
|
|
|
|
|
|
name=librsvg
|
2024-03-20 17:00:20 +01:00
|
|
|
version=2.58.0
|
2023-07-02 13:27:53 +02:00
|
|
|
release=1
|
2019-04-29 21:18:18 +10:00
|
|
|
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2023-06-07 21:23:50 +02:00
|
|
|
cd $name-$version
|
2019-04-29 21:18:18 +10:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
2020-01-10 23:20:02 +11:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
prt-get isinst vala && PKGMK_LIBRSVG+=' --enable-vala'
|
2021-10-10 00:13:28 +11:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
export CARGO_PROFILE_RELEASE_LTO=true
|
|
|
|
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
2021-09-18 14:22:49 +02:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
./configure $PKGMK_LIBRSVG \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-pixbuf-loader \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-nls
|
2019-04-29 21:18:18 +10:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2019-04-29 21:18:18 +10:00
|
|
|
|
2023-06-07 21:23:50 +02:00
|
|
|
find $PKG/usr/lib -type f -name '*.la' -print -delete
|
|
|
|
rm -r $PKG/usr/share/doc
|
2019-04-29 21:18:18 +10:00
|
|
|
}
|