# Created by: Colin Percival
# $FreeBSD: tags/RELEASE_10_2_0/sysutils/tarsnap/Makefile 363374 2014-07-29 19:11:51Z adamw $

PORTNAME=	tarsnap
PORTVERSION=	1.0.35
PORTREVISION=	2
CATEGORIES=	sysutils
MASTER_SITES=	http://www.tarsnap.com/download-http/
DISTNAME=	${PORTNAME}-autoconf-${PORTVERSION}

MAINTAINER=	cperciva@tarsnap.com
COMMENT=	Online encrypted backup service (client)

GNU_CONFIGURE=	yes
USES=		gmake tar:tgz

OPTIONS_DEFINE=	SSE2
SSE2_DESC=	Use SSE2-optimized code

SSE2_CONFIGURE_ENABLE=	sse2
SSE2_CFLAGS=	-msse2

.include <bsd.port.pre.mk>

# safety check to ensure that we don't violate the license
.if exists(${PATCHDIR})
RESTRICTED=	license only allows redistribution and use of unmodified source and binaries
.endif
LEGAL_TEXT=	license restricts redistribution of source and binaries

.include <bsd.port.post.mk>
