diff options
Diffstat (limited to 'net-p2p/mktorrent/Makefile')
-rw-r--r-- | net-p2p/mktorrent/Makefile | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/net-p2p/mktorrent/Makefile b/net-p2p/mktorrent/Makefile index 995a3cb4580c..08397e1a706f 100644 --- a/net-p2p/mktorrent/Makefile +++ b/net-p2p/mktorrent/Makefile @@ -3,24 +3,24 @@ PORTNAME= mktorrent PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= SF MAINTAINER= dgerow@afflictions.org COMMENT= Command-line utility for creating BitTorrent metainfo files -.if defined(.PARSEDIR) -USES= gmake -.else +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + MAKEFILE= BSDmakefile -.endif -MAKE_FLAGS= USE_LONG_OPTIONS=1 +MAKE_ARGS= USE_LONG_OPTIONS=1 PLIST_FILES= bin/mktorrent 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 @@ -28,19 +28,9 @@ OPENSSL_USES= ssl OPENSSL_CFLAGS= -I${OPENSSLINC} OPENSSL_LDFLAGS= -L${OPENSSLLIB} -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MTHREADS} -MAKE_FLAGS+= USE_PTHREADS=1 -.endif - -.if ${PORT_OPTIONS:MOPENSSL} -MAKE_FLAGS+= USE_OPENSSL=1 -.endif - -.if ! ${PORT_OPTIONS:MHASHCHECK} -MAKE_FLAGS+= NO_HASH_CHECK=1 -.endif +THREADS_MAKE_ARGS= USE_PTHREADS=1 +OPENSSL_MAKE_ARGS= USE_OPENSSL=1 +HASHCHECK_MAKE_ARGS= NO_HASH_CHECK=1 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |