annotate src/librsvg.mk @ 956:9a8f1b49a25f

upgrade packages boost gdal glew gst-plugins-base gstreamer gtk libgpg_error libgsf libpng librsvg libunistring taglib
author Mark Brand <mabrand@mabrand.nl>
date Wed, 12 May 2010 01:48:28 +0200
parents bbf7d296d3c2
children 71ff7a06339f
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 :=
956
9a8f1b49a25f upgrade packages boost gdal glew gst-plugins-base gstreamer gtk libgpg_error libgsf libpng librsvg libunistring taglib
Mark Brand <mabrand@mabrand.nl>
parents: 890
diff changeset
7 $(PKG)_VERSION := 2.26.3
9a8f1b49a25f upgrade packages boost gdal glew gst-plugins-base gstreamer gtk libgpg_error libgsf libpng librsvg libunistring taglib
Mark Brand <mabrand@mabrand.nl>
parents: 890
diff changeset
8 $(PKG)_CHECKSUM := ef0063eaa9e638364cc8ff142aadef8a267b7af5
747
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
890
bbf7d296d3c2 improved version recognition of package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents: 889
diff changeset
16 wget -q -O- 'http://git.gnome.org/browse/librsvg/refs/tags' | \
bbf7d296d3c2 improved version recognition of package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents: 889
diff changeset
17 $(SED) -n 's,.*<a[^>]*>LIBRSVG_\([0-9][0-9_]*\)<.*,\1,p' | \
bbf7d296d3c2 improved version recognition of package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents: 889
diff changeset
18 $(SED) 's,_,.,g' | \
747
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