2014-03-27 07:03:29 +00:00
|
|
|
#
|
2009-05-22 18:35:25 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2007-07-16 18:17:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=haserl
|
2014-05-05 19:31:06 +00:00
|
|
|
PKG_VERSION:=0.9.32
|
2008-07-16 23:05:47 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-07-16 18:17:51 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/haserl
|
2014-05-05 19:31:06 +00:00
|
|
|
PKG_MD5SUM:=18e2208aea6d772d1670c1a648bb6b77
|
2007-07-16 18:17:51 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/haserl
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=A CGI wrapper to embed shell scripts in HTML documents
|
|
|
|
URL:=http://haserl.sourceforge.net/
|
2014-05-05 19:31:06 +00:00
|
|
|
MENU:=1
|
|
|
|
DEPENDS:= +HASERL_with_lua:liblua
|
2007-07-16 18:17:51 +00:00
|
|
|
endef
|
|
|
|
|
2014-05-05 19:31:06 +00:00
|
|
|
define Package/haserl/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_HASERL_with_lua),y)
|
|
|
|
CONFIGURE_ARGS+=--with-lua
|
|
|
|
TARGET_LDFLAGS += -ldl
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_HASERL_shell_lua),y)
|
|
|
|
CONFIGURE_ARGS+=--disable-luashell
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_HASERL_shell_luac),y)
|
|
|
|
CONFIGURE_ARGS+=--disable-luacshell
|
|
|
|
endif
|
|
|
|
|
2007-07-16 18:17:51 +00:00
|
|
|
define Package/haserl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,haserl))
|