mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
f4e2b02ee6
PR: ports/187202 Submitted by: Anton Sayetsky <vsjcfm@gmail.com> Approved by: maintainer
49 lines
1017 B
Makefile
49 lines
1017 B
Makefile
# Created by: Damian Gerow <dgerow@afflictions.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mktorrent
|
|
PORTVERSION= 1.0
|
|
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
|
|
MAKEFILE= BSDmakefile
|
|
.endif
|
|
MAKE_FLAGS= 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
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
|
MAKE_FLAGS+= USE_PTHREADS=1
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
|
MAKE_FLAGS+= USE_OPENSSL=1
|
|
USE_OPENSSL= yes
|
|
.endif
|
|
|
|
.if ! ${PORT_OPTIONS:MHASHCHECK}
|
|
MAKE_FLAGS+= NO_HASH_CHECK=1
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/BSDmakefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|