macosx: package libvlc_version.h, not libvlc_version.h.in.
authorJerome Forissier <jerome@taodyne.com>
Tue, 4 Mar 2014 15:03:30 +0000 (16:03 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 4 Mar 2014 15:57:23 +0000 (16:57 +0100)
Copy LibVLC headers from the installation directory: $(prefix)/include
rather than from the source directory, where the version file is still
unprocessed.

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 3c9463627d55d5e3f21f26eada40eaa137d8eca5)

extras/package/macosx/package.mak

index 71b0fbd..acbb92f 100644 (file)
@@ -51,7 +51,7 @@ VLC-tmp: vlc
        mkdir -p $@/Contents/MacOS/share/locale/
        cp -r "$(prefix)/lib/vlc/lua" "$(prefix)/share/vlc/lua" $@/Contents/MacOS/share/
        mkdir -p $@/Contents/MacOS/include/
-       cp -r "$(srcdir)/include/vlc" $@/Contents/MacOS/include/
+       (cd "$(prefix)/include" && $(AMTAR) -c --exclude "plugins" vlc) | $(AMTAR) -x -C $@/Contents/MacOS/include/
        $(INSTALL) -m 644 $(srcdir)/share/vlc512x512.png $@/Contents/MacOS/share/vlc512x512.png
        cat $(top_srcdir)/po/LINGUAS | while read i; do \
          $(INSTALL) -d $@/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \