Quellcode durchsuchen

import irssi and update to latest version

Signed-off-by: Peter Wagner <tripolar@gmx.at>
Peter Wagner vor 10 Jahren
Ursprung
Commit
a629191c5a
1 geänderte Dateien mit 98 neuen und 0 gelöschten Zeilen
  1. 98
    0
      net/irssi/Makefile

+ 98
- 0
net/irssi/Makefile Datei anzeigen

@@ -0,0 +1,98 @@
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
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=irssi
11
+PKG_VERSION:=0.8.16
12
+PKG_RELEASE:=1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15
+PKG_SOURCE_URL:=http://irssi.org/files/
16
+PKG_MD5SUM:=4346119c4c000d0198cda17666ff1f06
17
+
18
+PKG_FIXUP:=autoreconf
19
+PKG_INSTALL:=1
20
+
21
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
22
+
23
+include $(INCLUDE_DIR)/package.mk
24
+include $(INCLUDE_DIR)/nls.mk
25
+
26
+define Package/irssi/Default
27
+  SUBMENU:=Instant Messaging
28
+  SECTION:=net
29
+  CATEGORY:=Network
30
+  DEPENDS:=+glib2 +libncurses +libpthread
31
+  TITLE:=Console IRC client
32
+  MAINTAINER:=Peter Wagner <tripolar@gmx.at>
33
+  URL:=http://irssi.org/
34
+endef
35
+
36
+define Package/irssi/Default/description
37
+	Irssi is a terminal based IRC client for UNIX systems.
38
+endef
39
+
40
+define Package/irssi
41
+$(call Package/irssi/Default)
42
+  TITLE+= (with OpenSSL support)
43
+  DEPENDS+= +libopenssl
44
+  VARIANT:=ssl
45
+endef
46
+
47
+define Package/irssi/description
48
+$(call Package/irssi/Default/description)
49
+ This package is built with OpenSSL support.
50
+endef
51
+
52
+define Package/irssi-nossl
53
+$(call Package/irssi/Default)
54
+  TITLE+= (without OpenSSL support)
55
+  VARIANT:=nossl
56
+endef
57
+
58
+define Package/irssi-nossl/description
59
+$(call Package/irssi/Default/description)
60
+ This package is built without OpenSSL support.
61
+endef
62
+
63
+CONFIGURE_ARGS += \
64
+	--with-perl=no \
65
+	--with-glib-prefix="$(STAGING_DIR)/usr" \
66
+	--with-textui \
67
+	--without-terminfo \
68
+	--without-bot \
69
+	--disable-proxy
70
+
71
+EXTRA_CFLAGS+=$(TARGET_CPPFLAGS)
72
+EXTRA_LDFLAGS+=-lncurses
73
+
74
+ifeq ($(BUILD_VARIANT),ssl)
75
+	CONFIGURE_ARGS += \
76
+		--with-ssl="$(STAGING_DIR)/usr"
77
+endif
78
+
79
+ifeq ($(BUILD_VARIANT),nossl)
80
+	CONFIGURE_ARGS += \
81
+		--without-ssl \
82
+		--disable-ssl
83
+endif
84
+
85
+define Build/InstallDev
86
+	$(INSTALL_DIR) $(1)/usr/include/irssi
87
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/irssi/* $(1)/usr/include/irssi/
88
+endef
89
+
90
+define Package/irssi/install
91
+	$(INSTALL_DIR) $(1)/usr/bin
92
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
93
+endef
94
+
95
+Package/irssi-nossl/install = $(Package/irssi/install)
96
+
97
+$(eval $(call BuildPackage,irssi))
98
+$(eval $(call BuildPackage,irssi-nossl))