tcpreplay: update to version 4.2.5
[feed/packages.git] / utils / haserl / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=haserl
11 PKG_VERSION:=0.9.35
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/haserl
16 PKG_HASH:=a1b633e80f3e2638e7f8f850786e95072cfd9877f88780092996fd6aaf7ae2da
17 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_CONFIG_DEPENDS:= \
22 CONFIG_HASERL_with_lua \
23 CONFIG_HASERL_shell_luac \
24 CONFIG_HASERL_shell_lua \
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/haserl
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=A CGI wrapper to embed shell scripts in HTML documents
32 URL:=http://haserl.sourceforge.net/
33 MENU:=1
34 DEPENDS:= +HASERL_with_lua:liblua
35 endef
36
37 define Package/haserl/config
38 source "$(SOURCE)/Config.in"
39 endef
40
41 ifeq ($(CONFIG_HASERL_with_lua),y)
42 CONFIGURE_ARGS+=--with-lua
43 TARGET_LDFLAGS += -ldl
44 endif
45 ifneq ($(CONFIG_HASERL_shell_lua),y)
46 CONFIGURE_ARGS+=--disable-luashell
47 endif
48 ifneq ($(CONFIG_HASERL_shell_luac),y)
49 CONFIGURE_ARGS+=--disable-luacshell
50 endif
51
52 define Package/haserl/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,haserl))