# $Id$ PortSystem 1.0 name xine-lib version 1.2.3 description xine-lib is a free multimedia engine, released under the GPL. long_description ${description} maintainers ryandesign openmaintainer categories multimedia # included libdvdnav is GPL-2 only, rest is GPL-2+ license GPL-2 platforms darwin homepage http://www.xine-project.org master_sites sourceforge:project/xine/xine-lib/${version} use_xz yes checksums rmd160 ba0853cd5d49999aa1b2f9ccee1a414b7d29b3b9 \ sha256 e06a9e01d2632530e694d4a96bba71810e2f447f9ac036d2a150c43baa27852a depends_build port:libtool \ port:pkgconfig depends_lib port:aalib \ port:esound \ port:faad2 \ path:lib/libavcodec.dylib:ffmpeg \ port:flac \ port:fontconfig \ port:libcdio \ port:libmpcdec \ port:libogg \ port:libvorbis \ port:vcdimager \ port:xorg-libXinerama \ port:xorg-libXt \ port:xorg-libXvMC \ port:xorg-xcb-util # fix "error: empty character constant" and # "error: initializer element is not a compile-time constant" patchfiles src_demuxers_demux_qt.c.diff patch-include-xine-post.h if {[string match "*clang*" ${configure.compiler}]} { # disable use of MMX in this file; workaround for # "error: clobbers must be last on the x87 stack" patchfiles-append src_post_goom_ifs.c.diff } # bad register name `%rax' universal_variant no configure.args --disable-silent-rules if {${os.platform} == "darwin" && [string match *64 $build_arch]} { configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} } build.args V=1 platform darwin { # fix "ar: no archive members specified" patchfiles-append src_xine-engine_Makefile.in.diff } platform macosx { configure.args-append --enable-macosx-video \ --enable-coreaudio } livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}