]> git.sesse.net Git - vlc/blobdiff - contrib/src/bghudappkit/rules.mak
contrib: don't use -arch flag of xcodebuild
[vlc] / contrib / src / bghudappkit / rules.mak
index 304796ddb4e5566c81c076dc9be161db3c70cb0c..6032cb552ecff7cbd0d66818894ecc08755ad2ba 100644 (file)
@@ -20,6 +20,9 @@ bghudappkit: bghudappkit-git.tar.xz .sum-bghudappkit
        $(MOVE)
 
 .bghudappkit: bghudappkit
-       cd $< && xcodebuild -arch $(ARCH) -sdk macosx$(OSX_VERSION)
+       cd $< && xcodebuild -sdk macosx$(OSX_VERSION)
+       install_name_tool -change @loader_path/../../../../../../../BGHUDAppKit.framework/Versions/A/BGHUDAppKit \
+                                                               @loader_path/../../../../Versions/A/BGHUDAppKit \
+               $</build/Release/BGHUDAppKit.framework/Resources/BGHUDAppKitPlugin.ibplugin/Contents/MacOS/BGHUDAppKitPlugin
        cd $< && cp -R -L build/Release/BGHUDAppKit.framework "$(PREFIX)"
        touch $@