freebsd-ports/sysutils/tarsnap/Makefile
Colin Percival 21cfd1abbf Update to version 1.0.27.
Feature safe:	yes
2010-06-28 17:55:31 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: Tarsnap backup client
# Date created: 2009-07-04
# Whom: Colin Percival
#
# $FreeBSD$
#
PORTNAME= tarsnap
PORTVERSION= 1.0.27
CATEGORIES= sysutils
MASTER_SITES= https://www.tarsnap.com/download/
DISTNAME= ${PORTNAME}-autoconf-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= cperciva@tarsnap.com
COMMENT= Online encrypted backup service (client)
RESTRICTED= license restricts redistribution of source and binaries
# Workaround for bug in libfetch(3)
FETCH_DEPENDS= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
FETCH_CMD= ${LOCALBASE}/bin/wget
FETCH_BEFORE_ARGS= --no-check-certificate
DISABLE_SIZE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAN1= tarsnap.1 tarsnap-keygen.1 tarsnap-keymgmt.1
MAN5= tarsnap.conf.5
OPTIONS= SSE2 "Use SSE2-optimized code" Off
.include <bsd.port.options.mk>
.if defined(WITH_SSE2)
CONFIGURE_ARGS+= --enable-sse2
CFLAGS+= -msse2
.else
CONFIGURE_ARGS+= --disable-sse2
.endif
post-install:
@if [ ! -f ${PREFIX}/etc/tarsnap.conf ]; then \
${CP} -p ${PREFIX}/etc/tarsnap.conf.sample ${PREFIX}/etc/tarsnap.conf ; \
fi
@${CAT} ${PKGDIR}/pkg-message
.include <bsd.port.mk>