# Created by: David Thiel <lx@FreeBSD.org>
# $FreeBSD$

PORTNAME=	pytone
PORTVERSION=	3.0.3
PORTREVISION=	1
CATEGORIES=	audio python
MASTER_SITES=	http://www.luga.de/pytone/download/ \
		http://redundancy.redundancy.org/mirror/
DISTNAME=	PyTone-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Music jukebox written in Python with a curses GUI

LICENSE=	GPLv2

LIB_DEPENDS=	libao.so:audio/libao
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 \
		${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen


USES=		ncurses python:2
USE_PYTHON=	autoplist distutils

CFLAGS+=	-I${LOCALBASE}/include

SUB_FILES=	pkg-message

PLIST_FILES=	etc/pytonerc.sample

OPTIONS_DEFINE=		MAD MPG123 MPG321 VORBIS
OPTIONS_DEFAULT=	MAD VORBIS

MAD_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mad>0:audio/py-mad
MPG123_RUN_DEPENDS=	mpg123:audio/mpg123
MPG321_DESC=		MP3 decoding support via mpg321
MPG321_RUN_DEPENDS=	mpg321:audio/mpg321
VORBIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}vorbis>0:audio/py-vorbis

post-patch:
.for i in pytone pytonectl
	@${REINPLACE_CMD} -e \
		's|^python |${PYTHON_CMD} | ; \
		 s|src/|${PYTHONPREFIX_SITELIBDIR}/pytone/|' ${WRKSRC}/${i}
.endfor

post-install:
	${INSTALL_DATA} ${WRKSRC}/conf/pytonerc ${STAGEDIR}${PREFIX}/etc/pytonerc.sample
	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pytone/*.so

.include <bsd.port.mk>
tion>
<option value='mesa-next' selected='selected'>mesa-next</option>
<option value='wayland'>wayland</option>
<option value='xorg-server-1.19.6'>xorg-server-1.19.6</option>
<option value='xserver-next'>xserver-next</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD graphics obsolete development ports (https://github.com/freebsd/freebsd-ports-graphics)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/about/'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/refs/'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/libfishsound'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/tree/audio/libfishsound'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/audio/libfishsound'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/diff/audio/libfishsound'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/stats/audio/libfishsound'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/libfishsound'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio'>audio</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/libfishsound'>libfishsound</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/libfishsound?showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>