libebml3 stable port information

Package: libebml3
Version: 1.2.2
Revision: 1
Description: C++ (headers) libary to parse EBML files
License: LGPL
Maintainer: David Fang
Homepage: http://dl.matroska.org/downloads/libebml/
Conflicts: libebml
Replaces: libebml

BuildDependsOnly: True

GCC: 4.0

Source: http://dl.matroska.org/downloads/libebml/libebml-%v.tar.bz2
Source-MD5: 726cc2bd1a525929ff35ff9854c0ebab

Depends: %N-shlibs (= %v-%r)

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
PatchScript: <<
#!/bin/sh -ev
sed -i.orig -e 's|\.so\.3|.3.dylib|g' -e 's|\.so|.dylib|g' \
-e 's|-fPIC|& -fno-common|g' \
-e 's|-shared|-dynamiclib -compatibility_version 4 -current_version 4.0|' \
-e 's|-Wl,-soname,|-install_name $(prefix)/lib/|' \
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: <<
libebml is a C++ libary to parse EBML files. It is available in LGPL
license as a source code that should compile on many platforms
including Windows, Linux, Mac OSX and BeOS.
This package includes headers and a static library.
<<
SplitOff: <<
Package: %N-shlibs
Description: C++ (shared) libary to parse EBML files
Files: lib/libebml.*.dylib
Shlibs: <<
%p/lib/libebml.3.dylib 4.0.0 %n (>= 1.2.2-1)
<<
DocFiles: ChangeLog LICENSE.LGPL
<<