From nobody@www.freebsd.org  Mon Jun 17 13:21:47 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id A91B437B446
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 13:20:51 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5HKKphG060853
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 13:20:51 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5HKKp78060852;
	Mon, 17 Jun 2002 13:20:51 -0700 (PDT)
Message-Id: <200206172020.g5HKKp78060852@www.freebsd.org>
Date: Mon, 17 Jun 2002 13:20:51 -0700 (PDT)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: games/an
X-Send-Pr-Version: www-1.0

>Number:         39432
>Category:       ports
>Synopsis:       Update port: games/an
>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:   Mon Jun 17 13:30:02 PDT 2002
>Closed-Date:    Mon Jun 17 13:42:19 PDT 2002
>Last-Modified:  Mon Jun 17 13:42:19 PDT 2002
>Originator:     KATO Tsuguru
>Release:        4.6-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS/MAKE properly

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/games/an/Makefile games/an/Makefile
--- /usr/ports/games/an/Makefile	Sat Jun  8 08:40:51 2002
+++ games/an/Makefile	Tue Jun 18 04:55:48 2002
@@ -7,18 +7,25 @@
 
 PORTNAME=	an
 PORTVERSION=	0.93
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	ftp://suburbia.net/pub/rmj/ \
 		ftp://ftp.suburbia.net/pub/rmj/
 
-MAINTAINER=	ports@FreeBSD.Org
+MAINTAINER=	ports@FreeBSD.org
 
 MAKE_ENV+=	DEFS=-DDEFDICT=\\\"/usr/share/dict/words\\\"
 ALL_TARGET=	with-getopt
 MAN6=		an.6
 
+post-patch:
+	@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|^CC=|CC?=|g ; \
+		 s|^CFLAGS=-O|CFLAGS+=|g ; \
+		 s| make| \$$\(MAKE\)|g' ${WRKSRC}/Makefile
+
 do-install:
-		${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
-		${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
+	${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
 
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Jun 17 13:42:04 PDT 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39432 
>Unformatted:
