Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
9ef88402
Commit
9ef88402
authored
2 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Check for a custom libquicktime-ffmpeg package.
parent
b361a6e4
No related branches found
Branches containing commit
No related tags found
1 merge request
!839
Gem on the Mac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/darwin_app/embed-MacOSX-dependencies.sh
+32
-2
32 additions, 2 deletions
packages/darwin_app/embed-MacOSX-dependencies.sh
with
32 additions
and
2 deletions
packages/darwin_app/embed-MacOSX-dependencies.sh
+
32
−
2
View file @
9ef88402
...
@@ -51,9 +51,22 @@ for pd_darwin in `find $PD_APP_CONTENTS -name '*.pd_darwin'`; do
...
@@ -51,9 +51,22 @@ for pd_darwin in `find $PD_APP_CONTENTS -name '*.pd_darwin'`; do
fi
fi
done
done
# check for
.so plugins used by libquicktime and others
# check for
libquicktime plugins, copy them over
rm
-
rf
$PD_APP_PLUGINS
/
libquicktime
rm
-
rf
$PD_APP_PLUGINS
/
libquicktime
test
-
d
${
optlocal
}
/
libquicktime/lib/libquicktime
&&
cp
-
r
${
optlocal
}
/
libquicktime/lib/libquicktime
$PD_APP_PLUGINS
||
true
libqt_ffmpeg_plugins
=
${
optlocal
}
/
libquicktime-ffmpeg/lib/libquicktime
libqt_plugins
=
${
optlocal
}
/
libquicktime/lib/libquicktime
# prefer libquicktime-ffmpeg, in case we have both installed
if
test
-
d
${
libqt_ffmpeg_plugins
}
;
then
cp
-
r
${
libqt_ffmpeg_plugins
}
$PD_APP_PLUGINS
elif
test
-
d
${
libqt_plugins
}
;
then
cp
-
r
${
libqt_plugins
}
$PD_APP_PLUGINS
elif
[
"
$optlocal
"
!=
"/opt/local"
]
;
then
echo
"No libquicktime found, did you install it?"
>&
2
fi
# change permissions so that install_name can write to the plugin files
chmod
-
fR u+xw
$PD_APP_PLUGINS
/
libquicktime
# check for .so plugins used by libquicktime and others
for
so
in
$PD_APP_PLUGINS
/*/*
.so
;
do
for
so
in
$PD_APP_PLUGINS
/*/*
.so
;
do
LIBS
=
`
otool
-L
$so
|
sed
-n
's|.*'
"
${
optlocal
}
"
'/\(.*\.dylib\).*|\1|p'
`
LIBS
=
`
otool
-L
$so
|
sed
-n
's|.*'
"
${
optlocal
}
"
'/\(.*\.dylib\).*|\1|p'
`
if
[
"x
$LIBS
"
!=
"x"
]
;
then
if
[
"x
$LIBS
"
!=
"x"
]
;
then
...
@@ -71,6 +84,23 @@ for so in $PD_APP_PLUGINS/*/*.so; do
...
@@ -71,6 +84,23 @@ for so in $PD_APP_PLUGINS/*/*.so; do
done
done
echo
" "
echo
" "
fi
fi
# Homebrew also has some libraries in its cellar (keg-only package?).
LIBS
=
`
otool
-L
$so
|
sed
-n
's|.*'
"/usr/local/Cellar"
'/\(.*\.dylib\).*|\1|p'
`
if
[
"x
$LIBS
"
!=
"x"
]
;
then
echo
"
`
echo
$so
|
sed
's|.*/\(lib.*/.*\.so\)|\1|'
`
is using:"
for
lib
in
$LIBS
;
do
echo
"
$lib
"
new_lib
=
`
echo
$lib
|
sed
's|.*/\(.*\.dylib\)|\1|'
`
if
[
-
e
$PD_APP_LIB
/
$new_lib
]
;
then
echo
"
$PD_APP_LIB
/
$new_lib
already exists, skipping copy."
else
install
-
vp
/
usr/local/Cellar/
$lib
$PD_APP_LIB
fi
# @executable_path starts from Contents/Resources/app.nw/bin
install_name_tool
-
change
/
usr/local/Cellar/
$lib
@executable_path/../../../
$LIB_DIR
/
$new_lib
$so
done
echo
" "
fi
done
done
for
dylib
in
$PD_APP_LIB
/*
.dylib
;
do
for
dylib
in
$PD_APP_LIB
/*
.dylib
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment