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:
parent
10943c1c83
commit
ab5106a732
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53492
@ -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} \
|
||||
|
15
lang/ezm3/scripts/check_conflicts
Normal file
15
lang/ezm3/scripts/check_conflicts
Normal 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
|
Loading…
Reference in New Issue
Block a user