summaryrefslogtreecommitdiff
path: root/lang/modula-3-lib/Makefile
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-06-06 20:32:08 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-06-06 20:32:08 +0000
commite8b37db2f2e1d83fa7743643b81e719d8ba936ae (patch)
treeb819e52f07a062fbbfcd10689854db533918e8d3 /lang/modula-3-lib/Makefile
parentFix libc shlib version. (diff)
By popular demand, make the modula-3 ports build successfully even
if X11 is not installed. PR: closes ports/4178
Notes
Notes: svn path=/head/; revision=11303
Diffstat (limited to 'lang/modula-3-lib/Makefile')
-rw-r--r--lang/modula-3-lib/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/lang/modula-3-lib/Makefile b/lang/modula-3-lib/Makefile
index f120f81adda2..90feb6cd7888 100644
--- a/lang/modula-3-lib/Makefile
+++ b/lang/modula-3-lib/Makefile
@@ -3,7 +3,7 @@
# Date created: 28 Oct 1996
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.8 1997/07/13 18:49:22 max Exp $
+# $Id: Makefile,v 1.9 1997/07/17 15:12:48 max Exp $
#
DISTNAME= modula-3-lib-3.6
@@ -48,6 +48,14 @@ have_gcc!= /bin/sh scripts/check_files files/T.gcc m3cc /usr/src/contrib
DISTFILES+= m3-fbsd-gcc-3.6.tar.gz
.endif
+# Support building on systems with or without X11 installed. The 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)
+PLIST= ${PKGDIR}/PLIST.noX11
+.endif
+
# Startup script, run at boot time
startup_dir= ${PREFIX}/etc/rc.d
startup_script= ${startup_dir}/50.m3.sh
@@ -116,10 +124,10 @@ do-install:
@echo "Installing shared libraries"
@cd ${temp_prefix}; \
umask 022; \
- grep '^lib/m3/' ${PKGDIR}/PLIST | \
+ grep '^lib/m3/' ${PLIST} | \
cpio -dump -R ${BINOWN}.${BINGRP} ${PREFIX}
@cd ${PREFIX}; \
- grep '^lib/m3/' ${PKGDIR}/PLIST | xargs chmod go=u-w; \
+ grep '^lib/m3/' ${PLIST} | xargs chmod go=u-w; \
find -X lib/m3 -type d | xargs chown ${BINOWN}.${BINGRP}; \
find -X lib/m3 -type d | xargs chmod 755
@echo "Installing copyright notice"