# Created by: Jona Joachim <jaj@hcl-club.lu>
# $FreeBSD: tags/RELEASE_10_1_0/audio/soundconverter/Makefile 360375 2014-07-03 14:22:20Z vanilla $

PORTNAME=	soundconverter
PORTVERSION=	1.5.4
PORTREVISION=	1
CATEGORIES=	audio python
MASTER_SITES=	BERLIOS

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The sound conversion application for the GNOME environment

LICENSE=	GPLv3

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gst-0.10/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer

USES=		gettext gmake desktop-file-utils
GNU_CONFIGURE=	yes
USE_PYTHON=	yes
USE_GNOME=	pygtk2 pygnome2
MAKE_ENV=	MAKE=${LOCALBASE}/bin/gmake
INSTALLS_ICONS=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|@GMSGFMT@|${LOCALBASE}/bin/msgfmt|; \
		s|itlocaledir = .*|itlocaledir = ${LOCALBASE}/share/locale|g' \
			${WRKSRC}/po/Makefile.in.in
	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|' ${WRKSRC}/src/soundconverter.py

.include <bsd.port.mk>
