Matthias Ringwald a écrit :
hi

as libxine in fink is quite outdated, I tried the latest releases, had to fix a display bug for powerpc (in 1.1.9) and then stumbled upon a compiler/linker issue with XCode 3.0 on Leopard for all libxine versions.

I tried some with building an external ffmpeg-package and compiling xine with --with-external-ffmpeg. The next issue was a kdetv-interlacer that I just uncommented. I also took away --enable-macosx-video

I'm using it with xine-lib-1.1.10.1

When trying to build gxine, it complains with

checking for XINE-LIB version >= 1.0.0...
*** 'xine-config --version' returned -1717986918.1072798105.-1717986918, but XINE (1072798105.858993459.1076114227)
*** was found! If xine-config was correct, then it is best
*** to remove the old version of XINE. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If xine-config was wrong, set the environment variable XINE_CONFIG
*** to point to the correct copy of xine-config, and remove the file config.cache
*** before re-running configure

but when I run xine-config on its own, it says:

ineiti$ xine-config --version
1.1.10.1

Anyway, I'm trying to compile xfmedia now, to see if I have more luck or if I changed the libxine1.info too much ;)

Linus

PS: to run, copy the two files to /sw/fink/10.4/local/main/finkinfo and run fink install libxine1
Package: libxine1
Version: 1.1.10.1
Revision: 1027
Description: Xine video/media player library
License: GPL
Maintainer: Justin F. Hallett <[EMAIL PROTECTED]>

Depends: %N-shlibs (= %v-%r), libpostproc51-shlibs, libavutil49-shlibs, 
libavformat52-shlibs
BuildDepends: fink (>= 0.24-1), aalib, arts-dev (>= 1.4.0-2041), audiofile, 
bzip2-shlibs, esound, libflac8-dev , freetype219, gconf2-dev, gettext-bin, 
gettext-tools, glib2-dev (>= 2.8.6-123), gnome-vfs2-ssl-dev | gnome-vfs2-dev, 
imagemagick-dev (>= 6.1.8-1002) | imagemagick10-dev (>= 6.1.8-1002), lcms, 
libbonobo2-dev, libcaca-dev, libcdio-dev, libgettext3-dev, libiconv-dev, 
libiso9660-dev, libjpeg, libmng2, libncurses5 (>= 5.4-20041023-1006), libogg, 
libpng3, libtheora0, libtiff, libtool14, libvcd-dev (>= 0.7.21-10), libvorbis0, 
libxml2, orbit2-dev, pkgconfig, popt, pth, qt3 (>= 3.3.6-1027), sdl (>= 
1.2.9-1001), slang, speex3, x11-dev, libhowl-dev, libavcodec-dev, 
libavutil-dev, libpostproc-dev
Provides: libxine
Conflicts: libxine, libxine-docs
Replaces: libxine, libxine-shlibs, libxine-docs
Recommends: libdvdcss-shlibs
BuildDependsOnly: true

Source: 
http://kent.dl.sourceforge.net/sourceforge/xine/xine-lib-1.1.10.1.tar.bz2
Source-MD5: 83ec06946afff92afbe129774699a25e
Patch: %n.patch
PatchScript: <<
        perl -pi -e 's,-faltivec,-faltivec -maltivec,g' configure
        perl -pi -e 's,libX11.so,libX11.dylib,g; s,libXv.so,libXv.dylib,g;' 
configure
        perl -pi -e 's/-avoid-version/-Wl,-read_only_relocs,warning/g;' 
src/libffmpeg/Makefile.in src/post/deinterlace/Makefile.in 
src/post/planar/Makefile.in
        find . -name \*.c -o -name \*.h | xargs grep balign | cut -d: -f1 | 
sort -u | xargs perl -pi -e 's,.balign 16,.align 4,g; s,.balign 8,.align 3,g;'
        # -O3 considered harmful on OSX  :P
        perl -pi -e 's,-O3,-Os,g' configure
#       perl -pi -e 's|(OPENGL_LIBS=).*|$1"-lGL -dylib_file 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"|g'
 configure
<<

SetCPPFLAGS: -fno-common -I%p/lib/freetype219/include/freetype2 
-I%p/lib/freetype219/include -I/usr/X11R6/include -I%p/include
SetLDFLAGS: -L%p/lib/freetype219/lib 
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
SetLIBS: -L%p/lib
SetMAKEFLAGS: -j1
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
NoSetMAKEFLAGS: true
ConfigureParams: --with-external-ffmpeg --enable-static --enable-shared 
--disable-alsa --disable-alsatest --disable-dxr3 --enable-coreaudio 
--disable-fb --disable-directfb --disable-vis --disable-mlib 
--libexecdir=%p/lib/libxine --mandir=%p/share/man --disable-sdltest (%m = 
powerpc) --enable-altivec (%m = i386) --disable-altivec --disable-w32dll 
--disable-dependency-tracking 
CompileScript: <<
#!/bin/sh -ev

        export PATH="%p/lib/freetype219/bin:$PATH"
        export 
