svn commit: r317259 - head/net-p2p/mktorrent

Baptiste Daroussin bapt at FreeBSD.org
Fri May 3 21:15:44 UTC 2013


Author: bapt
Date: Fri May  3 21:15:43 2013
New Revision: 317259
URL: http://svnweb.freebsd.org/changeset/ports/317259

Log:
  Fix build with bmake
  While here convert to new options framework

Modified:
  head/net-p2p/mktorrent/Makefile

Modified: head/net-p2p/mktorrent/Makefile
==============================================================================
--- head/net-p2p/mktorrent/Makefile	Fri May  3 21:09:22 2013	(r317258)
+++ head/net-p2p/mktorrent/Makefile	Fri May  3 21:15:43 2013	(r317259)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	mktorrent
-# Date created:		9 May 2010
-# Whom:			Damian Gerow <dgerow at afflictions.org>
-#
+# Created by: Damian Gerow <dgerow at afflictions.org>
 # $FreeBSD$
-#
 
 PORTNAME=	mktorrent
 PORTVERSION=	1.0
@@ -11,29 +7,35 @@ CATEGORIES=	net-p2p
 MASTER_SITES=	SF
 
 MAINTAINER=	dgerow at afflictions.org
-COMMENT=	A command-line utility for creating BitTorrent metainfo files
+COMMENT=	Command-line utility for creating BitTorrent metainfo files
 
+.if defined(.PARSEDIR)
+USE_GMAKE=	yes
+.else
 MAKEFILE=	BSDmakefile
+.endif
 MAKE_FLAGS=	USE_LONG_OPTIONS=1
 
 PLIST_FILES=	bin/mktorrent
 
-OPTIONS=	THREADS		"Enable support for pthreads"		on \
-		OPENSSL		"Use OpenSSL for hashing"		on \
-		HASHCHECK	"Verify file hashes" 			on
+OPTIONS_DEFINE=	THREADS OPENSSL HASHCHECK
+OPTIONS_DEFAULT=	THREADS OPENSSL HASHCHECK
+THREADS_DESC=	Enable support for pthreads
+OPENSSL_DESC=	Use OpenSSL for hashing
+HASHCHECK_DESC=	Verify file hashes
 
 .include <bsd.port.options.mk>
 
-.if !defined(WITHOUT_THREADS)
+.if ${PORT_OPTIONS:MTHREADS}
 MAKE_FLAGS+=	USE_PTHREADS=1
 .endif
 
-.if !defined(WITHOUT_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
 MAKE_FLAGS+=	USE_OPENSSL=1
 USE_OPENSSL=	yes
 .endif
 
-.if defined(WITHOUT_HASHCHECK)
+.if ! ${PORT_OPTIONS:MHASHCHECK}
 MAKE_FLAGS+=	NO_HASH_CHECK=1
 .endif
 


More information about the svn-ports-all mailing list