mxe/src/librsvg.mk

33 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-02-15 23:41:24 +00:00
PKG := librsvg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.40.5
$(PKG)_CHECKSUM := d7c9b3a468629c94dff6c177874629686bfc71a7
2010-02-15 23:41:24 +00:00
$(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION)
2012-01-23 12:21:00 +00:00
$(PKG)_FILE := librsvg-$($(PKG)_VERSION).tar.xz
2010-02-15 23:41:24 +00:00
$(PKG)_URL := http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc cairo gdk-pixbuf glib libcroco libgsf pango
2010-02-15 23:41:24 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.gnome.org/browse/librsvg/refs/tags' | \
$(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\).*,\1,p' | \
2010-02-15 23:41:24 +00:00
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-pixbuf-loader \
2012-03-26 15:12:08 +01:00
--disable-gtk-doc \
--enable-introspection=no
2010-02-15 23:41:24 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
2010-02-16 02:18:23 +00:00
'$(TARGET)-gcc' \
2013-06-29 13:41:43 +01:00
-mwindows -W -Wall -Werror -Wno-error=deprecated-declarations \
-std=c99 -pedantic \
2010-02-16 02:18:23 +00:00
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-librsvg.exe' \
`'$(TARGET)-pkg-config' librsvg-2.0 --cflags --libs`
2010-02-15 23:41:24 +00:00
endef