1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Add a pre-install target which checks for conflicting shared

libraries left over from other Modula-3 ports.
This commit is contained in:
John Polstra 2002-01-21 21:43:41 +00:00
parent 10943c1c83
commit ab5106a732
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53492
2 changed files with 18 additions and 0 deletions

View File

@ -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} \

View File

@ -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