pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ngircd: add options.mk & update Makefile



Module Name:	pkgsrc-wip
Committed By:	sxvghd <sxvghd%firemail.cc@localhost>
Pushed By:	sxvghd
Date:		Sun Dec 15 20:50:03 2019 +0100
Changeset:	22267612c5cbeae6d0383905355e2976f877c6c1

Modified Files:
	ngircd/Makefile
Added Files:
	ngircd/options.mk

Log Message:
ngircd: add options.mk & update Makefile

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=22267612c5cbeae6d0383905355e2976f877c6c1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ngircd/Makefile   |  2 ++
 ngircd/options.mk | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diffs:
diff --git a/ngircd/Makefile b/ngircd/Makefile
index 61201302ad..7fd6ae72ad 100644
--- a/ngircd/Makefile
+++ b/ngircd/Makefile
@@ -10,7 +10,9 @@ COMMENT=	A free, portable and lightweight IRC server.
 LICENSE=	gnu-gpl-v2
 
 GNU_CONFIGURE=	yes
+USE_LANGUAGES=	c
 
 RCD_SCRIPTS+=	ngircd
 
+.include "options.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/ngircd/options.mk b/ngircd/options.mk
new file mode 100644
index 0000000000..206ea450fb
--- /dev/null
+++ b/ngircd/options.mk
@@ -0,0 +1,55 @@
+PKG_OPTIONS_VAR=	PKG_OPTIONS.ngircd
+PKG_SUPPORTED_OPTIONS=	zlib openssl gnutls tcpwrap ident pam iconv ipv6 sniffer irc+ strictrfc
+PKG_SUGGESTED_OPTIONS=	zlib ident ipv6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mzlib)
+CONFIGURE_ARGS+=	--with-zlib
+.  include "../../devel/zlib/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+CONFIGURE_ARGS+=	--with-openssl
+.  include "../../security/openssl/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+CONFIGURE_ARGS+=	--with-gnutls
+.  include "../../security/gnutls/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mtcpwrap)
+CONFIGURE_ARGS+=	--with-tcp-wrappers
+.endif
+
+.if !empty(PKG_OPTIONS:Mident)
+CONFIGURE_ARGS+=	--with-ident
+.  include "../../security/libident/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+=	--with-pam
+.  include "../../security/openpam/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Miconv)
+CONFIGURE_ARGS+=	--with-iconv
+.  include "../../converters/libiconv/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mipv6)
+CONFIGURE_ARGS+=	--enable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Msniffer)
+CONFIGURE_ARGS+=	--enable-sniffer
+.endif
+
+.if !empty(PKG_OPTIONS:Mirc+)
+CONFIGURE_ARGS+=	--enable-ircplus
+.endif
+
+.if !empty(PKG_OPTIONS:Mstrictrfc)
+CONFIGURE_ARGS+=	--enable-strict-rfc
+.endif


Home | Main Index | Thread Index | Old Index