d1991ca961
to replace the complexity of the default INSTALL/DEINSTALL scripts with something simpler when simple is all that's needed. Also replace the check for OpenWindows with one that's more sensible.
38 lines
615 B
Text
38 lines
615 B
Text
# INSTALL_TMPL replacement
|
|
#
|
|
# $NetBSD: INSTALL.OpenWindows,v 1.2 2002/10/20 09:15:23 jlam Exp $
|
|
|
|
LIBTIFF="libtiff.so libtiff.so.3"
|
|
|
|
case ${STAGE} in
|
|
PRE-INSTALL)
|
|
for lib in ${LIBTIFF}; do
|
|
src="${PKG_PREFIX}/lib/${lib}"
|
|
dest="@X11BASE@/lib/${lib}"
|
|
if [ -f ${dest} ]; then
|
|
${MV} -f ${dest} ${dest}.openwin
|
|
${LN} -sf ${src} ${dest}
|
|
fi
|
|
done
|
|
;;
|
|
|
|
POST-INSTALL)
|
|
;;
|
|
|
|
DEINSTALL)
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
|
for lib in ${LIBTIFF}; do
|
|
file="@X11BASE@/lib/${lib}"
|
|
if [ -f ${file}.openwin ]; then
|
|
${MV} -f ${file}.openwin ${file}
|
|
fi
|
|
done
|
|
;;
|
|
|
|
*)
|
|
${ECHO} "Unexpected argument: ${STAGE}"
|
|
exit 1
|
|
;;
|
|
esac
|