comparison src/zenity.mk @ 3178:a791ade9c790

add zenity module (and MSVC-specific patch)
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 25 Jul 2013 20:03:53 -0400
parents
children 13be64f9f16d
comparison
equal deleted inserted replaced
3177:9e883aedbf4d 3178:a791ade9c790
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 PKG := zenity
5 $(PKG)_IGNORE :=
6 $(PKG)_CHECKSUM := af083691820970ef1e79590df35ea5c59a7491f3
7 $(PKG)_SUBDIR := zenity-$($(PKG)_VERSION)
8 $(PKG)_FILE := zenity-$($(PKG)_VERSION).tar.xz
9 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/zenity/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
10 $(PKG)_DEPS := gtk3 libxml2 itstool
11
12 define $(PKG)_UPDATE
13 $(WGET) -q -O- 'http://git.gnome.org/browse/zenity/refs/tags' | \
14 grep '<a href=' | \
15 $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \
16 grep -v '^3\.9' | \
17 grep '^3\.' | \
18 head -1
19 endef
20
21 define $(PKG)_BUILD
22 cd '$(1)' && ./configure \
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
24 --prefix='$(HOST_PREFIX)' \
25 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
26 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \
27 && $(CONFIGURE_POST_HOOK)
28 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
29 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS=
30 endef