ports/93467: [patch] textproc/antiword does not respect CFLAGS

Emanuel Haupt ehaupt at FreeBSD.org
Fri Feb 17 09:20:05 UTC 2006


>Number:         93467
>Category:       ports
>Synopsis:       [patch] textproc/antiword does not respect CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 17 09:20:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD freefall.freebsd.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 03:18:20 UTC 2005 kensmith at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386


	
>Description:
textproc/antiword does not respect CFLAGS

>How-To-Repeat:
	
>Fix:

	

--- antiword.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/textproc/antiword/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	6 Feb 2006 02:14:47 -0000	1.13
+++ Makefile	17 Feb 2006 09:10:58 -0000
@@ -7,23 +7,29 @@
 
 PORTNAME=	antiword
 PORTVERSION=	0.37
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://www.winfield.demon.nl/linux/
 
 MAINTAINER=	leeym at FreeBSD.org
 COMMENT=	An application to display Microsoft(tm) Word files
 
+USE_GMAKE=	yes
+
 INSTALL_TARGET=	global_install
 
 MAN1=		antiword.1
 PORTDOCS=	COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
 		QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc
 
+CFLAGS+=	-DNDEBUG
+MAKE_ENV+=	CC="${CC}"
+
 post-patch:
 	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
 		-e 's,/usr/local,${PREFIX},g' \
 		-e 's,/usr/share,${PREFIX}/share,g'
-	@${REINPLACE_CMD} -e 's,gcc,${CC},g' ${WRKSRC}/${MAKEFILE}
+	@${REINPLACE_CMD} -E 's|LD|CC|g; /^(CC|CFLAGS)/d' ${WRKSRC}/${MAKEFILE}
 
 post-install:
 	@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
--- antiword.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list