# $Id$

PortSystem 1.0

name            libmms
version         0.6.2
categories      multimedia
license         LGPL-2+
maintainers     nomaintainer
description     Library for parsing mms:// and mmsh:// network streams
long_description \
    LibMMS is a common library for parsing the legacy mms:// and mmsh:// type \
    network streams, created and now abandoned by Microsoft. These are \
    commonly used to stream Windows Media Video content over the web. LibMMS \
    itself is only for receiving MMS streams, it doesn't handle sending at \
    all. If you need streaming functionality, look at other protocols, such \
    as RT(S)P.
homepage        http://libmms.sourceforge.net/
platforms       darwin
master_sites    sourceforge
checksums           md5     9f63aa363deb4874e072a45850161bff \
                    sha1    cdef62fd1a0e2585dd2111fc94b032f84290e351 \
                    rmd160  c1bf89f7460ec208ab7180510dbb3673d67dea5a
depends_build   path:bin/pkg-config:pkgconfig
depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 port:libiconv port:gettext

patchfiles      src_mms-common.h.patch missing-link.patch automake-1.13.patch

use_autoreconf  yes
autoreconf.args -fvi

post-patch {
    # avoid use of C++ keyword this
    reinplace "s|*this|*instance|" \
        ${worksrcpath}/src/mms.h \
        ${worksrcpath}/src/mmsh.h
}