diff options
author | jmz <jmz@FreeBSD.org> | 2001-02-09 00:38:51 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2001-02-09 00:38:51 +0800 |
commit | 5a32244e6d84774f043aa34b05d3014958236f59 (patch) | |
tree | 94a469b89c2d7c708f34ed7fae844643a4defcfb | |
parent | 1defe84b2d5aa23cc00bab490e7e9209b813f592 (diff) | |
download | freebsd-ports-gnome-5a32244e6d84774f043aa34b05d3014958236f59.tar.gz freebsd-ports-gnome-5a32244e6d84774f043aa34b05d3014958236f59.tar.zst freebsd-ports-gnome-5a32244e6d84774f043aa34b05d3014958236f59.zip |
Add a pre-fetch target to check CFLAGS. XFree won't compile with -O3 or above
with xthreads.
Bump PORTREVISION.
-rw-r--r-- | x11/XFree86-4/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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} |