sthen afda54fbe0 import ports/audio/rgain, ok jca@ - this is an alternative to audio/mp3gain
(mp3gain has various vulnerabilities due to a buggy old fork of mpg123's
decoder, additionally is mp3-only, whereas this handles more formats).
See various posts at http://www.openwall.com/lists/oss-security/2017/09/14/

----
ReplayGain is designed to solve the problem of varying volumes between
different audio files. This package provides Python modules and scripts
to read, write and calculate Replay Gain on various file formats (Ogg
Vorbis, flac, WavPack, MP4, MP3).
----
2017-09-17 16:43:24 +00:00

38 lines
924 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2017/09/17 16:43:24 sthen Exp $
COMMENT= multi-format tools and Python module for ReplayGain
MODPY_EGG_VERSION= 1.3.4
DISTNAME= rgain-${MODPY_EGG_VERSION}
WRKDIST= ${WRKDIR}/fk-rgain-8df1a846a12c
CATEGORIES= audio
HOMEPAGE= https://bitbucket.org/fk/rgain
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
MODULES= lang/python
# pypi version has no test data, and is weirdly named anyway
MASTER_SITES= https://bitbucket.org/fk/rgain/get/
DISTFILES= ${DISTNAME}{${MODPY_EGG_VERSION}}.tar.bz2
BUILD_DEPENDS= textproc/py-docutils
RUN_DEPENDS= audio/py-mutagen \
devel/py-gobject3 \
multimedia/gstreamer1/core \
multimedia/gstreamer1/plugins-libav \
multimedia/gstreamer1/plugins-base \
multimedia/gstreamer1/plugins-good
TEST_DEPENDS= ${BASE_PKGPATH} \
devel/py-test
do-test:
cd ${WRKSRC}; PYTHONPATH='.' py.test -v
.include <bsd.port.mk>