summaryrefslogtreecommitdiffstats
path: root/src/libcroco.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-02-24 12:55:41 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-02-24 12:55:41 (GMT)
commite3534c7d7041ed9d3cf5d49ebd5fe4fb775082db (patch)
treed4e8a4f12af0eef640f713cf58fea3d99bbe54db /src/libcroco.mk
parent73bf1eddc0cdf7a46be1921db481724e4227b243 (diff)
downloadmxe-e3534c7d7041ed9d3cf5d49ebd5fe4fb775082db.zip
mxe-e3534c7d7041ed9d3cf5d49ebd5fe4fb775082db.tar.gz
mxe-e3534c7d7041ed9d3cf5d49ebd5fe4fb775082db.tar.bz2
new package: libcroco
Diffstat (limited to 'src/libcroco.mk')
-rw-r--r--src/libcroco.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/libcroco.mk b/src/libcroco.mk
new file mode 100644
index 0000000..26cc54b
--- /dev/null
+++ b/src/libcroco.mk
@@ -0,0 +1,29 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# Libcroco
+PKG := libcroco
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.6.2
+$(PKG)_CHECKSUM := 4b0dd540a47f2492b1ac7cd7e3ec63c2ef4c9c2a
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
+$(PKG)_WEBSITE := http://www.freespiders.org/projects/libcroco/
+$(PKG)_URL := http://ftp.gnome.org/pub/GNOME/sources/libcroco/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc glib libxml2
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://git.gnome.org/browse/libcroco/refs/tags' | \
+ $(SED) -n 's,.*<a[^>]*>LIBCROCO_\([0-9][0-9_]*\)<.*,\1,p' | \
+ $(SED) 's,_,.,g' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --disable-gtk-doc
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef