2270
|
1 # This file is part of mingw-cross-env. |
|
2 # See doc/index.html for further information. |
|
3 |
|
4 # gta |
|
5 PKG := gta |
|
6 $(PKG)_IGNORE := |
|
7 $(PKG)_VERSION := 1.0.2 |
|
8 $(PKG)_CHECKSUM := 9020944bcd40bd986a879d454d21920a1eb48db7 |
|
9 $(PKG)_SUBDIR := libgta-$($(PKG)_VERSION) |
|
10 $(PKG)_FILE := libgta-$($(PKG)_VERSION).tar.xz |
|
11 $(PKG)_WEBSITE := http://gta.nongnu.org/ |
|
12 $(PKG)_URL := http://download.savannah.gnu.org/releases/gta/$($(PKG)_FILE) |
|
13 $(PKG)_DEPS := gcc zlib bzip2 xz |
|
14 |
|
15 define $(PKG)_UPDATE |
|
16 wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=gta.git;a=tags' | \ |
|
17 grep '<a class="list subject"' | \ |
|
18 $(SED) -n 's,.*<a[^>]*>libgta-\([0-9.]*\)<.*,\1,p' | \ |
|
19 head -1 |
|
20 endef |
|
21 |
|
22 define $(PKG)_BUILD |
|
23 cd '$(1)' && ./configure \ |
|
24 --host='$(TARGET)' \ |
|
25 --build="`config.guess`" \ |
|
26 --disable-shared \ |
|
27 --disable-reference \ |
|
28 --prefix='$(PREFIX)/$(TARGET)' |
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
|
30 $(MAKE) -C '$(1)' -j 1 install dist_doc_DATA= |
|
31 |
|
32 '$(TARGET)-gcc' \ |
|
33 -W -Wall -Werror -ansi -pedantic \ |
|
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gta.exe' \ |
|
35 `'$(TARGET)-pkg-config' gta --cflags --libs` |
|
36 endef |