Mercurial > mxe-octave
annotate src/gta.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | d3769995dfd5 |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2270
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. |
2270 | 3 |
4 PKG := gta | |
5 $(PKG)_IGNORE := | |
2714 | 6 $(PKG)_CHECKSUM := dffeb65b0dad66860ab62df1cf8570ea23517c2c |
2270 | 7 $(PKG)_SUBDIR := libgta-$($(PKG)_VERSION) |
8 $(PKG)_FILE := libgta-$($(PKG)_VERSION).tar.xz | |
9 $(PKG)_URL := http://download.savannah.gnu.org/releases/gta/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc zlib bzip2 xz | |
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.savannah.gnu.org/gitweb/?p=gta.git;a=tags' | \ |
2270 | 14 grep '<a class="list subject"' | \ |
15 $(SED) -n 's,.*<a[^>]*>libgta-\([0-9.]*\)<.*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
21 --host='$(TARGET)' \ | |
22 --build="`config.guess`" \ | |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2714
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
2270 | 24 --disable-reference \ |
25 --prefix='$(PREFIX)/$(TARGET)' | |
26 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
27 $(MAKE) -C '$(1)' -j 1 install dist_doc_DATA= | |
28 | |
29 '$(TARGET)-gcc' \ | |
30 -W -Wall -Werror -ansi -pedantic \ | |
31 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gta.exe' \ | |
32 `'$(TARGET)-pkg-config' gta --cflags --libs` | |
33 endef |