]> git.sesse.net Git - vlc/commitdiff
+ configure.ac: BeOS dvdread linkage fix
authorEric Petit <titer@videolan.org>
Fri, 23 Jul 2004 14:19:31 +0000 (14:19 +0000)
committerEric Petit <titer@videolan.org>
Fri, 23 Jul 2004 14:19:31 +0000 (14:19 +0000)
 + contrib/src/Makefile: build more libs on BeOS, use libdts' svn
 + Makefile.am: fixed BeOS packages generation

Makefile.am
configure.ac
extras/contrib/src/Makefile

index fce051658ccea8ca7f677c1c9a2ebe21ab56b644..4dd9bece3aa2250e0a0c4829d5efdb0b64a9ef7f 100644 (file)
@@ -406,7 +406,7 @@ vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
 
 if HAVE_BEOS
 vlc-bundle: vlc
-       rm -rf $(srcdir)/vlc-bundle ; mkdir -p $(srcdir)/vlc-bundle
+       rm -Rf $(srcdir)/vlc-bundle ; mkdir -p $(srcdir)/vlc-bundle
        cp $(srcdir)/vlc $(srcdir)/vlc-bundle/
        xres -o $(srcdir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
        for i in "" `$(VLC_CONFIG) --target plugin` ; do \
@@ -426,7 +426,7 @@ vlc-bundle: vlc
          cp "$(srcdir)/po/$$i.gmo" \
            "$(srcdir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
        done
-       find $(srcdir)/vlc-bundle -type f $(srcdir)/vlc-bundle -exec mimeset -f "{}" \;
+       find $(srcdir)/vlc-bundle -type f -exec mimeset -f "{}" \;
 endif
 
 # Install the modules and the symlinks
@@ -695,23 +695,21 @@ package-beos:
 
 # Copy relevant files
        mkdir -p $(srcdir)/tmp/vlc ;
-       cd $(srcdir) && \
-         cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/ ;
-# We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
-       if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
-         mkdir -p $(srcdir)/tmp/vlc/plugins ; \
-         find $(srcdir)/modules -name "lib*_plugin.so" -exec cp {} $(srcdir)/tmp/vlc/plugins/ \; ; \
-       fi
-       for i in $(ALL_LINGUAS); do \
-         mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
-         cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
-       done
+       cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
+         THANKS NEWS tmp/vlc/ ;
+
+# Create debug package
+       xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
+       find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
+       mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
+       (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
+       mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
+       mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
 
-# Strip files and create package
+# Create normal package
        strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
-       if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
-         strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/plugins/lib*_plugin.so ; \
-       fi
+       find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
+         --strip-debug --strip-unneeded "{}" \; ;
        xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
        find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
        mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
index 733669e8b29376dba281f0a85c5fe85e4c3d49d9..2dd0afd316f375949d4eae65a946040cf731f622 100644 (file)
@@ -1276,7 +1276,7 @@ then
   [    --with-dvdread-tree=PATH libdvdread tree for static linking])
 
   dnl Temporary hack (yeah, sure ;)
-  if test "${SYS}" = "mingw32" || test "${SYS}" = "darwin"; then
+  if test "${SYS}" = "mingw32" || test "${SYS}" = "darwin" || test "${SYS}" = "beos" ; then
       VLC_ADD_LDFLAGS([dvdread],[-ldvdcss])
   fi
 
index 70552db8486375ef7548bc08a254a869f4474abc..d3215101622e6ab5421e861dde6f8d1a812534f2 100644 (file)
@@ -59,7 +59,8 @@ endif
 ifeq ($(SYS),BEOS)
 all: .perl .autoconf .libtool .automake .iconv .intl .freetype .fribidi \
        .a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
-       .FLAC .speex .faad .faac .lame .ffmpeg .dvdcss .dvdread
+       .FLAC .speex .faad .faac .lame .ffmpeg .dvdcss .dvdread .dvbpsi \
+       .dts
 endif
 
 FORCE:
@@ -570,7 +571,7 @@ lame: lame-$(LAME_VERSION).tar.gz
        $(EXTRACT_GZ)
 
 .lame: lame
-       (cd $<; ./configure --prefix=$(PREFIX) && make && make install)
+       (cd $<; ./configure --prefix=$(PREFIX) --disable-shared && make && make install)
        touch $@
 
 CLEAN_FILE += .lame
@@ -801,8 +802,13 @@ DISTCLEAN_PKG += libcaca-$(LIBCACA_VERSION).tar.gz
 libdts-$(LIBDTS_VERSION).tar.gz:
        $(WGET) $(LIBDTS_URL)
 
-libdts: libdts-$(LIBDTS_VERSION).tar.gz
-       $(EXTRACT_GZ)
+# libdts 0.0.2 doesn't compile on BeOS
+#libdts: libdts-$(LIBDTS_VERSION).tar.gz
+#      $(EXTRACT_GZ)
+
+libdts:
+       svn co svn://svn.videolan.org/libdts/trunk libdts
+       (cd $@; ./bootstrap)
 
 .dts: libdts
        (cd $<; ./configure --prefix=$(PREFIX) && make && make install)