#!/bin/sh # $FreeBSD: head/multimedia/openquicktime/pkg-install 340719 2014-01-22 15:52:06Z mat $ [ $# != 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