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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
747
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # See doc/index.html for further information.
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # librsvg
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := librsvg
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 2.26.0
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 61044be4bcd5945f5711f788e1aa303a80b69e32
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION)
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := librsvg-$($(PKG)_VERSION).tar.bz2
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://librsvg.sourceforge.net/
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://git.gnome.org/browse/librsvg/log' | \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<a href=' | \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*<a[^>]*>\([0-9][0-9.]*\)<.*,\1,p' | \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)' && ./configure \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --host='$(TARGET)' \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-shared \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --prefix='$(PREFIX)/$(TARGET)' \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --enable-pixbuf-loader \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-gtk-theme \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --disable-mozilla-plugin \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-gtk-doc \
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --with-svgz \
810
8fa7fa96f6c8 new package: libcroco
Volker Grabsch <vog@notjusthosting.com>
parents: 760
diff changeset
34 --with-croco \
747
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --without-x
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
00c32b83d032 new package: librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 endef