From takefu@airport.fm  Fri Oct 14 02:12:57 2011
Return-Path: <takefu@airport.fm>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0E9031065670;
	Fri, 14 Oct 2011 02:12:57 +0000 (UTC)
	(envelope-from takefu@airport.fm)
Received: from ae-osaka.co.jp (unknown [IPv6:2001:3e0:4ec:a000::1])
	by mx1.freebsd.org (Postfix) with ESMTP id C18058FC14;
	Fri, 14 Oct 2011 02:12:56 +0000 (UTC)
Received: from ae-osaka.co.jp (localhost.ae-osaka.co.jp [127.0.0.1])
	by ae-osaka.co.jp (Postfix) with ESMTP id 192A311461;
	Fri, 14 Oct 2011 11:12:56 +0900 (JST)
Received: from ae-osaka.co.jp ([127.0.0.1])
	by ae-osaka.co.jp (ae-osaka.co.jp [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id oxECM4tb5Kng; Fri, 14 Oct 2011 11:12:55 +0900 (JST)
Received: from [IPv6:2001:3e0:4ec:a011:8587:51df:e124:df50] (unknown [IPv6:2001:3e0:4ec:a011:8587:51df:e124:df50])
	by ae-osaka.co.jp (Postfix) with ESMTPSA id CD4E711458;
	Fri, 14 Oct 2011 11:12:55 +0900 (JST)
Message-Id: <4E979AA7.8080406@airport.fm>
Date: Fri, 14 Oct 2011 11:12:55 +0900
From: Takefu <takefu@airport.fm>
Reply-To: takefu@airport.fm
To: freebsd-gnats-submit@freebsd.org
Cc: multimedia@FreeBSD.org
In-Reply-To: <201110130959.p9D9x5sS013163@unbound.local.ae-osaka.co.jp>
Subject: [PATCH] audio/libsamplerate: samplerate.h has comma at end of enumerator
 list
References: <201110130959.p9D9x5sS013163@unbound.local.ae-osaka.co.jp>

>Number:         161568
>Category:       ports
>Synopsis:       [PATCH] audio/libsamplerate: samplerate.h has comma at end of enumerator list
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 02:20:06 UTC 2011
>Closed-Date:    Sat Nov 23 22:44:41 UTC 2013
>Last-Modified:  Sat Nov 23 22:50:01 UTC 2013
>Originator:     Takefu
>Release:        
>Organization:
FOX Amateur Radio Club
>Environment:
>Description:
  Fix samplerate.h has comma at end of enumerator list
  Add test script
  Add MASTER_SITE_LOCAL
>How-To-Repeat:
>Fix:
--- libsamplerate.patch begins here ---
diff -ruN /usr/ports/audio/libsamplerate/Makefile audio/libsamplerate/Makefile
--- /usr/ports/audio/libsamplerate/Makefile	2011-10-03 17:47:33.000000000 +0900
+++ audio/libsamplerate/Makefile	2011-10-13 16:08:18.000000000 +0900
@@ -9,7 +9,8 @@
 PORTVERSION=	0.1.8
 PORTREVISION=	1
 CATEGORIES=	audio
-MASTER_SITES=	http://www.mega-nerd.com/SRC/
+MASTER_SITES=	http://www.mega-nerd.com/SRC/ \
+		${MASTER_SITE_LOCAL}

 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	Secret Rabbit Code: a Sample Rate Converter for audio
@@ -25,6 +26,9 @@
 USE_LDCONFIG=	yes
 MAKE_ARGS=	htmldocdir=${PREFIX}/share/doc/libsamplerate

+test:
+	@(cd ${WRKSRC}; make test)
+
 pre-install:
 .if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e 's/SUBDIRS = M4 src doc examples tests/SUBDIRS = M4 src examples tests/' ${WRKSRC}/Makefile
diff -ruN /usr/ports/audio/libsamplerate/files/patch-src-samplerate.h audio/libsamplerate/files/patch-src-samplerate.h
--- /usr/ports/audio/libsamplerate/files/patch-src-samplerate.h	1970-01-01 09:00:00.000000000 +0900
+++ audio/libsamplerate/files/patch-src-samplerate.h	2011-10-13 14:15:31.000000000 +0900
@@ -0,0 +1,11 @@
+--- src/samplerate.h.orig	2011-01-19 19:39:21.000000000 +0900
++++ src/samplerate.h	2011-10-13 14:14:56.000000000 +0900
+@@ -174,7 +174,7 @@
+ 	SRC_SINC_MEDIUM_QUALITY		= 1,
+ 	SRC_SINC_FASTEST			= 2,
+ 	SRC_ZERO_ORDER_HOLD			= 3,
+-	SRC_LINEAR					= 4,
++	SRC_LINEAR					= 4
+ } ;
+
+ /*
--- libsamplerate.patch ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 14 02:20:17 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161568 
State-Changed-From-To: open->closed 
State-Changed-By: kwm 
State-Changed-When: Sat Nov 23 22:44:04 UTC 2013 
State-Changed-Why:  
Committed the patch, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161568 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161568: commit references a PR
Date: Sat, 23 Nov 2013 22:44:07 +0000 (UTC)

 Author: kwm
 Date: Sat Nov 23 22:44:00 2013
 New Revision: 334696
 URL: http://svnweb.freebsd.org/changeset/ports/334696
 
 Log:
   Remove ',' at the end of the last entry of emumerator list.
   While here Stageify port, update LIB_DEPEND syntax and depend on package
   name instead of looking for a file.
   
   PR:		ports/161568
   Submitted by:	Takefu <takefu@airport.fm>
 
 Added:
   head/audio/libsamplerate/files/
   head/audio/libsamplerate/files/patch-src_samplerate.h   (contents, props changed)
 Modified:
   head/audio/libsamplerate/Makefile
 
 Modified: head/audio/libsamplerate/Makefile
 ==============================================================================
 --- head/audio/libsamplerate/Makefile	Sat Nov 23 21:25:56 2013	(r334695)
 +++ head/audio/libsamplerate/Makefile	Sat Nov 23 22:44:00 2013	(r334696)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	libsamplerate
  PORTVERSION=	0.1.8
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	audio
  MASTER_SITES=	http://www.mega-nerd.com/SRC/
  
 @@ -14,7 +14,6 @@ LICENSE=	GPLv2
  LICENSE_FILE=	${WRKSRC}/COPYING
  
  USES=	pathfix pkgconfig
 -NO_STAGE=	yes
  USE_AUTOTOOLS=	libtool
  USE_LDCONFIG=	yes
  
 @@ -38,9 +37,9 @@ CONFIGURE_ARGS+=	--disable-fftw
  .endif
  
  .if ${PORT_OPTIONS:MEXAMPLES}
 -LIB_DEPENDS+=	sndfile.1:${PORTSDIR}/audio/libsndfile
 +LIB_DEPENDS+=	libsndfile.so:${PORTSDIR}/audio/libsndfile
  .elif defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
 -BUILD_DEPENDS +=	${LOCALBASE}/lib/libsndfile.so:${PORTSDIR}/audio/libsndfile
 +BUILD_DEPENDS +=	libsndfile>=0:${PORTSDIR}/audio/libsndfile
  .else
  CONFIGURE_ARGS+=	--disable-sndfile
  .endif
 @@ -59,4 +58,7 @@ check regression-test test: build
  	check
  .endif
  
 +post-install:
 +	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsamplerate.so.1
 +
  .include <bsd.port.mk>
 
 Added: head/audio/libsamplerate/files/patch-src_samplerate.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/libsamplerate/files/patch-src_samplerate.h	Sat Nov 23 22:44:00 2013	(r334696)
 @@ -0,0 +1,11 @@
 +--- src/samplerate.h.orig	2013-11-23 23:36:11.000000000 +0100
 ++++ src/samplerate.h	2013-11-23 23:36:25.000000000 +0100
 +@@ -174,7 +174,7 @@
 + 	SRC_SINC_MEDIUM_QUALITY		= 1,
 + 	SRC_SINC_FASTEST			= 2,
 + 	SRC_ZERO_ORDER_HOLD			= 3,
 +-	SRC_LINEAR					= 4,
 ++	SRC_LINEAR					= 4
 + } ;
 + 
 + /*
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
