2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
>
19 PKG_LICENSE_FILES
:=COPYING
21 PKG_CONFIG_DEPENDS
:= \
22 CONFIG_HASERL_with_lua \
23 CONFIG_HASERL_shell_luac \
24 CONFIG_HASERL_shell_lua \
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=A CGI wrapper to embed
shell scripts in HTML documents
32 URL
:=http
://haserl.sourceforge.net
/
34 DEPENDS
:= +HASERL_with_lua
:liblua
37 define Package
/haserl
/config
38 source
"$(SOURCE)/Config.in"
41 ifeq ($(CONFIG_HASERL_with_lua
),y
)
42 CONFIGURE_ARGS
+=--with-lua
43 TARGET_LDFLAGS
+= -ldl
45 ifneq ($(CONFIG_HASERL_shell_lua
),y
)
46 CONFIGURE_ARGS
+=--disable-luashell
48 ifneq ($(CONFIG_HASERL_shell_luac
),y
)
49 CONFIGURE_ARGS
+=--disable-luacshell
52 define Package
/haserl
/install
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/haserl
$(1)/usr
/bin
/
57 $(eval
$(call BuildPackage
,haserl
))