PKG_CONFIG_PATH="%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
        if [ "%m" = "i386" ]; then
                export CPPFLAGS="$CPPFLAGS -UHAVE_MMX -UHAVE_MMX2"
        fi
        ./configure %c

        if [ "%m" = "i386" ]; then
                echo "#define  HAVE_DARWIN_CDROM 1" >> config.h
        fi

        make
<<

InstallScript:  make install DESTDIR=%d
DocFiles: AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO
SplitOff: <<
        Package: %N-shlibs
        Depends: aalib-shlibs, arts-shlibs (>= 1.4.0-2041), audiofile-shlibs, 
bzip2-shlibs, esound-shlibs, libflac8, freetype219-shlibs, gconf2-shlibs, 
glib2-shlibs (>= 2.8.6-123), gnome-vfs2-ssl-shlibs | gnome-vfs2-shlibs, 
imagemagick-shlibs (>= 6.1.8-1002), lcms-shlibs, libbonobo2-shlibs, 
libcdio7-shlibs (>= 0.77-12), libgettext3-shlibs, libiconv, libiso96605-shlibs, 
libjpeg-shlibs, libmng2-shlibs, libncurses5-shlibs (>= 5.4-20041023-1006), 
libogg-shlibs, libpng3-shlibs, libtheora0-shlibs, libtiff-shlibs, 
libtool14-shlibs, libvcd0-shlibs (>= 0.7.21-10), libvorbis0-shlibs, 
libxml2-shlibs, orbit2-shlibs, popt-shlibs, qt3-shlibs (>= 3.3.6-1027), 
sdl-shlibs (>= 1.2.9-1001), slang-shlibs, speex3-shlibs, x11-shlibs
        Provides: libxine-shlibs
        Conflicts: libxine-shlibs
        Replaces: libxine-shlibs, libxine
        DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README
        Files: <<
                lib/libxine.*.dylib
                lib/xine
                share/xine
        <<
        Shlibs: <<
                %p/lib/libxine.1.dylib 16.0.0 %n (>= 1.0.1-1)
        <<
<<

Homepage: http://xine.sourceforge.net/
DescDetail: <<
        Libxine provides the complete infrastructure for a video/media player.
        It supports MPEG 1/2 and some AVI and Quicktime videos out of the box,
        so you can use it to play DVDs, (S)VCDs and most video files out there.
        It supports network streams, subtitles and even mp3 files. It's 
extensible
        to your heart's content via plugins for audio_out, video_out, input 
media,
        demuxers (stream types), audio/video and subtitle codecs.
        Building a GUI (or text based) frontend around this should be quite 
easy.
        The xine-ui package provides one for your convenience, so you can just
        start watching your VCDs ;-)
<<

diff -Naur xine-lib-1.1.10.1/configure xine-lib-1.1.10.1.patched/configure
--- xine-lib-1.1.10.1/configure 2008-02-07 22:38:17.000000000 +0100
+++ xine-lib-1.1.10.1.patched/configure 2008-03-17 11:50:29.000000000 +0100
@@ -4339,7 +4339,7 @@
 
 
 case "$host_os" in
-  *darwin*)
+  *-darwin*)
      ac_ext=m
 ac_cpp='$OBJCPP $CPPFLAGS'
 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -32360,8 +32360,8 @@
         ac_have_xv_static="yes"
         XV_LIBS="$xv_path/$XV_LIBS"
         ;;
