From 5ff80e27ca655424146dd56b0ff80b096611acb4 Mon Sep 17 00:00:00 2001 From: "David W. Chapman Jr." Date: Mon, 27 May 2002 02:02:18 +0000 Subject: Require use to override if hmake is already installed PR: 38585 Submitted by: maintainer --- lang/nhc98/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lang') diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile index 9862aee52238..18e9fcf2be00 100644 --- a/lang/nhc98/Makefile +++ b/lang/nhc98/Makefile @@ -69,11 +69,19 @@ pre-fetch: post-patch: @${PERL} -pi.orig -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc +pre-install: +.if exists(${PREFIX}/bin/hmake) && !defined(OVERRIDE_HMAKE) + @${ECHO} "" + @${ECHO} "It seems that there is already a version of hmake installed on" + @${ECHO} "this system. Since hmake is part of nhc98, please deinstall it," + @${ECHO} "or define OVERRIDE_HMAKE to override the installed version." + @${ECHO} "" + @${FALSE} +.endif # We need this to ensure that the libs will be installed into # ${PREFIX}/lib/nhc98. Otherwise the libs will be installed # into the build directory. The configure option won't work in the # ports system. -pre-install: ${RM} -f ${WRKSRC}/include/*.orig ${SED} -e "s#LIBDIR=.*##" \ < ${WRKSRC}/targets/ix86-FreeBSD/config.cache \ -- cgit v1.2.3