From sheldonh@axl.noc.iafrica.com  Tue Dec 29 06:05:23 1998
Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA03153
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Dec 1998 06:05:18 -0800 (PST)
          (envelope-from sheldonh@axl.noc.iafrica.com)
Received: from sheldonh (helo=axl.noc.iafrica.com)
	by axl.noc.iafrica.com with local-esmtp (Exim 2.10 #1)
	id 0zuzlQ-0002bH-00
	for FreeBSD-gnats-submit@freebsd.org; Tue, 29 Dec 1998 16:04:48 +0200
Message-Id: <9998.914940288@axl.noc.iafrica.com>
Date: Tue, 29 Dec 1998 16:04:48 +0200
From: Sheldon Hearn <axl@iafrica.com>
Sender: Sheldon Hearn <sheldonh@axl.noc.iafrica.com>
Reply-To: Sheldon Hearn <axl@iafrica.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] ports/audio/xmcd doesn't honour local CFLAGS
X-Send-Pr-Version: 3.2

>Number:         9234
>Category:       ports
>Synopsis:       [PATCH] ports/audio/xmcd doesn't honour local CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 29 06:10:00 PST 1998
>Closed-Date:    Sat Jan 2 11:46:03 PST 1999
>Last-Modified:  Sat Jan  2 11:47:23 PST 1999
>Originator:     Sheldon Hearn
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
UUNET Internet Africa
>Environment:

	FreeBSD axl.noc.iafrica.com 2.2.8-STABLE FreeBSD
	2.2.8-STABLE #0: Wed Dec 16 00:33:32 SAST 1998

>Description:

	The xmcd port does not honour local CFLAGS settings, overriding
	them with its own.

>How-To-Repeat:

	cd ${PORTSDIR}/audio/xmcd ; make

>Fix:

	The following patch teaches the xmcd port to honour local CFLAGS
	and use resonable defaults if undefined.

Index: audio/xmcd/patches/patch-ae
===================================================================
RCS file: patch-ae
diff -N patch-ae
--- /dev/null	Tue Dec 29 15:59:44 1998
+++ patch-ae	Tue Dec 29 15:56:00 1998
@@ -0,0 +1,24 @@
+--- make.inc.orig	Tue Dec 29 15:53:17 1998
++++ make.inc	Tue Dec 29 15:54:53 1998
+@@ -52,7 +52,8 @@
+ RANLIB=		/bin/true
+ AR=		ar cq
+ RM=		rm -f
+-CFLAGS=		-O $(DEFINES) $(INCDIRS) $(ARCH) $(TIMER) $(TERMIO)
++CFLAGS?=	-O
++CFLAGS+=	$(DEFINES) $(INCDIRS) $(ARCH) $(TIMER) $(TERMIO)
+ ARCH=		-DSVR4 -Di386
+ TIMER=		-DUSE_SELECT
+ TERMIO=		-DUSE_TERMIOS
+--- makedgux.inc.orig	Tue Dec 29 15:53:17 1998
++++ makedgux.inc	Tue Dec 29 15:55:11 1998
+@@ -52,7 +52,8 @@
+ RANLIB=		/bin/true
+ AR=		ar cq
+ RM=		rm -f
+-CFLAGS=		-O $(DEFINES) $(INCDIRS) $(ARCH) $(TIMER) $(TERMIO)
++CFLAGS?=	-O
++CFLAGS+=	$(DEFINES) $(INCDIRS) $(ARCH) $(TIMER) $(TERMIO)
+ # ARCH=
+ TIMER=		-DUSE_SELECT
+ TERMIO=		-DUSE_TERMIOS
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Jan 2 11:46:03 PST 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
