mirror of https://git.wownero.com/dsc/mxe.git
libgee: fix updates and style
This commit is contained in:
parent
6929eb37e7
commit
a361af5c10
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
* This file is part of MXE. See LICENSE.md for licensing information.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
|
|
@ -13,21 +13,20 @@ $(PKG)_DEPS := cc glib
|
|||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'https://git.gnome.org/browse/libgee/refs/tags' | \
|
||||
grep '<a href=' | \
|
||||
$(SED) -n "s,.*<a href='[^']*/tag/?h=LIBGEE_\\([0-9]*_[0-9]*_[^<]*\\)'.*,\\1,p" | \
|
||||
$(SED) 's,_,.,g' | \
|
||||
$(SED) -n "s,.*libgee-\([0-9]\+\.[0-9]*[02468]\.[^']*\)\.tar.*,\1,p" | \
|
||||
$(SORT) -Vr | \
|
||||
head -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
MAKE=$(MAKE)
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
$(MAKE) -C '$(BUILD_DIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi \
|
||||
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libgee.exe' \
|
||||
`'$(TARGET)-pkg-config' gee-0.8 gio-2.0 glib-2.0 --cflags --libs`
|
||||
`'$(TARGET)-pkg-config' gee-0.8 gio-2.0 --cflags --libs`
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in New Issue