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.

97 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2011 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:=irssi
  9. PKG_VERSION:=1.0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/irssi/irssi/releases/download/1.0.2/
  13. PKG_HASH:=5c1c3cc2caf103aad073fadeb000e0f8cb3b416833a7f43ceb8bd9fcf275fbe9
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/irssi/Default
  20. SUBMENU:=Instant Messaging
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+glib2 +libncurses +libpthread
  24. TITLE:=Console IRC client
  25. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  26. URL:=http://irssi.org/
  27. endef
  28. define Package/irssi/Default/description
  29. Irssi is a terminal based IRC client for UNIX systems.
  30. endef
  31. define Package/irssi
  32. $(call Package/irssi/Default)
  33. TITLE+= (with OpenSSL support)
  34. DEPENDS+= +libopenssl
  35. VARIANT:=ssl
  36. endef
  37. define Package/irssi/description
  38. $(call Package/irssi/Default/description)
  39. This package is built with OpenSSL support.
  40. endef
  41. define Package/irssi-nossl
  42. $(call Package/irssi/Default)
  43. TITLE+= (without OpenSSL support)
  44. VARIANT:=nossl
  45. endef
  46. define Package/irssi-nossl/description
  47. $(call Package/irssi/Default/description)
  48. This package is built without OpenSSL support.
  49. endef
  50. CONFIGURE_ARGS += \
  51. --with-perl=no \
  52. --with-glib-prefix="$(STAGING_DIR)/usr" \
  53. --with-textui \
  54. --without-bot \
  55. --disable-proxy
  56. EXTRA_CFLAGS+=$(TARGET_CPPFLAGS)
  57. EXTRA_LDFLAGS+=-lncurses
  58. ifeq ($(BUILD_VARIANT),ssl)
  59. CONFIGURE_ARGS += \
  60. --with-ssl="$(STAGING_DIR)/usr"
  61. endif
  62. ifeq ($(BUILD_VARIANT),nossl)
  63. CONFIGURE_ARGS += \
  64. --without-ssl \
  65. --disable-ssl
  66. endif
  67. define Build/InstallDev
  68. $(INSTALL_DIR) $(1)/usr/include/irssi
  69. $(CP) $(PKG_INSTALL_DIR)/usr/include/irssi/* $(1)/usr/include/irssi/
  70. endef
  71. define Package/irssi/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
  74. endef
  75. Package/irssi-nossl/install = $(Package/irssi/install)
  76. $(eval $(call BuildPackage,irssi))
  77. $(eval $(call BuildPackage,irssi-nossl))