diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-05-27 10:02:18 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-05-27 10:02:18 +0800 |
commit | d6eee8bb105825a5f99a906771a4b25fad39b462 (patch) | |
tree | d3326548e7d50606b9d37191909ab5e00b2330e5 /lang | |
parent | 127938a140a462cd23844f0ce7cd16c9f48b9a71 (diff) | |
download | freebsd-ports-gnome-d6eee8bb105825a5f99a906771a4b25fad39b462.tar.gz freebsd-ports-gnome-d6eee8bb105825a5f99a906771a4b25fad39b462.tar.zst freebsd-ports-gnome-d6eee8bb105825a5f99a906771a4b25fad39b462.zip |
Require use to override if hmake is already installed
PR: 38585
Submitted by: maintainer
Diffstat (limited to 'lang')
-rw-r--r-- | lang/nhc98/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 \ |