Blame docker-builder-data/build/script/packet/mlt-6.2.0.sh

ce0d6b
# + ffmpeg
ce0d6b
# + xml
ce0d6b
# + fftw
ce0d6b
# + samplerate
ce0d6b
# ? sdl
ce0d6b
# ? sox
ce0d6b
# + jack
ce0d6b
# + glib
ce0d6b
3b09af
DEPS="ffmpeg-3.1.5 xml-2.9.4 fftw-3.3.5 samplerate-0.1.9 sdl-1.2.15 sox-14.4.2 glib-2.50.0"
ce0d6b
ce0d6b
PK_DIRNAME="mlt-6.2.0"
ce0d6b
PK_ARCHIVE="v6.2.0.tar.gz"
ce0d6b
PK_URL="https://github.com/mltframework/mlt/archive/$PK_ARCHIVE"
ce0d6b
ce0d6b
PK_CONFIGURE_OPTIONS=" \
ce0d6b
 --enable-gpl \
ce0d6b
 --enable-gpl3 \
ce0d6b
 --disable-decklink \
ce0d6b
 --disable-gtk2 \
ce0d6b
 --disable-opengl \
ce0d6b
 --disable-qt \
ce0d6b
 --disable-rtaudio"
ce0d6b
3b09af
if [ "$PLATFORM" = "linux" ]; then
3b09af
    DEPS="$DEPS jack-0.125.0"
3b09af
fi
3b09af
3b09af
if [ "$PLATFORM" = "win" ]; then
31c087
    DEPS="$DEPS dlfcnwin32-1.1.1"
31c087
3b09af
    PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-os=MinGW"
3b09af
    if [ "$ARCH" = "32" ]; then
3b09af
        PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=i686"
3b09af
    else
3b09af
        PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=x86_$ARCH"
3b09af
    fi
3b09af
fi
3b09af
ce0d6b
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
ce0d6b
c35e3a
pkhook_postinstall() {
c35e3a
    if [ "$PLATFORM" = "win" ]; then
357fdf
        mkdir -p "bin"
6dce60
        mkdir -p "bin/lib"
357fdf
        mkdir -p "bin/share"
6dce60
        mv "libmlt++-3.dll" "bin/"
6dce60
        mv "libmlt-6.dll"   "bin/"
6dce60
        mv "melt"           "bin/melt.exe"
6dce60
        mv "lib/mlt"        "bin/lib/"
357fdf
        mv "share/mlt"      "bin/share/"
c35e3a
    fi
c35e3a
}