diff options
-rw-r--r-- | devel/hat/Makefile | 10 | ||||
-rw-r--r-- | devel/hs-hat/Makefile | 10 | ||||
-rw-r--r-- | lang/nhc98/Makefile | 10 |
3 files changed, 27 insertions, 3 deletions
diff --git a/devel/hat/Makefile b/devel/hat/Makefile index 9862aee52238..18e9fcf2be00 100644 --- a/devel/hat/Makefile +++ b/devel/hat/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 \ diff --git a/devel/hs-hat/Makefile b/devel/hs-hat/Makefile index 9862aee52238..18e9fcf2be00 100644 --- a/devel/hs-hat/Makefile +++ b/devel/hs-hat/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 \ 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 \ |