]> 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 cfac3305c15210f01fa6e7ef0b11da83a3352eec..6032cb552ecff7cbd0d66818894ecc08755ad2ba 100644 (file)
@@ -7,7 +7,7 @@ PKGS += bghudappkit
 endif
 
 $(TARBALLS)/bghudappkit-git.tar.xz:
-       $(call download_git,$(BGHUDAPPKIT_GITURL))
+       $(call download_git,$(BGHUDAPPKIT_GITURL),,79a560d)
 
 
 .sum-bghudappkit: bghudappkit-git.tar.xz
@@ -20,5 +20,9 @@ bghudappkit: bghudappkit-git.tar.xz .sum-bghudappkit
        $(MOVE)
 
 .bghudappkit: bghudappkit
-       cd $< && $(MAKE) && exit 1 #FIXME
+       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 $@