source: packages/net/irssi/Makefile @ 19940

Last change on this file since 19940 was 19940, checked in by tripolar, 7 years ago

irssi Makefile style ++ :)

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