summaryrefslogtreecommitdiff
path: root/package/irssi
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-20 07:58:13 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-22 22:31:26 +0200
commit26e2aca4359bc7cff080c8446a67b838a5026d15 (patch)
tree404eafc8d39d46286fc41118e9d511f873b6ce8d /package/irssi
parent75114af47a5f090b59b80d511472493b93c2e2c6 (diff)
ssl: rework ssl support
Use libressl as default, where SSL is required. Allow to choose openssl. Disable SSL where not strictly required to build.
Diffstat (limited to 'package/irssi')
-rw-r--r--package/irssi/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/package/irssi/Makefile b/package/irssi/Makefile
index fefbbda05..5d5afe76a 100644
--- a/package/irssi/Makefile
+++ b/package/irssi/Makefile
@@ -14,14 +14,20 @@ PKG_BUILDDEP:= glib ncurses
PKG_URL:= http://www.irssi.org/
PKG_SITES:= http://distfiles.openadk.org/
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
-
-PKG_FLAVOURS_IRSSI:= WITH_SSL WITH_IPV6
-PKGFD_WITH_SSL:= enable ssl/tls support
-PKGFS_WITH_SSL:= libopenssl
-PKGFB_WITH_SSL:= openssl
+PKG_CHOICES_IRSSI:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
+PKGCD_WITHOUT_SSL:= use no ssl
+PKGCD_WITH_LIBRESSL:= use libressl for crypto
+PKGCB_WITH_LIBRESSL:= libressl
+PKGCS_WITH_LIBRESSL:= libressl
+PKGCD_WITH_OPENSSL:= use openssl for crypto
+PKGCB_WITH_OPENSSL:= openssl
+PKGCS_WITH_OPENSSL:= libopenssl
+
+PKG_FLAVOURS_IRSSI:= WITH_IPV6
PKGFD_WITH_IPV6:= enable ipv6 support
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,IRSSI,irssi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
@@ -40,10 +46,10 @@ else
CONFIGURE_ARGS+= --disable-ipv6
endif
-ifneq (${ADK_PACKAGE_IRSSI_WITH_SSL},)
-CONFIGURE_ARGS+= --enable-ssl
-else
+ifeq (${ADK_PACKAGE_IRSSI_WITHOUT_SSL},y)
CONFIGURE_ARGS+= --disable-ssl
+else
+CONFIGURE_ARGS+= --enable-ssl
endif
irssi-install: