xref: /OK3568_Linux_fs/buildroot/package/irssi/irssi.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# irssi
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunIRSSI_VERSION = 1.2.3
8*4882a593SmuzhiyunIRSSI_SOURCE = irssi-$(IRSSI_VERSION).tar.xz
9*4882a593Smuzhiyun# Do not use the github helper here. The generated tarball is *NOT* the
10*4882a593Smuzhiyun# same as the one uploaded by upstream for the release.
11*4882a593SmuzhiyunIRSSI_SITE = https://github.com/irssi/irssi/releases/download/$(IRSSI_VERSION)
12*4882a593SmuzhiyunIRSSI_LICENSE = GPL-2.0+
13*4882a593SmuzhiyunIRSSI_LICENSE_FILES = COPYING
14*4882a593SmuzhiyunIRSSI_CPE_ID_VENDOR = irssi
15*4882a593SmuzhiyunIRSSI_DEPENDENCIES = host-pkgconf libglib2 ncurses openssl
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunIRSSI_CONF_OPTS = \
18*4882a593Smuzhiyun	--disable-glibtest \
19*4882a593Smuzhiyun	--without-perl
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IRSSI_PROXY),y)
22*4882a593SmuzhiyunIRSSI_CONF_OPTS += --with-proxy
23*4882a593Smuzhiyun# If shared libs are disabled, 'proxy' has to go in the list of built-in
24*4882a593Smuzhiyun# modules.
25*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
26*4882a593SmuzhiyunIRSSI_CONF_OPTS += --with-modules=proxy
27*4882a593Smuzhiyunendif
28*4882a593Smuzhiyunelse
29*4882a593SmuzhiyunIRSSI_CONF_OPTS += --without-proxy
30*4882a593Smuzhiyunendif # proxy
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IRSSI_TRUE_COLOR),y)
33*4882a593SmuzhiyunIRSSI_CONF_OPTS += --enable-true-color
34*4882a593Smuzhiyunelse
35*4882a593SmuzhiyunIRSSI_CONF_OPTS += --disable-true-color
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun# Cross-compiling irssi with the perl interpreter enabled doesn't work
39*4882a593Smuzhiyun# yet. So, remove scripts as they are useless in that case.
40*4882a593Smuzhiyundefine IRSSI_REMOVE_SCRIPTS
41*4882a593Smuzhiyun	rm -rf $(TARGET_DIR)/usr/share/irssi/scripts/
42*4882a593Smuzhiyunendef
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunIRSSI_POST_INSTALL_TARGET_HOOKS += IRSSI_REMOVE_SCRIPTS
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun$(eval $(autotools-package))
47