Changeset 20f3acbf3852dd65cff6065b08c15f7665c7cc50
- 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
| re76d847 |
r20f3acb |
|
| 548 | 548 | find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \; |
|---|
| 549 | 549 | |
|---|
| 550 | | VLC.app: vlc |
|---|
| | 550 | VLC.app: vlc |
|---|
| | 551 | ( cd src && make install ) |
|---|
| 551 | 552 | @if test -e "$(top_builddir)/tmp"; then \ |
|---|
| 552 | 553 | echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \ |
|---|
| … | … | |
| 620 | 621 | rm -Rf $(top_builddir)/tmp |
|---|
| 621 | 622 | $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS |
|---|
| 622 | | $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/lib |
|---|
| 623 | 623 | $(INSTALL) $(top_builddir)/.libs/vlc \ |
|---|
| 624 | 624 | $(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 |
|---|
| 635 | 625 | ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc |
|---|
| 636 | 626 | $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules |
|---|
| 637 | 627 | for i in `$(VLC_CONFIG) --target plugin` ; do \ |
|---|
| 638 | 628 | 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 && \ |
|---|
| 652 | 632 | ln -sfn `pwd`/$(srcdir)/share $(top_builddir)/VLC.app/Contents/MacOS/ |
|---|
| 653 | 633 | $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale |
|---|
| re76d847 |
r20f3acb |
|
| 187 | 187 | with_macosx_version_min="10.4" |
|---|
| 188 | 188 | 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" |
|---|
| 189 | 192 | enable_macosx="yes" |
|---|
| 190 | 193 | echo " Assuming --enable-macosx" |
|---|
| r4ecf7a6 |
r20f3acb |
|
| 211 | 211 | # touch $@ |
|---|
| 212 | 212 | |
|---|
| 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 | | |
|---|
| 245 | 213 | ifeq ($(HOST),i586-pc-beos) |
|---|
| 246 | 214 | # We test if the file actually exists, as sometimes (but not always) |
|---|
| … | … | |
| 1127 | 1095 | .dvdread: .dvdnav |
|---|
| 1128 | 1096 | $(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 |
|---|
| 1132 | 1097 | touch $@ |
|---|
| 1133 | 1098 | |
|---|