[cosmetic] change occurences of LUA to Lua (from http://www.lua.org/about.html: Pleas...
[openwrt/svn-archive/archive.git] / lang / luaprofiler / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=luaprofiler
11 PKG_VERSION:=2.0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/3400
16 PKG_MD5SUM:=611435c8e61e1a330ee0aa8ddc9c124a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/luaprofiler
21 SUBMENU:=Lua
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=Lua Profiler
25 URL:=http://luaprofiler.luaforge.net
26 endef
27
28 define Package/luaprofiler/description
29 Profile any Lua application
30 endef
31
32 define Build/Configure
33
34 endef
35
36 TARGET_CFLAGS += $(FPIC) \
37 -I$(STAGING_DIR)/usr/include
38
39 TARGET_LDFLAGS += -llua
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 LDFLAGS="$(TARGET_LDFLAGS)" \
46 -f Makefile.linux
47 endef
48
49 define Package/luaprofiler/install
50 $(INSTALL_DIR) $(1)/usr/lib/lua
51 $(CP) $(PKG_BUILD_DIR)/bin/profiler.so $(1)/usr/lib/lua/
52 endef
53
54 $(eval $(call BuildPackage,luaprofiler))