diff options
author | miwi <miwi@FreeBSD.org> | 2007-12-11 06:49:20 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-12-11 06:49:20 +0800 |
commit | 4e92cc0753b64c592007d9b1b958b9fcfb0a217b (patch) | |
tree | 900fe419b2ddcb7fc064e57716b546405602bed2 /audio | |
parent | 6a0a4fe659bb99887b7d8cb560e342bbfc4dd824 (diff) | |
download | freebsd-ports-gnome-4e92cc0753b64c592007d9b1b958b9fcfb0a217b.tar.gz freebsd-ports-gnome-4e92cc0753b64c592007d9b1b958b9fcfb0a217b.tar.zst freebsd-ports-gnome-4e92cc0753b64c592007d9b1b958b9fcfb0a217b.zip |
- Fix build with gcc 4.2
- Pass maintainership to submitter
PR: 118466
Submitted by: Pietro Cerutti <gahr@gahr.ch>
Approved by: portmgr (erwin)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gsi/Makefile | 18 | ||||
-rw-r--r-- | audio/gsi/files/patch-lib-gsif-sample_convert_block.c | 44 |
2 files changed, 50 insertions, 12 deletions
diff --git a/audio/gsi/Makefile b/audio/gsi/Makefile index 5d1281ead975..638c0b657b1a 100644 --- a/audio/gsi/Makefile +++ b/audio/gsi/Makefile @@ -12,7 +12,7 @@ CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gahr@gahr.ch COMMENT= General sound interface USE_BZIP2= yes @@ -28,24 +28,18 @@ MAN5= gsi.conf.5 MAN7= gsi_overview.7 MAN8= gsi_server.8 -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Broken with gcc 4.2 -.endif - post-extract: @${RM} -f ${WRKSRC}/lib/include/gsi/gsisynth.h post-patch: -.for file in lib/device/gsimixer/api/mixer_fbsd.c \ +.for f in lib/device/gsimixer/api/mixer_fbsd.c \ lib/device/gsipcm/api/pcm_fbsd.c @${REINPLACE_CMD} -e \ - 's|machine/soundcard.h|sys/soundcard.h|g' ${WRKSRC}/${file} + 's|machine/soundcard.h|sys/soundcard.h|g' ${WRKSRC}/${f} .endfor -.for file in server/FINISH_host_allow.c server/client.c server/conf.c +.for f in server/FINISH_host_allow.c server/client.c server/conf.c @${REINPLACE_CMD} -e \ - 's|"/etc/|"${PREFIX}/etc/|g' ${WRKSRC}/${file} + 's|"/etc/|"${PREFIX}/etc/|g' ${WRKSRC}/${f} .endfor do-configure: @@ -63,4 +57,4 @@ post-install: @${ECHO_MSG} @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/audio/gsi/files/patch-lib-gsif-sample_convert_block.c b/audio/gsi/files/patch-lib-gsif-sample_convert_block.c new file mode 100644 index 000000000000..54b78b13e4cb --- /dev/null +++ b/audio/gsi/files/patch-lib-gsif-sample_convert_block.c @@ -0,0 +1,44 @@ +--- lib/gsif/sample/convert_block.c.orig 2001-01-30 13:28:09.000000000 +0100 ++++ lib/gsif/sample/convert_block.c 2007-12-06 17:04:45.000000000 +0100 +@@ -122,9 +122,9 @@ + break; + case GSI_16BIT: + #ifdef SYSCONFIG_LITTLE_ENDIAN_MACHINE +- input_val = (int) (int16) ( ((*input++) << 8) | (*input++) ); ++ input_val = (int) (int16) ( (*input++ << 8) | *input++ ); + #else +- input_val = *((int16 *)input)++; ++ input_val = *input++; + #endif + break; + case GSI_8BIT_SIGNED: +@@ -132,9 +132,9 @@ + break; + case GSI_16BIT_LE: + #ifdef SYSCONFIG_LITTLE_ENDIAN_MACHINE +- input_val = *((int16 *)input)++; ++ input_val = *input++; + #else +- input_val = (int) (int16) (*input++ | ((*input++) << 8) ); ++ input_val = (int) (int16) (*(input++) | ((*input++) << 8) ); + #endif + break; + case GSI_24BIT: +@@ -170,7 +170,7 @@ + *output++ = (input_val >> 8) & 255; + *output++ = (input_val & 255); + #else +- *((int16 *) output)++ = input_val; ++ *output++ = input_val; + #endif + break; + case GSI_8BIT_SIGNED: +@@ -178,7 +178,7 @@ + break; + case GSI_16BIT_LE: + #ifdef SYSCONFIG_LITTLE_ENDIAN_MACHINE +- *((int16 *) output)++ = input_val; ++ *output++ = input_val; + #else + *output++ = (input_val >> 8) & 255; + *output++ = (input_val & 255); |