changeset 810:8fa7fa96f6c8

new package: libcroco
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 24 Feb 2010 13:55:41 +0100
parents e1f9e5f2157f
children f5a5648dfbd7
files doc/index.html src/libcroco.mk src/librsvg.mk
diffstat 3 files changed, 35 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/doc/index.html	Wed Feb 24 13:52:09 2010 +0100
+++ b/doc/index.html	Wed Feb 24 13:55:41 2010 +0100
@@ -422,8 +422,8 @@
 
         <p>
         Some new packages are supported:
-        liboil, libshout, gstreamer, gst-plugins-base, gst-plugins-good
-        and libpaper
+        liboil, libshout, gstreamer, gst-plugins-base, gst-plugins-good,
+        libpaper and libcroco.
         </p>
     </dd>
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libcroco.mk	Wed Feb 24 13:55:41 2010 +0100
@@ -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
--- a/src/librsvg.mk	Wed Feb 24 13:52:09 2010 +0100
+++ b/src/librsvg.mk	Wed Feb 24 13:55:41 2010 +0100
@@ -10,7 +10,7 @@
 $(PKG)_FILE     := librsvg-$($(PKG)_VERSION).tar.bz2
 $(PKG)_WEBSITE  := http://librsvg.sourceforge.net/
 $(PKG)_URL      := http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
-$(PKG)_DEPS     := gcc glib libgsf cairo pango gtk
+$(PKG)_DEPS     := gcc glib libgsf cairo pango gtk libcroco
 
 define $(PKG)_UPDATE
     wget -q -O- 'http://git.gnome.org/browse/librsvg/log' | \
@@ -20,8 +20,8 @@
 endef
 
 define $(PKG)_BUILD
-    $(SED) -i 's,glib-mkenums,$(PREFIX)/$(TARGET)/bin/glib-mkenums,g' '$(1)'/Makefile.in
-    $(SED) -i 's,^\(Requires:.*\),\1 libgsf-1 pangocairo,' '$(1)'/librsvg-2.0.pc.in
+    $(SED) -i 's,glib-mkenums,$(PREFIX)/$(TARGET)/bin/glib-mkenums,g'   '$(1)'/Makefile.in
+    $(SED) -i 's,^\(Requires:.*\),\1 libgsf-1 pangocairo libcroco-0.6,' '$(1)'/librsvg-2.0.pc.in
     cd '$(1)' && ./configure \
         --host='$(TARGET)' \
         --disable-shared \
@@ -31,7 +31,7 @@
         --disable-mozilla-plugin \
         --disable-gtk-doc \
         --with-svgz \
-        --without-croco \
+        --with-croco \
         --without-x
     $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=