summaryrefslogtreecommitdiff
path: root/graphics/tiff/INSTALL.OpenWindows
blob: 0ebac569b7d0aa7b5fc4fd87898f8d34336dc655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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