-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibrsvg
39 lines (32 loc) · 916 Bytes
/
librsvg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Depends:
# pkg-config, rust, gthread (glib?), gmodule (glib?), libiconv, gettext (libintl), fontconfig, gdk-pixbuf,
# libcroco
# Optional depends:
# gtk3
# Update available: 2.45.8
depends=(gdk-pixbuf pango libcroco)
ver="2.44.14"
dname="${name}-${ver}"
fname="${dname}.tar.xz"
src="https://download.gnome.org/sources/librsvg/${ver%.*}/${fname}"
config_opts=(
--disable-tools
--disable-pixbuf-loader
--disable-introspection
--disable-installed-tests
--disable-always-build-tests
)
if ${static}; then
libs+=($(pkg-config freetype2 --libs-only-l --libs-only-other --static))
fi
post_extract() {
autoreconf -fiv
}
if ${os_win}; then
post_cfg() {
# pass static rust package to linker
sed -i "s/^deplibs_check_method=.*/deplibs_check_method=\"pass_all\"/g" libtool
# add missing crt libs (ws2_32 and userenv) to LIBRSVG_LIBS
sed -i "s/^LIBRSVG_LIBS = .*/& -lws2_32 -luserenv/g" Makefile
}
fi