# $Id: Portfile 82524 2011-08-15 08:32:14Z ryandesign@macports.org $

PortSystem      1.0
name            lopster
version         1.2.2
categories      net
maintainers     gmail.com:mellon85
description     GTK+ Open Napster client
homepage        http://lopster.sourceforge.net/
platforms       darwin freebsd

long_description  Lopster is a Napster Client developed in C using the GTK user interface. \
        Napster is a protocol for sharing MP3 files between users. With Napster, \
        the files stay on the client machine, never passing through the server. \
        The server provides the ability to search for particular files and \
        initiate a direct transfer between the clients. In addition, chat forums \
        similar to IRC are available.

master_sites    sourceforge:project/lopster/lopster/${version} \
                http://lopster.sourceforge.net/download/

checksums   md5 ae857116eddd01f1f7d2769908a142c0

patchfiles patch-global.c patch-mtypes.c patch-wizard.c

depends_lib  port:gtk1 port:flac port:libogg

configure.cflags-append "-pipe"

configure.args --without-ogg --without-flac --mandir=\\\${prefix}/share/man \
				--infodir=\\\${prefix}/share/info --with-ogg=${prefix} \
				--with-flac=${prefix}

destroot.destdir prefix=${destroot}${prefix}
