Mercurial > mxe-octave
comparison src/libsigc++.mk @ 1154:a8f4b5284190
new packages: atkmm cairomm glibmm gtkmm libsigc++ pangomm
author | Martin Gerhardy <martin.gerhardy@gmail.com> |
---|---|
date | Sat, 18 Sep 2010 21:35:42 +0200 |
parents | |
children | 8fb557920a4f |
comparison
equal
deleted
inserted
replaced
1153:286c23180408 | 1154:a8f4b5284190 |
---|---|
1 # This file is part of mingw-cross-env. | |
2 # See doc/index.html for further information. | |
3 | |
4 # libsigc++ | |
5 PKG := libsigc++ | |
6 $(PKG)_IGNORE : | |
7 $(PKG)_VERSION := 2.2.8 | |
8 $(PKG)_CHECKSUM := c26f57110629c16c0b5a873346b7c1cf0edc9c5e | |
9 $(PKG)_SUBDIR := libsigc++-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := libsigc++-$($(PKG)_VERSION).tar.bz2 | |
11 $(PKG)_WEBSITE := http://www.gtk.org/ | |
12 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libsigc++/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://git.gnome.org/browse/libsigc++/refs/tags' | \ | |
17 grep '<a href=' | \ | |
18 $(SED) -n 's,.*<a[^>]*>libsigc++-*\([0-9][^<]*\)<.*,\1,p' | \ | |
19 grep -v '^2\.24\.' | \ | |
20 head -1 | |
21 endef | |
22 | |
23 define $(PKG)_BUILD | |
24 # cross build | |
25 # wine confuses the cross-compiling detection, so set it explicitly | |
26 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' | |
27 cd '$(1)' && ./configure \ | |
28 --host='$(TARGET)' \ | |
29 --disable-shared \ | |
30 --prefix='$(PREFIX)/$(TARGET)' \ | |
31 CXX='$(TARGET)-c++' \ | |
32 PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' | |
33 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
34 endef |