From 8b3511a23fa7ffdb5727252e5c7819e1571bc917 Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Thu, 8 Feb 2001 16:38:51 +0000 Subject: Add a pre-fetch target to check CFLAGS. XFree won't compile with -O3 or above with xthreads. Bump PORTREVISION. --- x11/XFree86-4/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile index f31301b63a42..21ab0825bf43 100644 --- a/x11/XFree86-4/Makefile +++ b/x11/XFree86-4/Makefile @@ -7,7 +7,7 @@ PORTNAME= XFree86 PORTVERSION= 4.0.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE} MASTER_SITE_SUBDIR= ${PORTVERSION} @@ -51,6 +51,12 @@ SCRIPTS_ENV+= MACHINE=alpha PLIST= ${PKGDIR}/pkg-plist.alpha .endif +pre-fetch: + @if ${ECHO} "$(CFLAGS)" |${GREP} -q O[3456789]; then \ + ${ECHO} "XFree86-4 with thread support does not build with optimization"; \ + ${ECHO} "flags different from O or -O2"; \ + ${FALSE}; fi + .if defined(XDM_DES) && (${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO) pre-fetch: @${ECHO} -- cgit v1.2.3