Commit 39358651 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix more hard-coded constants

parent 9f8299f4
......@@ -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
#!/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
......
......@@ -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 '{}' \;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment