aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
Diffstat (limited to 'irc')
-rw-r--r--irc/libircclient/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/irc/libircclient/Makefile b/irc/libircclient/Makefile
index e0e4be5e7f63..b422b0d379ca 100644
--- a/irc/libircclient/Makefile
+++ b/irc/libircclient/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: libircclient
-# Date created: 2008-11-20
-# Whom: Julien Laffaye <kimelto@gmail.com>
-#
+# Created by: Julien Laffaye <kimelto@gmail.com>
# $FreeBSD$
-#
PORTNAME= libircclient
PORTVERSION= 1.6
@@ -13,18 +9,20 @@ MASTER_SITES= SF
MAINTAINER= jlaffaye@FreeBSD.org
COMMENT= An IRC library to create IRC clients
-OPTIONS= SSL "Build with SSL Support" on \
- IPV6 "Build with IPv6 Support" on
+OPTIONS_DEFINE= OPENSSL IPV6 DOCS EXAMPLES
+OPTIONS_DEFAULT= OPENSSL
BUILD_WRKSRC= ${WRKSRC}/src
GNU_CONFIGURE= yes
-.if !defined(WITHOUT_SSL)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPENSSL}
CONFIGURE_ARGS+= --enable-openssl
USE_OPENSSL= yes
.endif
-.if !defined(WITHOUT_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
@@ -37,11 +35,11 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/src/libircclient.a ${PREFIX}/lib
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} "installing additional examples to ${EXAMPLESDIR}"
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif