diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-06-06 20:33:21 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-06-06 20:33:21 +0000 |
commit | 76e8b0735d54ed12d0586a5c29a59d34660b2fe6 (patch) | |
tree | 4ab4126bd4785c12aa24a5a7c3e6620970cb2405 /net/cvsup | |
parent | By popular demand, make the modula-3 ports build successfully even (diff) |
Automatically select the no-GUI version to build if X11 is not
installed.
PR: closes ports/4178
Diffstat (limited to 'net/cvsup')
-rw-r--r-- | net/cvsup/Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/net/cvsup/Makefile b/net/cvsup/Makefile index ffc6fc899451..0ad7b093ccdb 100644 --- a/net/cvsup/Makefile +++ b/net/cvsup/Makefile @@ -3,7 +3,7 @@ # Date created: 7 August 1996 # Whom: asami # -# $Id: Makefile,v 1.23 1998/03/24 04:20:12 jdp Exp $ +# $Id: Makefile,v 1.24 1998/04/28 22:25:03 jdp Exp $ # DISTNAME= cvsup-15.4 @@ -20,13 +20,22 @@ LIB_DEPENDS= m3\\.6\\.:${PORTSDIR}/lang/modula-3-lib MAN1= cvsup.1 MAN8= cvsupd.8 -# To build the client without GUI support: -#MAKE_ENV= M3FLAGS=-DNOGUI +# Support building on systems with or without X11 installed. The +# modula-3-lib port only supports X11R6 in the standard location, +# so we don't bother using the X11BASE macro. It's not defined yet +# at this point in the Makefile anyway. +.if !exists(/usr/X11R6/lib/libX11.a) +M3FLAGS+= -DNOGUI +.endif + +# Build options. Uncomment the desired ones. +# To build the client without GUI support (automatic if X11R6 is not found): +#M3FLAGS+= -DNOGUI # To link the programs statically: -#MAKE_ENV= M3FLAGS=-DSTATIC +#M3FLAGS+= -DSTATIC # To link just the Modula-3 libraries statically: -#MAKE_ENV= M3FLAGS=-DM3STATIC -# If you combine these, use double quotes: -#MAKE_ENV= M3FLAGS="-DNOGUI -DSTATIC" +#M3FLAGS+= -DM3STATIC + +MAKE_ENV+= M3FLAGS="${M3FLAGS}" .include <bsd.port.mk> |