diff options
author | jdp <jdp@FreeBSD.org> | 1998-06-06 20:33:21 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-06-06 20:33:21 +0000 |
commit | ee82e0001487b8c168c9e755123ee5c6a0ca89d9 (patch) | |
tree | a11cad5ce868da9a8106653b598caae1c56f4d17 /net | |
parent | 025b93e555b77f3cf57238b7a0f5479eee4ec559 (diff) | |
download | FreeBSD-ports-ee82e0001487b8c168c9e755123ee5c6a0ca89d9.zip FreeBSD-ports-ee82e0001487b8c168c9e755123ee5c6a0ca89d9.tar.gz |
Automatically select the no-GUI version to build if X11 is not
installed.
PR: closes ports/4178
Diffstat (limited to 'net')
-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 ffc6fc8..0ad7b09 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> |