Fix build with bmake
While here convert to new options framework
This commit is contained in:
parent
b3f92a3654
commit
dbe34e1d76
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317259
@ -1,9 +1,5 @@
|
||||
# New ports collection makefile for: mktorrent
|
||||
# Date created: 9 May 2010
|
||||
# Whom: Damian Gerow <dgerow@afflictions.org>
|
||||
#
|
||||
# Created by: Damian Gerow <dgerow@afflictions.org>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mktorrent
|
||||
PORTVERSION= 1.0
|
||||
@ -11,29 +7,35 @@ CATEGORIES= net-p2p
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= dgerow@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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user