aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/openquicktime/pkg-install
blob: bffe5d3e1646ffff6afe4df46a5650999b29b360 (plain) (blame)
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
39
40
41
42
#!/bin/sh
# $FreeBSD$

[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2

LIB_DIR=${PKG_PREFIX}/lib
LIB_VERSION=0

LN="ln -sf"
RM=rm

case "$ACTION" in

POST-INSTALL)
    ${LN} libopenquicktime.so \
        ${LIB_DIR}/libopenquicktime.so.${LIB_VERSION}
    ${LN} quicktime_codec_.mp3.so \
        ${LIB_DIR}/quicktime_codec_.mp3.so.${LIB_VERSION}
    ${LN} quicktime_codec_ms.so \
        ${LIB_DIR}/quicktime_codec_ms.so.${LIB_VERSION}
    ${LN} quicktime_codec_jpeg.so \
        ${LIB_DIR}/quicktime_codec_jpeg.so.${LIB_VERSION}
    ;;

DEINSTALL)
    ${RM} ${LIB_DIR}/libopenquicktime.so.${LIB_VERSION}
    ${RM} ${LIB_DIR}/quicktime_codec_.mp3.so.${LIB_VERSION}
    ${RM} ${LIB_DIR}/quicktime_codec_ms.so.${LIB_VERSION}
    ${RM} ${LIB_DIR}/quicktime_codec_jpeg.so.${LIB_VERSION}
    ;;

PRE-INSTALL|POST-DEINSTALL)
    ;;

*)
    exit 1
    ;;
esac

exit