# Created by: Olivier Duchateau <duchateau.olivier@gmail.com>
# $FreeBSD: tags/RELEASE_11_0_0/audio/py-shout/Makefile 412344 2016-04-01 13:29:15Z mat $

PORTNAME=	shout
PORTVERSION=	0.2.1
PORTREVISION=	1
CATEGORIES=	audio python
MASTER_SITES=	http://downloads.us.xiph.org/releases/libshout/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME}-python-${PORTVERSION}

MAINTAINER=	python@FreeBSD.org
COMMENT=	Python bindings for libshout2

LICENSE=	LGPL20

LIB_DEPENDS=	libshout.so:audio/libshout

EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}

USES=		pkgconfig python:2
USE_PYTHON=	distutils autoplist

PORTEXAMPLES=	example.py

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${CP} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
