annotate src/lua.mk @ 186:61e5dd6998f9

new package: lua
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 10 Nov 2008 10:15:55 +0100
parents
children 5bf9071e67b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
186
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Lua
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # http://www.lua.org/
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := lua
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_VERSION := 5.1.4
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := lua-$($(PKG)_VERSION)
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE)
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://www.lua.org/download.html' | \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(SED) -n 's,.*lua-\([0-9][^>]*\)\.tar.*,\1,p' | \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 head -1
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 define $(PKG)_BUILD
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(MAKE) -C '$(1)/src' -j '$(JOBS)' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 INSTALL_TOP='$(PREFIX)/$(TARGET)' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 CC='$(TARGET)-gcc' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 AR='$(TARGET)-ar rcu' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 a
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(MAKE) -C '$(1)' -j 1 \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 INSTALL_TOP='$(PREFIX)/$(TARGET)' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 INSTALL_BIN='$(1)/noinstall' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 INSTALL_MAN='$(1)/noinstall' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 TO_BIN='lua.h' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 RANLIB='$(TARGET)-ranlib' \
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 install ranlib
61e5dd6998f9 new package: lua
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef