aboutsummaryrefslogtreecommitdiff
path: root/irc/anope
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-01-07 20:50:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-01-07 20:50:20 +0000
commitbaedaefc1363429069319dd267ae7cf8daab2ad6 (patch)
treec532e96c629a3d179d5c6a9afedc5d84033ebf76 /irc/anope
parent721c5abc42184ea05290452b15d3d2e62b0f44d8 (diff)
downloadports-baedaefc1363429069319dd267ae7cf8daab2ad6.tar.gz
ports-baedaefc1363429069319dd267ae7cf8daab2ad6.zip
Convert dhn's ports to the new options framework
While here trim headers and convert some USE_GNOME=pkgconfig to USE_PKGCONFIG=build Approved by: maintainer (dhn)
Notes
Notes: svn path=/head/; revision=310055
Diffstat (limited to 'irc/anope')
-rw-r--r--irc/anope/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/irc/anope/Makefile b/irc/anope/Makefile
index 075b309b6267..a7f220367345 100644
--- a/irc/anope/Makefile
+++ b/irc/anope/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: anope
-# Date created: 13/04/2004
-# Whom: mat
-#
+# Created by: mat
# $FreeBSD$
-#
PORTNAME= anope
PORTVERSION= 1.8.7
@@ -28,7 +24,8 @@ PORTDOCS= BUGS COPYING DEFCON EVENTS \
USE_RC_SUBR= anope
-OPTIONS= MYSQL "Use mysql" ON
+OPTIONS_DEFINE= MYSQL
+OPTIONS_DEFAULT= MYSQL
.include <bsd.port.pre.mk>
@@ -37,7 +34,7 @@ OPTIONS= MYSQL "Use mysql" ON
CFLAGS+= -fPIC
.endif
-.if defined(WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
.else
CONFIGURE_ARGS+= --without-mysql
@@ -48,7 +45,7 @@ pre-install:
@${MKDIR} ${DATADIR}
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDCOS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
.endif