new package: libcroco

This commit is contained in:
Volker Grabsch 2010-02-24 13:55:41 +01:00
parent 73bf1eddc0
commit e3534c7d70
3 changed files with 35 additions and 6 deletions

View File

@ -422,8 +422,8 @@ USE_OSGPLUGIN(<plugin2>)
<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>

29
src/libcroco.mk Normal file
View File

@ -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

View File

@ -10,7 +10,7 @@ $(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION)
$(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 @@ define $(PKG)_UPDATE
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 @@ define $(PKG)_BUILD
--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=