Automatically select the no-GUI version to build if X11 is not

installed.

PR:		closes ports/4178
This commit is contained in:
John Polstra 1998-06-06 20:33:21 +00:00
parent e8b37db2f2
commit 76e8b0735d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11304

View file

@ -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>