freebsd-ports/multimedia/openquicktime/pkg-install
Mario Sergio Fujikawa Ferreira 36f5ffb45f New port openquicktime version 1.0: Portable library for handling
Apple's QuickTime(TM) files
2001-09-24 20:05:22 +00:00

42 lines
790 B
Bash

#!/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