Mercurial > mxe-octave
annotate src/lua.mk @ 3014:b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 16:59:24 -0400 |
parents | 100e618349f7 |
children | 951da75fd09c |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1849
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
4 PKG := lua |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
5 $(PKG)_IGNORE := |
2811 | 6 $(PKG)_CHECKSUM := 6bb1b0a39b6a5484b71a83323c690154f86b2021 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
7 $(PKG)_SUBDIR := lua-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
8 $(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
9 $(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
10 $(PKG)_DEPS := gcc |
186 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2409
diff
changeset
|
13 $(WGET) -q -O- 'http://www.lua.org/download.html' | \ |
186 | 14 $(SED) -n 's,.*lua-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 $(MAKE) -C '$(1)/src' -j '$(JOBS)' \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2811
diff
changeset
|
20 INSTALL_TOP='$(HOST_PREFIX)' \ |
186 | 21 CC='$(TARGET)-gcc' \ |
22 AR='$(TARGET)-ar rcu' \ | |
1849
e9ccf30fcdaa
fix ranlib issues in package lua
Volker Grabsch <vog@notjusthosting.com>
parents:
1801
diff
changeset
|
23 RANLIB='$(TARGET)-ranlib' \ |
186 | 24 a |
25 $(MAKE) -C '$(1)' -j 1 \ | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2811
diff
changeset
|
26 INSTALL_TOP='$(HOST_PREFIX)' \ |
186 | 27 INSTALL_BIN='$(1)/noinstall' \ |
28 INSTALL_MAN='$(1)/noinstall' \ | |
29 TO_BIN='lua.h' \ | |
290
bbb279243ae0
portability fix for Open Solaris: Enforce the use of $(INSTALL) in package lua (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
30 INSTALL='$(INSTALL)' \ |
1849
e9ccf30fcdaa
fix ranlib issues in package lua
Volker Grabsch <vog@notjusthosting.com>
parents:
1801
diff
changeset
|
31 install |
1475 | 32 |
33 '$(TARGET)-gcc' \ | |
1476
aada6ecef7dd
adjusted coding style of the test program of package lua
Volker Grabsch <vog@notjusthosting.com>
parents:
1475
diff
changeset
|
34 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
35 '$(2).c' -o '$(HOST_BINDIR)/test-lua.exe' \ |
2409 | 36 -llua |
186 | 37 endef |