Mercurial > mxe-octave
annotate src/lua.mk @ 1475:72864135031e
add test program for lua
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Mon, 06 Dec 2010 01:31:02 +1100 |
parents | 29f1ba4559ae |
children | aada6ecef7dd |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/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 |
186 | 4 # Lua |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
5 PKG := lua |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
6 $(PKG)_IGNORE := |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
7 $(PKG)_VERSION := 5.1.4 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
8 $(PKG)_CHECKSUM := 2b11c8e60306efb7f0734b747588f57995493db7 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
9 $(PKG)_SUBDIR := lua-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
10 $(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.lua.org/ |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
290
diff
changeset
|
12 $(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
|
13 $(PKG)_DEPS := gcc |
186 | 14 |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://www.lua.org/download.html' | \ | |
17 $(SED) -n 's,.*lua-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
18 head -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 $(MAKE) -C '$(1)/src' -j '$(JOBS)' \ | |
23 INSTALL_TOP='$(PREFIX)/$(TARGET)' \ | |
24 CC='$(TARGET)-gcc' \ | |
25 AR='$(TARGET)-ar rcu' \ | |
26 a | |
27 $(MAKE) -C '$(1)' -j 1 \ | |
28 INSTALL_TOP='$(PREFIX)/$(TARGET)' \ | |
29 INSTALL_BIN='$(1)/noinstall' \ | |
30 INSTALL_MAN='$(1)/noinstall' \ | |
31 TO_BIN='lua.h' \ | |
32 RANLIB='$(TARGET)-ranlib' \ | |
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
|
33 INSTALL='$(INSTALL)' \ |
186 | 34 install ranlib |
1475 | 35 |
36 '$(TARGET)-gcc' \ | |
37 -W -Wall -Werror -std=c99 -pedantic \ | |
38 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \ | |
39 -llua | |
186 | 40 endef |