Mercurial > mxe-octave
annotate src/libgsf.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 47558e958113 |
children | bcc26ffe9a0f |
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) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
300
diff
changeset
|
10 $(PKG)_DEPS := gcc zlib bzip2 glib libxml2 |
263 | 11 |
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 | 17 head -1 |
18 endef | |
19 | |
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 | 23 cd '$(1)' && ./configure \ |
24 --host='$(TARGET)' \ | |
2626
f73f450e0115
update packages libgsf libxml2
Mark Brand <mabrand@mabrand.nl>
parents:
2525
diff
changeset
|
25 --build="`config.guess`" \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2626
diff
changeset
|
26 $(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
|
27 --prefix='$(HOST_PREFIX)' \ |
263 | 28 --disable-nls \ |
29 --disable-gtk-doc \ | |
30 --without-python \ | |
31 --with-zlib \ | |
32 --with-bz2 \ | |
33 --with-gio \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
34 PKG_CONFIG='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-pkg-config' |
746
6b7867fb50e5
create missing *.pc file for package libgsf
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
35 $(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
|
36 $(MAKE) -C '$(1)/gsf' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
263 | 37 endef |