Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2011 11:12:55 +0900
From:      Takefu <takefu@airport.fm>
To:        freebsd-gnats-submit@FreeBSD.org
Cc:        multimedia@FreeBSD.org
Subject:   ports/161568: [PATCH] audio/libsamplerate: samplerate.h has comma at end of enumerator list
Message-ID:  <4E979AA7.8080406@airport.fm>
Resent-Message-ID: <201110140220.p9E2K6bP094885@freefall.freebsd.org>
In-Reply-To: <201110130959.p9D9x5sS013163@unbound.local.ae-osaka.co.jp>
References:  <201110130959.p9D9x5sS013163@unbound.local.ae-osaka.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

>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-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 02:20:06 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E979AA7.8080406>