diff options
author | lofi <lofi@FreeBSD.org> | 2003-12-07 22:40:31 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2003-12-07 22:40:31 +0800 |
commit | 3981d83a5947ab0222e7c0f4fe5c032ee96c7613 (patch) | |
tree | 5ec7743a2a2cf1751eb27734a79e99a67cda21ca /audio/portaudio2 | |
parent | 139bbcc48378e398546990ce36e99cc71a85bb11 (diff) | |
download | freebsd-ports-gnome-3981d83a5947ab0222e7c0f4fe5c032ee96c7613.tar.gz freebsd-ports-gnome-3981d83a5947ab0222e7c0f4fe5c032ee96c7613.tar.zst freebsd-ports-gnome-3981d83a5947ab0222e7c0f4fe5c032ee96c7613.zip |
Update to version 18.1
Diffstat (limited to 'audio/portaudio2')
-rw-r--r-- | audio/portaudio2/Makefile | 57 | ||||
-rw-r--r-- | audio/portaudio2/distinfo | 2 | ||||
-rw-r--r-- | audio/portaudio2/files/patch-pa_tests::patest_record.c | 14 | ||||
-rw-r--r-- | audio/portaudio2/files/patch-pa_tests::patest_wire.c | 13 | ||||
-rw-r--r-- | audio/portaudio2/pkg-plist | 26 |
5 files changed, 85 insertions, 27 deletions
diff --git a/audio/portaudio2/Makefile b/audio/portaudio2/Makefile index 8eaaf864a9da..21a4e82fab3d 100644 --- a/audio/portaudio2/Makefile +++ b/audio/portaudio2/Makefile @@ -6,25 +6,32 @@ # PORTNAME= portaudio -PORTVERSION= 18 +PORTVERSION= 18.1 CATEGORIES= audio MASTER_SITES= http://www.portaudio.com/archives/ -DISTNAME= ${PORTNAME}_v${PORTVERSION} +DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/} -MAINTAINER= michaelnottebrock@gmx.net +MAINTAINER= lofi@freebsd.org COMMENT= Portable cross-platform Audio API USE_REINPLACE= yes USE_ZIP= yes USE_GMAKE= yes -MAKEFILE= Makefile.linux -ALL_TARGET= sharedlib -PLIST_SUB= SHLIB_VERSION=${SHLIB_VERSION} +GNU_CONFIGURE= yes INSTALLS_SHLIB= yes - -SHLIB_VERSION= 0 - -post-patch: +NO_FILTER_SHLIBS=yes + +pre-everything:: +.if !defined(WITH_PATESTS) + @${ECHO_MSG} + @${ECHO_MSG} "You can additionally build portaudio's testsuite by defining WITH_PATESTS." + @${ECHO_MSG} +PLIST_SUB+= WITH_PATESTS="@comment " +.else +PLIST_SUB+= WITH_PATESTS="" +.endif + +pre-patch: # replace \r\n with \n # replace <malloc.h> with <stdlib.h> @${FIND} ${WRKSRC} -type f \ @@ -32,20 +39,20 @@ post-patch: ${REINPLACE_CMD} -E \ -e 's|
||' \ -e 's|malloc.h|stdlib.h|' \ - -e 's|machine\/soundcard.h|sys\/soundcard.h|' - -# C{C,FLAGS} and PREFIX safeness - @${REINPLACE_CMD} -E \ - -e 's|gcc|${CC} ${CFLAGS}|' \ - -e 's|^CFLAGS.*$$||' \ - ${BUILD_WRKSRC}/${MAKEFILE} - -do-install: - @${INSTALL_DATA} ${WRKSRC}/pa_common/portaudio.h \ - ${PREFIX}/include - @${INSTALL_DATA} ${WRKSRC}/pa_unix_oss/libportaudio.so \ - ${PREFIX}/lib - @${LN} -sf libportaudio.so \ - ${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION} + -e 's|machine\/soundcard.h|sys\/soundcard.h|' \ + -e 's|-lpthread|${PTHREAD_LIBS}|' +pre-configure: +# Make configure executable + @${CHMOD} +x ${WRKSRC}/configure + +.if !defined(WITH_PATESTS) +post-configure: + @${REINPLACE_CMD} -e 's|tests$$||' ${WRKSRC}/Makefile +.endif + +.if defined(WITH_PATESTS) +post-install: + @${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin +.endif .include <bsd.port.mk> diff --git a/audio/portaudio2/distinfo b/audio/portaudio2/distinfo index 39cfec9976a6..a3033cfa9944 100644 --- a/audio/portaudio2/distinfo +++ b/audio/portaudio2/distinfo @@ -1 +1 @@ -MD5 (portaudio_v18.zip) = 4371cbba9e0aa13d0b605c7bf31da50a +MD5 (portaudio_v18_1.zip) = ce66a732d263fde2b5ad2262ef37a691 diff --git a/audio/portaudio2/files/patch-pa_tests::patest_record.c b/audio/portaudio2/files/patch-pa_tests::patest_record.c new file mode 100644 index 000000000000..e24e9f28ed52 --- /dev/null +++ b/audio/portaudio2/files/patch-pa_tests::patest_record.c @@ -0,0 +1,14 @@ +--- pa_tests/patest_record.c.orig Sun Dec 7 14:48:31 2003 ++++ pa_tests/patest_record.c Sun Dec 7 14:48:53 2003 +@@ -138,10 +138,10 @@ + SAMPLE *wptr = (SAMPLE*)outputBuffer; + unsigned int i; + int finished; ++ int framesToPlay, samplesToPlay, samplesPerBuffer; + unsigned int framesLeft = data->maxFrameIndex - data->frameIndex; + (void) inputBuffer; /* Prevent unused variable warnings. */ + (void) outTime; +- int framesToPlay, samplesToPlay, samplesPerBuffer; + + if( framesLeft < framesPerBuffer ) + { diff --git a/audio/portaudio2/files/patch-pa_tests::patest_wire.c b/audio/portaudio2/files/patch-pa_tests::patest_wire.c new file mode 100644 index 000000000000..0f158d80fb41 --- /dev/null +++ b/audio/portaudio2/files/patch-pa_tests::patest_wire.c @@ -0,0 +1,13 @@ +--- pa_tests/patest_wire.c.orig Sun Dec 7 14:49:15 2003 ++++ pa_tests/patest_wire.c Sun Dec 7 14:49:52 2003 +@@ -74,9 +74,9 @@ + SAMPLE *out = (SAMPLE*)outputBuffer; + SAMPLE *in = (SAMPLE*)inputBuffer; + unsigned int i; +- (void) outTime; + int samplesPerFrame; + int numSamples; ++ (void) outTime; + + samplesPerFrame = (int) userData; + numSamples = framesPerBuffer * samplesPerFrame; diff --git a/audio/portaudio2/pkg-plist b/audio/portaudio2/pkg-plist index 654d74c5ad80..bc0b350974d4 100644 --- a/audio/portaudio2/pkg-plist +++ b/audio/portaudio2/pkg-plist @@ -1,3 +1,27 @@ +%%WITH_PATESTS%%bin/patest_buffer +%%WITH_PATESTS%%bin/patest_clip +%%WITH_PATESTS%%bin/patest_dither +%%WITH_PATESTS%%bin/patest_hang +%%WITH_PATESTS%%bin/patest_latency +%%WITH_PATESTS%%bin/patest_leftright +%%WITH_PATESTS%%bin/patest_longsine +%%WITH_PATESTS%%bin/patest_many +%%WITH_PATESTS%%bin/patest_maxsines +%%WITH_PATESTS%%bin/patest_multi_sine +%%WITH_PATESTS%%bin/patest_pink +%%WITH_PATESTS%%bin/patest_record +%%WITH_PATESTS%%bin/patest_ringmix +%%WITH_PATESTS%%bin/patest_saw +%%WITH_PATESTS%%bin/patest_sine +%%WITH_PATESTS%%bin/patest_sine8 +%%WITH_PATESTS%%bin/patest_sine_formats +%%WITH_PATESTS%%bin/patest_sine_time +%%WITH_PATESTS%%bin/patest_stop +%%WITH_PATESTS%%bin/patest_sync +%%WITH_PATESTS%%bin/patest_toomanysines +%%WITH_PATESTS%%bin/patest_underflow +%%WITH_PATESTS%%bin/patest_wire include/portaudio.h +lib/libportaudio.a lib/libportaudio.so -lib/libportaudio.so.%%SHLIB_VERSION%% +lib/libportaudio.so.0.0.18 |