ports/150698: [patch] graphics/mupdf: restore some vendor CFLAGS

Anonymous swell.k at gmail.com
Sat Sep 18 08:00:16 UTC 2010


>Number:         150698
>Category:       ports
>Synopsis:       [patch] graphics/mupdf: restore some vendor CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 18 08:00:15 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
NOT tested on i386
>Description:
ports/148503 broke build for HAVE_CPUDEP on i386. Runtime CPU detection
relies on MMX/SSE/etc compiler features enabled.
>How-To-Repeat:
>Fix:
Attepmt to fix without downgrading _CPUCFLAGS optimization.
--- a.diff begins here ---
Index: graphics/mupdf/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/mupdf/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- graphics/mupdf/Makefile	18 Sep 2010 06:41:12 -0000	1.9
+++ graphics/mupdf/Makefile	18 Sep 2010 07:39:07 -0000
@@ -19,8 +19,6 @@ LIB_DEPENDS=	freetype.9:${PORTSDIR}/prin
 		jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \
 		openjpeg.2:${PORTSDIR}/graphics/openjpeg
 
-BROKEN=		does not build
-
 USE_GMAKE=	yes
 MAKE_ARGS+=	build=release prefix=${PREFIX}
 WRKSRC=		${WRKDIR}/${PORTNAME}
@@ -54,7 +52,8 @@ post-patch:	.SILENT
 		-e 's/Linux/FreeBSD/g' \
 		-e '/^CC/s/=/?=/' \
 		-e '/-O3/d' \
-		-e '/-msse/d' \
+		-e 's/-DARCH_X86//' \
+		-e 's/-march=k8/-m3dnow/' \
 		${WRKSRC}/Makerules
 
 .include <bsd.port.mk>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list