source: packages/net/irssi/Makefile @ 25410

Last change on this file since 25410 was 25410, checked in by acinonyx, 5 years ago

[packages] irssi: Add missing libpthread dependency

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=irssi
11PKG_VERSION:=0.8.15
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://irssi.org/files/
16PKG_MD5SUM:=1dcb3f511b88df94b0c996f36668c7da
17
18PKG_FIXUP:=libtool
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
21
22include $(INCLUDE_DIR)/package.mk
23include $(INCLUDE_DIR)/nls.mk
24
25define Package/irssi/Default
26  SUBMENU:=Instant Messaging
27  SECTION:=net
28  CATEGORY:=Network
29  DEPENDS:=+glib2 +libncurses +libpthread
30  TITLE:=Console IRC client
31  MAINTAINER:=Peter Wagner <tripolar@gmx.at>
32  URL:=http://irssi.org/
33endef
34
35define Package/irssi/Default/description
36        Irssi is a terminal based IRC client for UNIX systems.
37endef
38
39define Package/irssi
40$(call Package/irssi/Default)
41  TITLE+= (with OpenSSL support)
42  DEPENDS+= +libopenssl
43  VARIANT:=ssl
44endef
45
46define Package/irssi/description
47$(call Package/irssi/Default/description)
48 This package is built with OpenSSL support.
49endef
50
51define Package/irssi-nossl
52$(call Package/irssi/Default)
53  TITLE+= (without OpenSSL support)
54  VARIANT:=nossl
55endef
56
57define Package/irssi-nossl/description
58$(call Package/irssi/Default/description)
59 This package is built without OpenSSL support.
60endef
61
62CONFIGURE_ARGS += \
63        --with-perl=no \
64        --with-glib-prefix="$(STAGING_DIR)/usr" \
65        --with-textui \
66        --without-terminfo \
67        --without-bot \
68        --disable-proxy
69
70EXTRA_CFLAGS+=$(TARGET_CPPFLAGS) 
71EXTRA_LDFLAGS+=-lncurses
72
73ifeq ($(BUILD_VARIANT),ssl)
74        CONFIGURE_ARGS += \
75                --with-ssl="$(STAGING_DIR)/usr"
76endif
77
78ifeq ($(BUILD_VARIANT),nossl)
79        CONFIGURE_ARGS += \
80                --without-ssl \
81                --disable-ssl
82endif
83
84define Package/irssi/install
85        $(INSTALL_DIR) $(1)/usr/bin
86        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/fe-text/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
87endef
88
89Package/irssi-nossl/install = $(Package/irssi/install)
90
91$(eval $(call BuildPackage,irssi))
92$(eval $(call BuildPackage,irssi-nossl))
Note: See TracBrowser for help on using the repository browser.