summaryrefslogtreecommitdiff
path: root/net-p2p/mktorrent/Makefile
blob: 08397e1a706f4b4603c1e9db08042ab211b66726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Damian Gerow <dgerow@afflictions.org>
# $FreeBSD$

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

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

MAKEFILE=	BSDmakefile
MAKE_ARGS=	USE_LONG_OPTIONS=1

PLIST_FILES=	bin/mktorrent

OPTIONS_DEFINE=	THREADS OPENSSL HASHCHECK
OPTIONS_DEFAULT=	THREADS OPENSSL HASHCHECK

OPENSSL_DESC=	Use OpenSSL for hashing
HASHCHECK_DESC=	Verify file hashes

OPENSSL_USES=		ssl
OPENSSL_CFLAGS=		-I${OPENSSLINC}
OPENSSL_LDFLAGS=	-L${OPENSSLLIB}

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

.include <bsd.port.mk>