Skip to content
Snippets Groups Projects
Commit 661480d4 authored by Albert Gräf's avatar Albert Gräf
Browse files

Include the libquicktime plugins in the Homebrew build.

On the Mac, we have to ship these along with libquicktime itself, and
define LIBQUICKTIME_PLUGIN_DIR in the environment so that libquicktime
finds them. Otherwise Gem's QT4L plugins won't be of much use.
parent dfc86ac3
No related branches found
No related tags found
1 merge request!839Gem on the Mac
......@@ -52,6 +52,8 @@ for pd_darwin in `find $PD_APP_CONTENTS -name '*.pd_darwin'`; do
done
# check for .so plugins used by libquicktime and others
rm -rf $PD_APP_PLUGINS/libquicktime
test -d ${optlocal}/libquicktime/lib/libquicktime && cp -r ${optlocal}/libquicktime/lib/libquicktime $PD_APP_PLUGINS || true
for so in $PD_APP_PLUGINS/*/*.so; do
LIBS=`otool -L $so | sed -n 's|.*'"${optlocal}"'/\(.*\.dylib\).*|\1|p'`
if [ "x$LIBS" != "x" ]; then
......
......@@ -389,6 +389,17 @@ int sys_main(int argc, char **argv)
#ifndef MSW
if (!noprefs)
sys_rcfile(); /* parse the startup file */
#endif
#ifdef __APPLE__
// Initialize libquicktime for Gem, so that it finds its plugins.
char *plugins = strdup(argv[0]), *t = strstr(plugins, "/Contents");
if (t) {
strncpy(t, "/Contents/Plugins/libquicktime", strlen(t));
fprintf(stderr, "LIBQUICKTIME_PLUGIN_DIR = %s\n", plugins);
// We don't override an existing value here, since the user may have
// already set up her own libquicktime plugin collection.
setenv("LIBQUICKTIME_PLUGIN_DIR", plugins, 0);
}
#endif
if (sys_argparse(argc-1, argv+1)) /* parse cmd line */
return (1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment