[vlc-commits] [Git][videolan/npapi-vlc][master] macosx: fix more hard-coded constants

Felix Paul Kühne gitlab at videolan.org
Thu Jul 12 14:09:12 CEST 2018


Felix Paul Kühne pushed to branch master at VideoLAN / VLC Browser Plugins


Commits:
39358651 by Felix Paul Kühne at 2018-07-12T14:00:15+02:00
macosx: fix more hard-coded constants

- - - - -


4 changed files:

- extras/macosx/build-package.sh
- extras/macosx/build-plugin.sh
- extras/macosx/dmg_setup.scpt
- npapi/Makefile.am


Changes:

=====================================
extras/macosx/build-package.sh
=====================================
--- a/extras/macosx/build-package.sh
+++ b/extras/macosx/build-package.sh
@@ -246,9 +246,9 @@ done
 ##########################
 # Build the lib folder
 vlc_install "${libvlc_dir}/lib" "libvlc.5.dylib" "${target_lib}" "library"
-vlc_install "${libvlc_dir}/lib" "libvlccore.5.dylib" "${target_lib}" "library"
+vlc_install "${libvlc_dir}/lib" "libvlccore.9.dylib" "${target_lib}" "library"
 pushd `pwd` > /dev/null
 cd ${target_lib}
 ln -sf libvlc.5.dylib libvlc.dylib
-ln -sf libvlccore.5.dylib libvlccore.dylib
+ln -sf libvlccore.9.dylib libvlccore.dylib
 popd > /dev/null


=====================================
extras/macosx/build-plugin.sh
=====================================
--- a/extras/macosx/build-plugin.sh
+++ b/extras/macosx/build-plugin.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
+# Copyright (C) Felix Paul Kühne, 2012-2018
+
 set -e
 
 info()
@@ -8,9 +10,9 @@ info()
     echo "[${green}build${normal}] $1"
 }
 
+OSX_VERSION=`xcrun --sdk macosx --show-sdk-version`
 ARCH="x86_64"
 MINIMAL_OSX_VERSION="10.7"
-OSX_VERSION="10.11"
 SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
 VERBOSE=no
 
@@ -104,7 +106,7 @@ git submodule update --init
 
 info "Creating builddir and configuration"
 mkdir -p ${ARCH}-build && cd ${ARCH}-build
-../configure --build=${ARCH}-apple-darwin10
+../configure --build=${ARCH}-apple-darwin14
 
 core_count=`sysctl -n machdep.cpu.core_count`
 let jobs=$core_count+1


=====================================
extras/macosx/dmg_setup.scpt
=====================================
Binary files a/extras/macosx/dmg_setup.scpt and b/extras/macosx/dmg_setup.scpt differ


=====================================
npapi/Makefile.am
=====================================
--- a/npapi/Makefile.am
+++ b/npapi/Makefile.am
@@ -157,7 +157,7 @@ VLC-Plugin.plugin: $(lib_LTLIBRARIES)
 	mv $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/npvlc.dylib "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
 	chmod +x "$(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin"
 	install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlc.5.dylib @loader_path/lib/libvlc.5.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
-	install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlccore.8.dylib @loader_path/lib/libvlccore.8.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
+	install_name_tool -change $(LIBVLC_PREFIX)/lib/libvlccore.9.dylib @loader_path/lib/libvlccore.9.dylib $(top_builddir)/VLC-Plugin.plugin/Contents/MacOS/VLC-Plugin
 	find "$(top_builddir)/VLC-Plugin.plugin" -type d -exec chmod ugo+rx '{}' \;
 	find "$(top_builddir)/VLC-Plugin.plugin" -type f -exec chmod ugo+r '{}' \;
 



View it on GitLab: https://code.videolan.org/videolan/npapi-vlc/commit/39358651bae32dac148c260e72b67fa322b00546

-- 
View it on GitLab: https://code.videolan.org/videolan/npapi-vlc/commit/39358651bae32dac148c260e72b67fa322b00546
You're receiving this email because of your account on code.videolan.org.


More information about the vlc-commits mailing list