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.

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