Changeset 20f3acbf3852dd65cff6065b08c15f7665c7cc50

Show
Ignore:
Timestamp:
01/02/08 00:20:45 (10 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1201821645 +0000
git-parent:

[a80b4670ad25c57fce95af299fb3f6bbf97b8ecf]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1201821645 +0000
Message:

Make sure VLC.app doesn't take too much time to build. This breaks VLC-release.app, and following commit will fix that.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    re76d847 r20f3acb  
    548548    find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \; 
    549549 
    550 VLC.app: vlc 
     550VLC.app: vlc  
     551    ( cd src && make install ) 
    551552    @if test -e "$(top_builddir)/tmp"; then \ 
    552553      echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \ 
     
    620621    rm -Rf $(top_builddir)/tmp 
    621622    $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS 
    622     $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/lib 
    623623    $(INSTALL) $(top_builddir)/.libs/vlc \ 
    624624           $(top_builddir)/VLC.app/Contents/MacOS/VLC 
    625     $(INSTALL) $(top_builddir)/src/.libs/libvlc.1.dylib \ 
    626            $(top_builddir)/VLC.app/Contents/MacOS/lib/libvlc.dylib 
    627     $(INSTALL) $(top_builddir)/src/.libs/libvlc-control.1.dylib \ 
    628            $(top_builddir)/VLC.app/Contents/MacOS/lib/libvlc-control.dylib 
    629     install_name_tool -change /usr/local/lib/libvlc.1.dylib \ 
    630            @executable_path/lib/libvlc.dylib \ 
    631            $(top_builddir)/VLC.app/Contents/MacOS/lib/libvlc-control.dylib 
    632     install_name_tool -change /usr/local/lib/libvlc.1.dylib \ 
    633            @executable_path/lib/libvlc.dylib \ 
    634            $(top_builddir)/VLC.app/Contents/MacOS/VLC 
    635625    ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc 
    636626    $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules 
    637627    for i in `$(VLC_CONFIG) --target plugin` ; do \ 
    638628      if test -n "$$i" ; \ 
    639         then install_name_tool -change /usr/local/lib/libvlc.1.dylib \ 
    640                                   @executable_path/lib/libvlc.dylib \ 
    641                           "`pwd`/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)"; \ 
    642         ln -sfn "`pwd`/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" \ 
    643                "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \ 
    644       fi ; done 
    645     if test -d $(srcdir)/extras/contrib/vlc-lib; then \ 
    646       mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \ 
    647       for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \ 
    648         install_name_tool -change /usr/local/lib/libvlc.1.dylib @executable_path/lib/libvlc.dylib $${i}; \ 
    649         ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/`basename $${i}` ; \ 
    650       done ; \ 
    651     fi 
     629       then ln -sfn "`pwd`/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" \ 
     630                   "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \ 
     631      fi ; done && \ 
    652632    ln -sfn `pwd`/$(srcdir)/share $(top_builddir)/VLC.app/Contents/MacOS/ 
    653633    $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale 
  • configure.ac

    re76d847 r20f3acb  
    187187        with_macosx_version_min="10.4" 
    188188        echo "  Assuming --with-macosx-version-min=10.4" 
     189        build_dir=`pwd` 
     190        echo "  Assuming --prefix=${build_dir}/vlc_install_dir" 
     191        ac_default_prefix="${build_dir}/vlc_install_dir" 
    189192        enable_macosx="yes" 
    190193        echo "  Assuming --enable-macosx" 
  • extras/contrib/src/Makefile

    r4ecf7a6 r20f3acb  
    211211#   touch $@ 
    212212 
    213 ifdef HAVE_DARWIN_OS 
    214 # the original libtoto.dylib is copied from contrib/lib to vlc-lib as 
    215 # vlc_libtoto.dylib. a soft link to this library is created in contrib/lib 
    216 # using the orginal dylib name. if libtoto.la also exists, the library named 
    217 # in dlname is also changed to a soft-link to vlc-lib in order to support 
    218 # libtool. to satisfy VLC.app dyld search, vlc_libtoto.dylib dyld id is changed 
    219 # to @executable_path/lib/vlc_libtoto.dylib  
    220  
    221 define INSTALL_NAME 
    222     if which install_name_tool >/dev/null; then \ 
    223         mkdir -p $(PREFIX)/vlc-lib ; \ 
    224         libname='lib$(patsubst .%,%,$@)' ; \ 
    225         dlname="$$libname.dylib" ; \ 
    226         cp $(PREFIX)/lib/$$dlname \ 
    227             $(PREFIX)/vlc-lib/vlc_$$dlname ; \ 
    228         rm $(PREFIX)/lib/$$dlname ; \ 
    229         ln -s $(PREFIX)/vlc-lib/vlc_$$dlname \ 
    230             $(PREFIX)/lib/$$dlname ; \ 
    231         if [ -f $(PREFIX)/lib/$$libname.la ]; then \ 
    232             eval ltname=`sed -n 's/dlname=//p' $(PREFIX)/lib/$$libname.la`; \ 
    233             rm $(PREFIX)/lib/$$ltname ; \ 
    234             ln -s $(PREFIX)/vlc-lib/vlc_$$dlname \ 
    235                 $(PREFIX)/lib/$$ltname ; \ 
    236         fi ; \ 
    237         install_name_tool \ 
    238             -id @executable_path/lib/vlc_$$dlname \ 
    239             $(PREFIX)/vlc-lib/vlc_$$dlname ; \ 
    240     fi 
    241 endef 
    242  
    243 endif 
    244  
    245213ifeq ($(HOST),i586-pc-beos) 
    246214# We test if the file actually exists, as sometimes (but not always) 
     
    11271095.dvdread: .dvdnav 
    11281096    $(INSTALL_NAME) 
    1129 ifdef HAVE_DARWIN_OS 
    1130     install_name_tool -change $(PREFIX)/lib/libdvdread.4.dylib @executable_path/lib/vlc_libdvdread.dylib $(PREFIX)/vlc-lib/vlc_libdvdnav.dylib 
    1131 endif 
    11321097    touch $@ 
    11331098