Mercurial > mxe-octave
annotate src/librsvg.mk @ 810:8fa7fa96f6c8
new package: libcroco
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 24 Feb 2010 13:55:41 +0100 |
parents | 4dc8edb4c4dd |
children | e9c82fd580b6 |
rev | line source |
---|---|
747 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # librsvg | |
5 PKG := librsvg | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 2.26.0 | |
8 $(PKG)_CHECKSUM := 61044be4bcd5945f5711f788e1aa303a80b69e32 | |
9 $(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := librsvg-$($(PKG)_VERSION).tar.bz2 | |
11 $(PKG)_WEBSITE := http://librsvg.sourceforge.net/ | |
12 $(PKG)_URL := http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) | |
810
8fa7fa96f6c8
new package: libcroco
Volker Grabsch <vog@notjusthosting.com>
parents:
760
diff
changeset
|
13 $(PKG)_DEPS := gcc glib libgsf cairo pango gtk libcroco |
747 | 14 |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://git.gnome.org/browse/librsvg/log' | \ | |
17 grep '<a href=' | \ | |
18 $(SED) -n 's,.*<a[^>]*>\([0-9][0-9.]*\)<.*,\1,p' | \ | |
19 head -1 | |
20 endef | |
21 | |
22 define $(PKG)_BUILD | |
810
8fa7fa96f6c8
new package: libcroco
Volker Grabsch <vog@notjusthosting.com>
parents:
760
diff
changeset
|
23 $(SED) -i 's,glib-mkenums,$(PREFIX)/$(TARGET)/bin/glib-mkenums,g' '$(1)'/Makefile.in |
8fa7fa96f6c8
new package: libcroco
Volker Grabsch <vog@notjusthosting.com>
parents:
760
diff
changeset
|
24 $(SED) -i 's,^\(Requires:.*\),\1 libgsf-1 pangocairo libcroco-0.6,' '$(1)'/librsvg-2.0.pc.in |
747 | 25 cd '$(1)' && ./configure \ |
26 --host='$(TARGET)' \ | |
27 --disable-shared \ | |
28 --prefix='$(PREFIX)/$(TARGET)' \ | |
29 --enable-pixbuf-loader \ | |
30 --disable-gtk-theme \ | |
31 --disable-mozilla-plugin \ | |
32 --disable-gtk-doc \ | |
33 --with-svgz \ | |
810
8fa7fa96f6c8
new package: libcroco
Volker Grabsch <vog@notjusthosting.com>
parents:
760
diff
changeset
|
34 --with-croco \ |
747 | 35 --without-x |
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
754
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
37 |
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
38 '$(TARGET)-gcc' \ |
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
39 -W -Wall -Werror -ansi -pedantic \ |
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
40 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-librsvg.exe' \ |
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
41 `'$(TARGET)-pkg-config' librsvg-2.0 --cflags --libs` |
747 | 42 endef |