aboutsummaryrefslogtreecommitdiff
path: root/lang/ezm3
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2002-01-21 21:43:41 +0000
committerJohn Polstra <jdp@FreeBSD.org>2002-01-21 21:43:41 +0000
commitab5106a732adb6caef659188a39aff1b703529ee (patch)
treecb99dcd0ef5f94e870857689f74da1c864a728ad /lang/ezm3
parent10943c1c83244d40278c251258ac6c5dcb02f740 (diff)
downloadports-ab5106a732adb6caef659188a39aff1b703529ee.tar.gz
ports-ab5106a732adb6caef659188a39aff1b703529ee.zip
Notes
Diffstat (limited to 'lang/ezm3')
-rw-r--r--lang/ezm3/Makefile3
-rw-r--r--lang/ezm3/scripts/check_conflicts15
2 files changed, 18 insertions, 0 deletions
diff --git a/lang/ezm3/Makefile b/lang/ezm3/Makefile
index 8d29c2d34f3f..ee92f9d80f43 100644
--- a/lang/ezm3/Makefile
+++ b/lang/ezm3/Makefile
@@ -64,6 +64,9 @@ do-build:
@${ECHO_MSG} "This port does everything in the install step."
@${ECHO_MSG} "The build step is a no-op."
+pre-install:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_conflicts
+
do-install:
@${RM} -rf ${WRKSRC}/${TARGET}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
diff --git a/lang/ezm3/scripts/check_conflicts b/lang/ezm3/scripts/check_conflicts
new file mode 100644
index 000000000000..0610f783f80e
--- /dev/null
+++ b/lang/ezm3/scripts/check_conflicts
@@ -0,0 +1,15 @@
+#! /bin/sh
+# Check for shared libraries left over from another Modula-3 port.
+
+libdir=${PREFIX}/lib/m3/${TARGET}
+
+case "`echo ${libdir}/lib*.so*`" in
+"${libdir}/lib*.so*")
+ exit 0;;
+*)
+ echo ""
+ echo "You have some Modula-3 shared libraries in ${libdir}"
+ echo "which conflict with ezm3. Please use pkg_delete to remove other"
+ echo "versions of Modula-3, such as \"modula-3*\" and \"pm3-*\"."
+ exit 1;;
+esac