1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix build with gcc-3.4

PR:		ports/70782
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-08-22 00:56:28 +00:00
parent d2c6b60bad
commit 015aa024a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116994
6 changed files with 18 additions and 56 deletions

View File

@ -13,18 +13,28 @@ MASTER_SITES= http://dara.notbsd.org/~aholtzma/ac3/tarballs/
MAINTAINER= ports@FreeBSD.org
COMMENT= Software for research in digital audio coding/decoding
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386 alpha
post-patch:
@${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' \
< ${WRKSRC}/output.c > ${WRKSRC}/output.c.new
@${MV} ${WRKSRC}/output.c.new ${WRKSRC}/output.c
USE_REINPLACE= yes
GNU_CONFIGURE= yes
pre-install:
PORTDOCS= README
PLIST_FILES= bin/ac3dec bin/extract_ac3
post-patch:
.for file in Makefile.in libac3/Makefile.in tools/Makefile.in
@${REINPLACE_CMD} -e \
's|^CFLAGS =.*$$|CFLAGS = @CFLAGS@|g' ${WRKSRC}/${file}
.endfor
.for file in output.c output_linux.c
@${REINPLACE_CMD} -e \
's|machine/soundcard.h|sys/soundcard.h|g' ${WRKSRC}/${file}
.endfor
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ac3dec
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ac3dec/README
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,11 +0,0 @@
--- Makefile.in.orig Mon Jun 3 02:33:10 2002
+++ Makefile.in Mon Jun 3 02:33:21 2002
@@ -70,7 +70,7 @@
AUTOMAKE_OPTIONS = 1.3 foreign
-CFLAGS = -Wall -Werror -O3 -g
+CFLAGS += -Wall -Werror -g
bin_PROGRAMS = ac3dec

View File

@ -1,11 +0,0 @@
--- libac3/Makefile.in.orig Mon Jun 3 02:33:56 2002
+++ libac3/Makefile.in Mon Jun 3 02:34:04 2002
@@ -70,7 +70,7 @@
AUTOMAKE_OPTIONS = 1.3 foreign
-CFLAGS = -Wall -Werror -O1 -g
+CFLAGS += -Wall -Werror -g
noinst_LIBRARIES = libac3.a

View File

@ -1,11 +0,0 @@
--- tools/Makefile.in.orig Mon Jun 3 02:34:41 2002
+++ tools/Makefile.in Mon Jun 3 02:34:53 2002
@@ -70,7 +70,7 @@
AUTOMAKE_OPTIONS = 1.3 foreign
-CFLAGS = -Wall -Werror -O3 -g
+CFLAGS += -Wall -Werror -g
bin_PROGRAMS = extract_ac3

View File

@ -1,11 +0,0 @@
--- output_linux.c.orig Wed Mar 29 16:51:24 2000
+++ output_linux.c Thu Aug 22 20:09:40 2002
@@ -35,8 +35,6 @@
#include <math.h>
#if defined(__OpenBSD__)
#include <soundcard.h>
-#elif defined(__FreeBSD__)
-#include <machine/soundcard.h>
#else
#include <sys/soundcard.h>
#endif

View File

@ -1,4 +0,0 @@
bin/ac3dec
bin/extract_ac3
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%