annotate src/libgsf.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 8147e6f8659a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2315
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.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 300
diff changeset
4 PKG := libgsf
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
5 $(PKG)_IGNORE :=
2626
f73f450e0115 update packages libgsf libxml2
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := 4f19933342b2d42246200e3522b0797a032fdf19
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 300
diff changeset
7 $(PKG)_SUBDIR := libgsf-$($(PKG)_VERSION)
2315
2b5ea5239144 update packages libgsf, libxml++
Tony Theodore <tonyt@logyst.com>
parents: 1888
diff changeset
8 $(PKG)_FILE := libgsf-$($(PKG)_VERSION).tar.xz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 300
diff changeset
9 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libgsf/$(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 := zlib bzip2 glib libxml2
263
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://git.gnome.org/browse/libgsf/refs/tags' | \
911
f1d598a04351 avoid beta versions of packages atk and libgsf (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 801
diff changeset
14 grep '<a href=' | \
f1d598a04351 avoid beta versions of packages atk and libgsf (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 801
diff changeset
15 $(SED) -n "s,.*<a href='[^']*/tag/?id=LIBGSF_\\([0-9]*_[0-9]*[02468]_[^<]*\\)'.*,\\1,p" | \
f1d598a04351 avoid beta versions of packages atk and libgsf (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 801
diff changeset
16 $(SED) 's,_,.,g' | \
263
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 head -1
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 753
diff changeset
21 $(SED) -i 's,^\(Requires:.*\),\1 gio-2.0,' '$(1)'/libgsf-1.pc.in
753
0dc1c1dadcd3 fixed several dependencies and *.pc scripts
Volker Grabsch <vog@notjusthosting.com>
parents: 746
diff changeset
22 echo 'Libs.private: -lz -lbz2' >> '$(1)'/libgsf-1.pc.in
263
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
24 $(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: 2626
diff changeset
25 $(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
26 --prefix='$(HOST_PREFIX)' \
263
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-nls \
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-gtk-doc \
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --without-python \
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --with-zlib \
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --with-bz2 \
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --with-gio \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
33 PKG_CONFIG='$(MXE_PKG_CONFIG)'
746
6b7867fb50e5 create missing *.pc file for package libgsf
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install-pkgconfigDATA
706
0a976e6b82e3 remove other packages' dependencies on the gettext tool
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
35 $(MAKE) -C '$(1)/gsf' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
263
fd1046f9cebc new package: libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 endef