libmatroska5 stable port information

Package: libmatroska5
Version: 1.3.0
Revision: 1
Description: C++ (headers) libary to parse Matroska files
License: LGPL
Homepage: http://dl.matroska.org/downloads/libmatroska/
Maintainer: David Fang
Conflicts: libmatroska
Replaces: libmatroska

BuildDependsOnly: True

GCC: 4.0

Source: http://dl.matroska.org/downloads/libmatroska/libmatroska-%v.tar.bz2
Source-MD5: f4a8c411f09d39c754eb726efd616043

BuildDepends: <<
libebml3
<<
Depends: <<
%N-shlibs (= %v-%r)
<<

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
PatchScript: <<
#!/bin/sh -ev
sed -i.orig -e 's|\.so\.5|.5.dylib|g' -e 's|\.so|.dylib|g' \
-e 's|-shared|-dynamiclib -compatibility_version 6 -current_version 6.0|' \
-e 's|-fPIC|& -fno-common|g' \
-e 's|-Wl,-soname,|-install_name $(prefix)/lib/|' \
-e '/^LIBEBML_INCLUDE_DIR=/s|=.*|=%p/include|' \
-e '/^LIBEBML_LIB_DIR=/s|=.*|=%p/lib|' \
-e '/LIBRARY_SO_VER/s|-lebml|$(LINKFLAGS) &|' \
make/linux/Makefile
<<
CompileScript: <<
cd make/linux && make -w prefix=%p sharedlib
<<

InstallScript: <<
cd make/linux && make -w prefix=%i install_headers install_sharedlib
<<

DocFiles: ChangeLog LICENSE.LGPL

DescDetail: <<
libmatroska is a C++ libary to parse Matroska files (.mkv and
.mka). It is available in LGPL license as a source code that should
compile on many platforms including Windows, Linux, Mac OSX and
BeOS. It depends on libebml to work.
<<
SplitOff: <<
Package: %N-shlibs
Description: C++ (shared) libary to parse Matroska files
Depends: libebml3-shlibs
Files: lib/libmatroska.*.dylib
Shlibs: <<
%p/lib/libmatroska.5.dylib 6.0.0 %n (>= 1.3.0-1)
<<
DocFiles: ChangeLog LICENSE.LGPL
<<