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.

51 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. PKG_LICENSE:=GPL-2.0
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/haserl
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=A CGI wrapper to embed shell scripts in HTML documents
  21. URL:=http://haserl.sourceforge.net/
  22. MENU:=1
  23. DEPENDS:= +HASERL_with_lua:liblua
  24. endef
  25. define Package/haserl/config
  26. source "$(SOURCE)/Config.in"
  27. endef
  28. ifeq ($(CONFIG_HASERL_with_lua),y)
  29. CONFIGURE_ARGS+=--with-lua
  30. TARGET_LDFLAGS += -ldl
  31. endif
  32. ifneq ($(CONFIG_HASERL_shell_lua),y)
  33. CONFIGURE_ARGS+=--disable-luashell
  34. endif
  35. ifneq ($(CONFIG_HASERL_shell_luac),y)
  36. CONFIGURE_ARGS+=--disable-luacshell
  37. endif
  38. define Package/haserl/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
  41. endef
  42. $(eval $(call BuildPackage,haserl))