ports/150698: [patch] graphics/mupdf: restore some vendor CFLAGS
Anonymous
swell.k at gmail.com
Sat Sep 18 10:10:09 UTC 2010
The following reply was made to PR ports/150698; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/150698: [patch] graphics/mupdf: restore some vendor CFLAGS
Date: Sat, 18 Sep 2010 14:02:59 +0400
To be on a safe side let's keep vendor optimization disabled on non-x86.
Here is a cumulative diff.
--- 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 10:00:18 -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}
@@ -42,7 +40,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
BROKEN= Does not install on sparc64
.elif ${ARCH} == amd64
CFLAGS+= -DARCH_X86_64
-.else
+.elif ${ARCH} == i386
CFLAGS+= -DARCH_X86
.endif
@@ -54,7 +52,15 @@ post-patch: .SILENT
-e 's/Linux/FreeBSD/g' \
-e '/^CC/s/=/?=/' \
-e '/-O3/d' \
- -e '/-msse/d' \
${WRKSRC}/Makerules
+.if ${ARCH} == amd64 || ${ARCH} == i386
+ ${REINPLACE_CMD} -e 's/-DARCH_X86//' \
+ -e 's/-march=k8/-m3dnow/' \
+ ${WRKSRC}/Makerules
+.else
+ ${REINPLACE_CMD} -e '/-msse/d' \
+ ${WRKSRC}/Makerules
+.endif
+
.include <bsd.port.mk>
--- a.diff ends here ---
More information about the freebsd-ports-bugs
mailing list