aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-06-06 20:33:21 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-06-06 20:33:21 +0000
commit76e8b0735d54ed12d0586a5c29a59d34660b2fe6 (patch)
tree4ab4126bd4785c12aa24a5a7c3e6620970cb2405
parente8b37db2f2e1d83fa7743643b81e719d8ba936ae (diff)
downloadports-76e8b0735d54ed12d0586a5c29a59d34660b2fe6.tar.gz
ports-76e8b0735d54ed12d0586a5c29a59d34660b2fe6.zip
Notes
-rw-r--r--net/cvsup/Makefile23
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>