This commit is contained in:
Max Howell 2022-08-22 08:37:13 -04:00
parent f003504fb5
commit 9e7593b30a
3 changed files with 44 additions and 3 deletions

View file

@ -27,7 +27,9 @@ build:
if test {{ hw.platform }} == darwin; then
#FIXME wtf is going on here
sed -i.bak 's|/opt/libpng.org/v.*/lib/libintl.la||' {{prefix}}/lib/libcairo-gobject.la
#NOTE has /opt/gnu.org/gettext/v0.21.0/lib/libpcre.la in it
#NOTE then has a thousand repeats of pcre.org/libpcre.la
sed -i.bak 's|/opt/.*/v.*/lib/libpcre.la||' {{prefix}}/lib/libcairo-gobject.la
fi
test: true #FIXME

View file

@ -29,8 +29,8 @@ build:
ninja install
cd {{prefix}}/lib/pkgconfig
sed -i.bak -e 's|Libs: -L${libdir} -lglib-2.0 -lintl|Libs: -L${libdir} -lglib-2.0 -L/opt/gnu.org/gettext/v*/lib -lintl -L/opt/pcre.org/v1/lib -lpcre|' ./glib-2.0.pc
sed -i.bak -e 's|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I/opt/gnu.org/gettext/v*/include -I/opt/pcre.org/v1/include|' ./glib-2.0.pc
sed -i.bak -e 's|Libs: -L${libdir} -lglib-2.0 -lintl|Libs: -L${libdir} -lglib-2.0 -L/opt/gnu.org/gettext/v*/lib -lintl -L/opt/pcre.org/v*/lib -lpcre|' ./glib-2.0.pc
sed -i.bak -e 's|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include|Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I/opt/gnu.org/gettext/v*/include -I/opt/pcre.org/v*/include|' ./glib-2.0.pc
rm *.bak
#REF https://github.com/Homebrew/homebrew-core/blob/d0e65698ccd502335bea68ce879ae02e1735db0d/Formula/glib.rb#L66-L67

View file

@ -0,0 +1,39 @@
distributable:
url: https://download.gnome.org/sources/librsvg/{{ version.major }}.{{ version.minor }}/librsvg-{{ version }}.tar.xz
strip-components: 1
versions:
github: GNOME/librsvg/tags
dependencies:
cairographics.org: 1
gnome.org/pango: 1
gnome.org/gdk-pixbuf: 2
gnome.org/glib: 2
gnu.org/gettext: ^0.21
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
rust-lang.org: 1
freedesktop.org/pkg-config: ^0.29
gnome.org/gobject-introspection: 1
python.org: 3
script: |
if test {{ hw.platform }} = linux; then
#FIXME so linux configure finds shared-mime-info
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/share/pkgconfig"
#FIXME so linux build finds the shared-mime-info cache
export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share"
fi
./configure \
--prefix={{ prefix }} \
--enable-pixbuf-loader=yes \
--enable-introspection=yes \
--disable-Bsymbolic
make V=1
make install
test: true #FIXME