ports/155662: [MAINTAINER] audio/libofa: Fix build with non-base gcc, respect CFLAGS

Jason E. Hale bsdkaffee at gmail.com
Fri Mar 18 16:50:09 UTC 2011


>Number:         155662
>Category:       ports
>Synopsis:       [MAINTAINER] audio/libofa: Fix build with non-base gcc, respect CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 18 16:50:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason E. Hale
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
none 
>Environment:
System: FreeBSD mocha.verizon.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Feb 22 19:19:42 EST 2011 root at mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA8 i386


	
>Description:
audio/libofa:
- Allow build with non-base gcc [1]
- Respect CFLAGS/CXXFLAGS
- Bump PORTREVISION since port was building with -g previously

[1] Patched by avg@
	
>How-To-Repeat:
Use attached diff.

Added files:
files/patch-configure
files/patch-examples__example.cpp
files/patch-examples__protocol.cpp
files/patch-lib__signal_op.cpp
	
>Fix:

	

--- 2011-03-18-libofa.diff begins here ---
diff -ruN libofa.orig/Makefile libofa/Makefile
--- libofa.orig/Makefile	2011-03-17 11:47:15.000000000 -0400
+++ libofa/Makefile	2011-03-18 12:19:34.000000000 -0400
@@ -7,7 +7,7 @@
 
 PORTNAME=	libofa
 PORTVERSION=	0.9.3
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	audio
 MASTER_SITES=	GOOGLE_CODE
 
diff -ruN libofa.orig/files/patch-configure libofa/files/patch-configure
--- libofa.orig/files/patch-configure	1969-12-31 19:00:00.000000000 -0500
+++ libofa/files/patch-configure	2011-03-18 12:18:15.000000000 -0400
@@ -0,0 +1,16 @@
+--- ./configure.orig	2011-03-18 11:01:22.000000000 -0400
++++ ./configure	2011-03-18 11:01:22.000000000 -0400
+@@ -20315,13 +20315,6 @@
+ 
+ 
+ 
+-if test "$GCC" = yes; then
+-  dnlCFLAGS="$CFLAGS -Wall -O2"
+-  CFLAGS="$CFLAGS -Wall -g"
+-fi
+-if test "$GXX" = yes; then
+-  CXXFLAGS="$CXXFLAGS -Wall -g"
+-fi
+ 
+ 
+ echo "$as_me:$LINENO: checking for XML_ExpatVersion in -lexpat" >&5
diff -ruN libofa.orig/files/patch-examples__example.cpp libofa/files/patch-examples__example.cpp
--- libofa.orig/files/patch-examples__example.cpp	1969-12-31 19:00:00.000000000 -0500
+++ libofa/files/patch-examples__example.cpp	2011-03-18 12:18:14.000000000 -0400
@@ -0,0 +1,11 @@
+--- ./examples/example.cpp.orig	2011-03-18 11:01:22.000000000 -0400
++++ ./examples/example.cpp	2011-03-18 11:01:22.000000000 -0400
+@@ -7,6 +7,8 @@
+ 
+ -------------------------------------------------------------------*/
+ 
++#include <stdio.h>
++#include <string.h>
+ #include "protocol.h"
+ 
+ AudioData* loadWaveFile(char *file);
diff -ruN libofa.orig/files/patch-examples__protocol.cpp libofa/files/patch-examples__protocol.cpp
--- libofa.orig/files/patch-examples__protocol.cpp	1969-12-31 19:00:00.000000000 -0500
+++ libofa/files/patch-examples__protocol.cpp	2011-03-18 12:18:14.000000000 -0400
@@ -0,0 +1,10 @@
+--- ./examples/protocol.cpp.orig	2011-03-18 11:01:22.000000000 -0400
++++ ./examples/protocol.cpp	2011-03-18 11:01:22.000000000 -0400
+@@ -8,6 +8,7 @@
+ -------------------------------------------------------------------*/
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <string>
+ #include <map>
+ #include <expat.h>
diff -ruN libofa.orig/files/patch-lib__signal_op.cpp libofa/files/patch-lib__signal_op.cpp
--- libofa.orig/files/patch-lib__signal_op.cpp	1969-12-31 19:00:00.000000000 -0500
+++ libofa/files/patch-lib__signal_op.cpp	2011-03-18 12:18:14.000000000 -0400
@@ -0,0 +1,10 @@
+--- ./lib/signal_op.cpp.orig	2011-03-18 11:01:22.000000000 -0400
++++ ./lib/signal_op.cpp	2011-03-18 11:01:39.000000000 -0400
+@@ -13,6 +13,7 @@
+ 
+ 
+ #include <math.h>
++#include <stdlib.h>
+ #include "signal_op.h"
+ #include "AFLIB/aflibConverter.h"
+ #include "error_op.h"
--- 2011-03-18-libofa.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list