Created
December 13, 2015 11:22
-
-
Save moriyoshi/e70a6074a6ceaea56cf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PKG_CONFIG_PATH= | |
LDFLAGS= | |
CPPFLAGS= | |
add_lib_path() { | |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$1/lib/pkgconfig | |
LDFLAGS="$LDFLAGS -L$1/lib" | |
CPPFLAGS="$CPPFLAGS -I$1/include/$2" | |
} | |
add_framework_path() { | |
CPPFLAGS="$CPPFLAGS" | |
LDFLAGS="$LDFLAGS -framework $1" | |
if [ -n "$2" ]; then | |
CPPFLAGS="$CPPFLAGS -F $2" | |
LDFLAGS="$LDFLAGS -F $2" | |
fi | |
} | |
add_lib_path $HOME/Library/Frameworks/aacplus.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/fribidi.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/ass.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/bluray.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/aacs.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/bdplus.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/bs2b.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/celt.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/cdio.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/lame.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/OpenCoreAMR.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/rtmp.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/x264.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/x265.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/Xvid.framework/Versions/Current | |
add_lib_path $HOME/Library/Frameworks/cdio-paranoia.framework/Versions/Current | |
add_framework_path SDL $HOME/Library/Frameworks | |
add_framework_path OpenAL | |
export PKG_CONFIG_PATH | |
export LDFLAGS | |
export CPPFLAGS | |
./configure \ | |
--prefix=$HOME/Library/Frameworks/FFmpeg.framework/Versions/$(./version.sh) \ | |
--enable-shared \ | |
--enable-gpl \ | |
--enable-version3 \ | |
--enable-nonfree \ | |
--enable-avresample \ | |
--enable-avisynth \ | |
--enable-fontconfig \ | |
--enable-libaacplus \ | |
--enable-libass \ | |
--enable-libbluray \ | |
--enable-libbs2b \ | |
--enable-libcelt \ | |
--enable-libcdio \ | |
--enable-libfreetype \ | |
--enable-libmp3lame \ | |
--enable-libopencore-amrnb \ | |
--enable-libopencore-amrwb \ | |
--enable-librtmp \ | |
--enable-libx264 \ | |
--enable-libx265 \ | |
--enable-libxvid \ | |
--enable-openal \ | |
--enable-opencl \ | |
--enable-opengl \ | |
--enable-openssl \ | |
--enable-x11grab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment