diff options
author | bapt <bapt@FreeBSD.org> | 2013-01-07 05:33:21 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-01-07 05:33:21 +0800 |
commit | e17a197dea7c0fb2f9f263b6563b6e138f746768 (patch) | |
tree | a23c6b149b807b9b3910875d1c381a87b2d24249 /irc/libircclient | |
parent | 52571079c8a2d8c229954a7af459b3a2e142e904 (diff) | |
download | freebsd-ports-gnome-e17a197dea7c0fb2f9f263b6563b6e138f746768.tar.gz freebsd-ports-gnome-e17a197dea7c0fb2f9f263b6563b6e138f746768.tar.zst freebsd-ports-gnome-e17a197dea7c0fb2f9f263b6563b6e138f746768.zip |
Convert jlaffayes's ports to new options framework
Approved by: jlaffaye
Diffstat (limited to 'irc/libircclient')
-rw-r--r-- | irc/libircclient/Makefile | 20 |
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 |