ports/180546: sysutils/tarsnap: convert header and to uses (for gmake), and use new port options

Jason Helfman jgh at FreeBSD.org
Sat Jul 13 22:40:00 UTC 2013


>Number:         180546
>Category:       ports
>Synopsis:       sysutils/tarsnap: convert header and to uses (for gmake), and use new port options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 13 22:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252008: Wed Jun 19 21:39:58 UTC 2013 peter at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64


	
>Description:
convert historical header
convert USE_GMAKE to USES=gmake
convert to new options style to remove bsd.port.options.mk inclusion

>How-To-Repeat:
	
>Fix:

Index: sysutils/tarsnap/Makefile
===================================================================
--- sysutils/tarsnap/Makefile	(revision 322973)
+++ sysutils/tarsnap/Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:		Tarsnap backup client
-# Date created:					2009-07-04
-# Whom:						Colin Percival
-#
+# Created by: Colin Percival
 # $FreeBSD$
-#
 
 PORTNAME=	tarsnap
 PORTVERSION=	1.0.34
@@ -18,7 +14,7 @@
 RESTRICTED=	license restricts redistribution of source and binaries
 
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
+USES=		gmake
 
 MAN1=		tarsnap.1 tarsnap-keygen.1 tarsnap-keymgmt.1	\
 		tarsnap-keyregen.1 tarsnap-recrypt.1
@@ -27,15 +23,10 @@
 OPTIONS_DEFINE=	SSE2
 SSE2_DESC=	Use SSE2-optimized code
 
-.include <bsd.port.options.mk>
+SSE2_CONFIGURE_ENABLE=	sse2
+SSE2_CONFIGURE_DISABLE=	sse2
+SSE2_CFLAGS=	-msse2
 
-.if ${PORT_OPTIONS:MSSE2}
-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 ; \
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list