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.

98 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:=0.8.17
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://irssi.org/files/
  13. PKG_MD5SUM:=ecf64be47978d89a742b435a81cb47db
  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-terminfo \
  55. --without-bot \
  56. --disable-proxy
  57. EXTRA_CFLAGS+=$(TARGET_CPPFLAGS)
  58. EXTRA_LDFLAGS+=-lncurses
  59. ifeq ($(BUILD_VARIANT),ssl)
  60. CONFIGURE_ARGS += \
  61. --with-ssl="$(STAGING_DIR)/usr"
  62. endif
  63. ifeq ($(BUILD_VARIANT),nossl)
  64. CONFIGURE_ARGS += \
  65. --without-ssl \
  66. --disable-ssl
  67. endif
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include/irssi
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/irssi/* $(1)/usr/include/irssi/
  71. endef
  72. define Package/irssi/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
  75. endef
  76. Package/irssi-nossl/install = $(Package/irssi/install)
  77. $(eval $(call BuildPackage,irssi))
  78. $(eval $(call BuildPackage,irssi-nossl))