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