Mercurial > mxe-octave
annotate src/librsvg.mk @ 3048:5ef49fb3299d
treat gcc and binutils as build tools
use a separate target for building the cmake toolchain file
don't unpack gcc or binutils if we are using the system compiler
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 14 Jun 2013 16:51:29 -0400 |
parents | 951da75fd09c |
children | 13be64f9f16d |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2327
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
747 | 3 |
4 PKG := librsvg | |
5 $(PKG)_IGNORE := | |
2825 | 6 $(PKG)_CHECKSUM := 1e0152e6745bac9632207252c67dda2299010db4 |
747 | 7 $(PKG)_SUBDIR := librsvg-$($(PKG)_VERSION) |
2217 | 8 $(PKG)_FILE := librsvg-$($(PKG)_VERSION).tar.xz |
747 | 9 $(PKG)_URL := http://ftp.gnome.org/pub/GNOME/sources/librsvg/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
10 $(PKG)_DEPS := glib libgsf cairo pango gtk2 libcroco |
747 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2422
diff
changeset
|
13 $(WGET) -q -O- 'http://git.gnome.org/browse/librsvg/refs/tags' | \ |
1277
104c7045f292
improved update scripts of packages: glib librsvg sdl_sound sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents:
1207
diff
changeset
|
14 $(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\).*,\1,p' | \ |
747 | 15 head -1 |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
20 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2825
diff
changeset
|
21 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
22 --prefix='$(HOST_PREFIX)' \ |
1207
de4ff9fbd0be
disable dynamic module loading in package gdk-pixbuf
Mark Brand <mabrand@mabrand.nl>
parents:
1204
diff
changeset
|
23 --disable-pixbuf-loader \ |
747 | 24 --disable-gtk-theme \ |
2327 | 25 --disable-gtk-doc \ |
26 --enable-introspection=no | |
747 | 27 $(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
|
28 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
29 '$(MXE_CC)' \ |
754
3eedae9ff7dd
test program for package librsvg
Volker Grabsch <vog@notjusthosting.com>
parents:
753
diff
changeset
|
30 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
31 '$(2).c' -o '$(HOST_BINDIR)/test-librsvg.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
32 `'$(MXE_PKG_CONFIG)' librsvg-2.0 --cflags --libs` |
747 | 33 endef |