You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=haserl
  9. PKG_VERSION:=0.9.33
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/haserl
  13. PKG_MD5SUM:=a9decddb508944d56f71dd2f821e2ec5
  14. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/haserl
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=A CGI wrapper to embed shell scripts in HTML documents
  20. URL:=http://haserl.sourceforge.net/
  21. MENU:=1
  22. DEPENDS:= +HASERL_with_lua:liblua
  23. endef
  24. define Package/haserl/config
  25. source "$(SOURCE)/Config.in"
  26. endef
  27. ifeq ($(CONFIG_HASERL_with_lua),y)
  28. CONFIGURE_ARGS+=--with-lua
  29. TARGET_LDFLAGS += -ldl
  30. endif
  31. ifneq ($(CONFIG_HASERL_shell_lua),y)
  32. CONFIGURE_ARGS+=--disable-luashell
  33. endif
  34. ifneq ($(CONFIG_HASERL_shell_luac),y)
  35. CONFIGURE_ARGS+=--disable-luacshell
  36. endif
  37. define Package/haserl/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,haserl))