aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt4-gui/Makefile
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2007-07-21 21:46:37 +0800
committerlofi <lofi@FreeBSD.org>2007-07-21 21:46:37 +0800
commit2ce548c55bb5985e82771c4eff48905e5e9a32fb (patch)
treea99ab7b40fb9f79e980aa16b7af21bdac23d1c58 /x11-toolkits/qt4-gui/Makefile
parente88047a16838ee216b5e63784f1235c42331bd0c (diff)
downloadfreebsd-ports-gnome-2ce548c55bb5985e82771c4eff48905e5e9a32fb.tar.gz
freebsd-ports-gnome-2ce548c55bb5985e82771c4eff48905e5e9a32fb.tar.zst
freebsd-ports-gnome-2ce548c55bb5985e82771c4eff48905e5e9a32fb.zip
Fix build on amd64.
PR: ports/114734
Diffstat (limited to 'x11-toolkits/qt4-gui/Makefile')
-rw-r--r--x11-toolkits/qt4-gui/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11-toolkits/qt4-gui/Makefile b/x11-toolkits/qt4-gui/Makefile
index 393fd5006cb4..b3a167e7b970 100644
--- a/x11-toolkits/qt4-gui/Makefile
+++ b/x11-toolkits/qt4-gui/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gui
PORTVERSION= ${QT4_VERSION}
-PORTREVISION=0
+PORTREVISION= 1
CATEGORIES?= x11-toolkits
MASTER_SITES= ${MASTER_SITE_QT}
PKGNAMEPREFIX= qt4-
@@ -82,6 +82,10 @@ pre-configure:
${LN} -sf ${LOCALBASE}/bin/uic-qt4 ${WRKSRC}/../../bin/uic
post-configure:
+.if ${OSVERSION} < 700042 && ${ARCH} == "amd64"
+ ${REINPLACE_CMD} -E -e 's|CXXFLAGS[[:space:]]*=(.*)|CXXFLAGS=-fno-gcse\1|g' \
+ ${WRKSRC}/Makefile
+.endif
${REINPLACE_CMD} -e 's|${PREFIX}/lib/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
-e 's|.*$$(QMAKE).*||g' -e 's|(test -z.*||g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -E -e 's|-L.[^[:space:]]*qt-x11-opensource.[^[:space:]]*lib||g' \