[PATCH] audio/libsamplerate: samplerate.h has comma at end of enumerator list

Takefu takefu at airport.fm
Fri Oct 14 02:12:57 UTC 2011


>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
>Class:		change-request
>Submitter-Id:	current-users
>Originator:	Takefu
>Organization:
FOX Amateur Radio Club
>Description:
  Fix samplerate.h has comma at end of enumerator list
  Add test script
  Add MASTER_SITE_LOCAL
>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 at 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 ---


More information about the freebsd-multimedia mailing list