macOS packaging: Simplify copy rule for libvlc
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 14 Apr 2019 11:37:29 +0000 (13:37 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 15 Apr 2019 20:50:46 +0000 (22:50 +0200)
extras/package/macosx/package.mak

index e3d78e1..d0eb076 100644 (file)
@@ -42,7 +42,7 @@ endif
        -cp -a "$(prefix)/share/locale" $@/Contents/Resources/share/
        printf "APPLVLC#" >| $@/Contents/PkgInfo
        ## Copy libs
-       find $(prefix)/lib -name 'libvlc*.dylib' -maxdepth 1 -exec cp -a {} $@/Contents/Frameworks \;
+       cp -a "$(libdir)"/libvlc*.dylib $@/Contents/Frameworks/
        ## Copy plugins
        mkdir -p $@/Contents/Frameworks/plugins
        find $(prefix)/lib/vlc/plugins -name 'lib*_plugin.dylib' -maxdepth 2 -exec cp -a {} $@/Contents/Frameworks/plugins \;