ports/159225: [PATCH]Disable unsupported CFLAGS on non-x86 platforms
Zhihao Yuan
lichray at gmail.com
Wed Jul 27 08:10:11 UTC 2011
>Number: 159225
>Category: ports
>Synopsis: [PATCH]Disable unsupported CFLAGS on non-x86 platforms
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 27 08:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Zhihao Yuan
>Release: FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #2 r224038: Thu Jul 14 21:40:15 CDT 2011 lichray at compaq.yuetime:/usr/obj/home/lichray/devel/freebsd-stable/sys/HOUKAGO amd64
>Description:
SSE does not exist on platforms other then i386 and amd64. And -march should be placed by users (FreeBSD already put one, actually). So this patch switches to the release build, and only enables SSE on supported platforms.
>How-To-Repeat:
>Fix:
Note that I also unbroken the build on sparc64. I want a call for tests, and know why it does not build.
--- mupdf_3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/Makefile /usr/ports/graphics/mupdf/Makefile
--- /usr/ports/graphics/mupdf.orig/Makefile 2011-07-16 00:26:21.000000000 -0500
+++ /usr/ports/graphics/mupdf/Makefile 2011-07-27 02:57:43.364209603 -0500
@@ -6,7 +6,7 @@
PORTNAME= mupdf
PORTVERSION= 0.8.165
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE \
@@ -22,7 +22,7 @@
openjpeg.2:${PORTSDIR}/graphics/openjpeg
USE_GMAKE= yes
-MAKE_ARGS+= build=native prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man
+MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man
USE_XORG= x11 xext
USE_GNOME= pkgconfig
MAN1= mupdf.1 mu_pdfclean.1 mu_pdfdraw.1 mu_pdfshow.1
@@ -36,6 +36,10 @@
.include <bsd.port.options.mk>
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+CFLAGS+= -mfpmath=sse
+.endif
+
.if defined(WITH_SCROLL)
EXTRA_PATCHES+= ${FILESDIR}/scroll_hack-apps_pdfapp.c
.endif
@@ -60,9 +64,4 @@
${FIND} ${WRKSRC} -name pdf\*.1 -exec ${SH} -c 'mv {} $$(dirname {})/mu_$$(basename {})' \;
.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64 : uses i386-specific options
-.endif
-
.include <bsd.port.post.mk>
--- mupdf_3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list