Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 21:33:21 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310017 - in head: audio/mpdscribble databases/soci irc/libircclient textproc/discount
Message-ID:  <201301062133.r06LXLHN061832@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jan  6 21:33:21 2013
New Revision: 310017
URL: http://svnweb.freebsd.org/changeset/ports/310017

Log:
  Convert jlaffayes's ports to new options framework
  
  Approved by:	jlaffaye

Modified:
  head/audio/mpdscribble/Makefile
  head/databases/soci/Makefile
  head/irc/libircclient/Makefile
  head/textproc/discount/Makefile

Modified: head/audio/mpdscribble/Makefile
==============================================================================
--- head/audio/mpdscribble/Makefile	Sun Jan  6 21:24:28 2013	(r310016)
+++ head/audio/mpdscribble/Makefile	Sun Jan  6 21:33:21 2013	(r310017)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	mpdscribble
-# Date created:		July 13 2006
-# Whom:			Stepan Zastupov [RedChrom] <redchrom@gmail.com>
-#
+# Created by: Stepan Zastupov [RedChrom] <redchrom@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	mpdscribble
 PORTVERSION=	0.22
@@ -24,11 +20,12 @@ USE_RC_SUBR=	mpdscribble
 
 MAN1=		mpdscribble.1
 
-OPTIONS=	SOUP	"Use libsoup instead of libcurl"	off
+OPTIONS_DEFINE=	SOUP DOCS
+SOUP_DESC=	Use libsoup instead of libcurl
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_SOUP)
+.if ${PORT_OPTIONS:MSOUP}
 LIB_DEPENDS+=	soup-2.4.1:${PORTSDIR}/devel/libsoup
 CONFIGURE_ARGS+=	--with-http-client=soup
 .else
@@ -43,11 +40,11 @@ do-install:
 .if !exists(${PREFIX}/etc/mpdscribble.conf)
 	@(cd ${PREFIX}/etc && ${CP} mpdscribble.conf.sample mpdscribble.conf)
 .endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for file in AUTHORS NEWS README
 	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/databases/soci/Makefile
==============================================================================
--- head/databases/soci/Makefile	Sun Jan  6 21:24:28 2013	(r310016)
+++ head/databases/soci/Makefile	Sun Jan  6 21:33:21 2013	(r310017)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	soci
-# Date created:		2010-09-13
-# Whom:			Julien Laffaye <kimelto@gmail.com>
-#
+# Created by: Julien Laffaye <kimelto@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	soci
 PORTVERSION=	3.0.0
@@ -28,12 +24,12 @@ ALL_TARGET=	build_libs
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-OPTIONS=	MYSQL "Build MySQL driver" on \
-		PGSQL "Build PostgreSQL driver" on
+OPTIONS_DEFINE=	MYSQL PGSQL
+OPTIONS_DEFAULT=	MYSQL PGSQL
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.ifdef (WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
 USE_MYSQL=	yes
 PLIST_SUB+=	MYSQL=""
 CONFIGURE_ARGS+=--mysql-include=${LOCALBASE}/include/mysql \
@@ -42,7 +38,7 @@ CONFIGURE_ARGS+=--mysql-include=${LOCALB
 PLIST_SUB+=	MYSQL="@comment "
 .endif
 
-.ifdef (WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 USE_PGSQL=	yes
 PLIST_SUB+=	PGSQL=""
 CONFIGURE_ARGS+=--postgresql-include=${LOCALBASE}/include \
@@ -58,4 +54,4 @@ post-patch:
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/irc/libircclient/Makefile
==============================================================================
--- head/irc/libircclient/Makefile	Sun Jan  6 21:24:28 2013	(r310016)
+++ head/irc/libircclient/Makefile	Sun Jan  6 21:33:21 2013	(r310017)
@@ -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

Modified: head/textproc/discount/Makefile
==============================================================================
--- head/textproc/discount/Makefile	Sun Jan  6 21:24:28 2013	(r310016)
+++ head/textproc/discount/Makefile	Sun Jan  6 21:33:21 2013	(r310017)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	discount
-# Date created:				2009-04-22
-# Whom:					Julien Laffaye <kimelto@gmail.com>
-#
+# Created by: Julien Laffaye <kimelto@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	discount
 PORTVERSION=	2.1.1.3
@@ -47,21 +43,25 @@ PLIST_FILES=	bin/markdown \
 		lib/libmarkdown.a \
 		include/mkdio.h
 
-OPTIONS=	EXTRA "Enable all extra features" on \
-		TAB8 "Use a tabstop of 8 (default is 4)" on \
-		SAMPLES "Install sample programs" off
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	EXTRA TAB8 SAMPLES
+OPTIONS_DEFAULT=	EXTRA TAB8
 
-.ifdef (WITH_EXTRA)
+EXTRA_DESC=	Enable all extra features
+TAB8_DESC=	Use a tabstop of 8 (default is 4)
+SAMPLES_DESC=	Install sample programs
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXTRA}
 CONFIGURE_ARGS+=--enable-dl-tag \
 		--enable-all-features
 .endif
 
-.ifdef (WITH_TAB8)
+.if ${PORT_OPTIONS:MTAB8}
 CONFIGURE_ARGS+=--with-tabstops=8
 .endif
 
-.ifdef (WITH_SAMPLES)
+.if ${PORT_OPTIONS:MSAMPLES}
 INSTALL_TARGET+=install.samples
 PLIST_FILES+=	bin/makepage \
 		bin/mkd2html \
@@ -72,4 +72,4 @@ MAN1+=		makepage.1 \
 
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301062133.r06LXLHN061832>