Date: Sat, 18 Sep 2010 10:10:08 GMT From: Anonymous <swell.k@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/150698: [patch] graphics/mupdf: restore some vendor CFLAGS Message-ID: <201009181010.o8IAA8WE005396@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/150698; it has been noted by GNATS. From: Anonymous <swell.k@gmail.com> To: bug-followup@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 ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009181010.o8IAA8WE005396>