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.

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