-      x*.so)
-        XV_LIBS=`echo $XV_LIBS | sed 's/^lib/-l/; s/\.so$//'`
+      x*.dylib)
+        XV_LIB=`echo $XV_LIB | sed 's/^lib/-l/; s/\.dylib$//'`
         ;;
       *)
         { { echo "$as_me:$LINENO: error: sorry, I don't know about $XV_LIBS" 
>&5
@@ -49137,7 +49137,7 @@
         k7cpu="i686"
     fi
 
-                        CFLAGS="-O3 -pipe -fomit-frame-pointer $f_af $f_al 
$f_aj $m_wm $m_psb -fexpensive-optimizations $f_si -ffast-math 
$INLINE_FUNCTIONS $CFLAGS"
+                        CFLAGS="-Os -pipe -fno-strict-aliasing -ffast-math 
$INLINE_FUNCTIONS -no-cpp-precomp -D_INTL_REDIRECT_MACROS $CFLAGS"
 
             DEBUG_CFLAGS="-O $DEBUG_CFLAGS"
 
@@ -49222,7 +49222,7 @@
         CFLAGS="-O3 -mieee $CFLAGS"
         DEBUG_CFLAGS="-O3 -mieee $DEBUG_CFLAGS"
         ;;
-      *darwin*)
+      *-darwin*)
         CFLAGS="-O3 -pipe -fomit-frame-pointer $m_wm $m_psb 
-fexpensive-optimizations $f_si -ffast-math $INLINE_FUNCTIONS -no-cpp-precomp 
-D_INTL_REDIRECT_MACROS $CFLAGS"
         DEBUG_CFLAGS="-O3 $DEBUG_CFLAGS"
         ;;
@@ -49293,7 +49293,7 @@
 enable_armv4l="no"
 
 case "$host_or_hostalias" in
-  i?86-* | k?-* | athlon-* | pentium*-)
+  i?86-*-linux* | k?-* | athlon-* | pentium*-)
 
 cat >>confdefs.h <<_ACEOF
 #define ARCH_X86_32
@@ -49329,14 +49329,22 @@
   powerpc-*-darwin*)
         AS="$CC"
 
-cat >>confdefs.h <<_ACEOF
+case "$host_or_hostalias" in
+       i?86-*-darwin*)
+               cat >>confdefs.h <<_ACEOF
+#define FPM_INTEL
+#define ARCH_X86
+_ACEOF
+               ;;
+       powerpc-*-darwin*)
+               cat >>confdefs.h <<_ACEOF
 #define FPM_PPC
+#define ARCH_PPC
 _ACEOF
+               ;;
+esac
 
 
-cat >>confdefs.h <<_ACEOF
-#define ARCH_PPC
-_ACEOF
 
 
     if test "${ac_cv_header_altivec_h+set}" = set; then
diff -Naur xine-lib-1.1.10.1/src/post/deinterlace/plugins/Makefile.in 
xine-lib-1.1.10.1.patched/src/post/deinterlace/plugins/Makefile.in
--- xine-lib-1.1.10.1/src/post/deinterlace/plugins/Makefile.in  2008-02-07 
22:38:10.000000000 +0100
+++ xine-lib-1.1.10.1.patched/src/post/deinterlace/plugins/Makefile.in  
2008-03-17 11:31:54.000000000 +0100
@@ -72,9 +72,7 @@
        libdeinterlaceplugins_la-vfir.lo \
        libdeinterlaceplugins_la-weave.lo \
        libdeinterlaceplugins_la-greedy2frame.lo \
-       libdeinterlaceplugins_la-scalerbob.lo \
-       libdeinterlaceplugins_la-kdetv_greedyh.lo \
-       libdeinterlaceplugins_la-kdetv_tomsmocomp.lo
+       libdeinterlaceplugins_la-scalerbob.lo
 libdeinterlaceplugins_la_OBJECTS =  \
        $(am_libdeinterlaceplugins_la_OBJECTS)
 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
diff -Naur xine-lib-1.1.10.1/src/post/planar/eq.c 
xine-lib-1.1.10.1.patched/src/post/planar/eq.c
--- xine-lib-1.1.10.1/src/post/planar/eq.c      2008-01-23 06:11:53.000000000 
+0100
+++ xine-lib-1.1.10.1.patched/src/post/planar/eq.c      2008-03-17 
11:47:29.000000000 +0100
@@ -25,6 +25,7 @@
 #include "post.h"
 #include "xineutils.h"
 #include <pthread.h>
+#undef ARCH_X86
 
 
 #if defined(ARCH_X86) || defined(ARCH_X86_64)
diff -Naur xine-lib-1.1.10.1/src/post/planar/eq2.c 
xine-lib-1.1.10.1.patched/src/post/planar/eq2.c
--- xine-lib-1.1.10.1/src/post/planar/eq2.c     2008-01-23 06:11:53.000000000 
+0100
+++ xine-lib-1.1.10.1.patched/src/post/planar/eq2.c     2008-03-17 
11:47:29.000000000 +0100
@@ -30,6 +30,7 @@
 #include "xineutils.h"
 #include <math.h>
 #include <pthread.h>
+#undef ARCH_X86
 
 
 /* Per channel parameters */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to