diff options
author | pawel <pawel@FreeBSD.org> | 2015-10-30 00:23:23 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2015-10-30 00:23:23 +0800 |
commit | 552d38e59ede5eb8094206d1ca54b800bc1322f6 (patch) | |
tree | 540b55160e240abbcaecb09f62ebc0ea35363c87 /audio/py-fmoo-audiotools | |
parent | 4d68c79c317234eb4ff09ad3d55c177705d1cfac (diff) | |
download | freebsd-ports-gnome-552d38e59ede5eb8094206d1ca54b800bc1322f6.tar.gz freebsd-ports-gnome-552d38e59ede5eb8094206d1ca54b800bc1322f6.tar.zst freebsd-ports-gnome-552d38e59ede5eb8094206d1ca54b800bc1322f6.zip |
Rename audio/py-audiotools to match PyPI nomenclature
Submitted by: koobs
Diffstat (limited to 'audio/py-fmoo-audiotools')
-rw-r--r-- | audio/py-fmoo-audiotools/Makefile | 81 | ||||
-rw-r--r-- | audio/py-fmoo-audiotools/distinfo | 2 | ||||
-rw-r--r-- | audio/py-fmoo-audiotools/files/patch-src_cdiomodule.h | 11 | ||||
-rw-r--r-- | audio/py-fmoo-audiotools/files/patch-src_samplerate_common.h | 16 | ||||
-rw-r--r-- | audio/py-fmoo-audiotools/pkg-descr | 10 |
5 files changed, 120 insertions, 0 deletions
diff --git a/audio/py-fmoo-audiotools/Makefile b/audio/py-fmoo-audiotools/Makefile new file mode 100644 index 000000000000..5ee5653c0bdb --- /dev/null +++ b/audio/py-fmoo-audiotools/Makefile @@ -0,0 +1,81 @@ +# $FreeBSD$ + +PORTNAME= audiotools +PORTVERSION= 3.0 +CATEGORIES= audio python +MASTER_SITES= SF/${PORTNAME}/${PORTNAME} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}fmoo- + +MAINTAINER= ryu0@ymail.com +COMMENT= Collection of command line audio handling utilities + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= pkgconfig python +USE_PYTHON= autoplist concurrent distutils + +OPTIONS_DEFINE= CDIO LAME MPG123 OPUS TWOLAME VORBIS +OPTIONS_DEFAULT=CDIO MPG123 OPUS TWOLAME VORBIS + +CDIO_LIB_DEPENDS= libcdio_cdda.so:${PORTSDIR}/sysutils/libcdio-paranoia +LAME_LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame +MPG123_LIB_DEPENDS= libmpg123.so:${PORTSDIR}/audio/mpg123 +OPUS_LIB_DEPENDS= libopusfile.so:${PORTSDIR}/audio/opusfile +TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame +VORBIS_LIB_DEPENDS= libvorbisenc.so:${PORTSDIR}/audio/libvorbis + +CPPFLAGS+= -I${LOCALBASE}/include + +.include <bsd.port.options.mk> + +post-configure: + @${ECHO_CMD} '[Libraries]' > ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'alsa: no' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'libdvd-audio: no' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'libpulse: no' >> ${WRKSRC}/setup.cfg + +.if ${PORT_OPTIONS:MCDIO} + @${ECHO_CMD} 'libcdio_paranoia: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'libcdio_paranoia: no' >> ${WRKSRC}/setup.cfg +.endif + +.if ${PORT_OPTIONS:MLAME} + @${ECHO_CMD} 'mp3lame: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'mp3lame: no' >> ${WRKSRC}/setup.cfg +.endif + +.if ${PORT_OPTIONS:MMPG123} + @${ECHO_CMD} 'libmpg123: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'libmpg123: no' >> ${WRKSRC}/setup.cfg +.endif + +.if ${PORT_OPTIONS:MOPUS} + @${ECHO_CMD} 'opus: probe' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'opusfile: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'opus: no' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'opusfile: no' >> ${WRKSRC}/setup.cfg +.endif + +.if ${PORT_OPTIONS:MTWOLAME} + @${ECHO_CMD} 'twolame: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'twolame: no' >> ${WRKSRC}/setup.cfg +.endif + +.if ${PORT_OPTIONS:MVORBIS} + @${ECHO_CMD} 'vorbisenc: probe' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'vorbisfile: probe' >> ${WRKSRC}/setup.cfg +.else + @${ECHO_CMD} 'vorbisenc: no' >> ${WRKSRC}/setup.cfg + @${ECHO_CMD} 'vorbisfile: no' >> ${WRKSRC}/setup.cfg +.endif + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/*.so + +.include <bsd.port.mk> diff --git a/audio/py-fmoo-audiotools/distinfo b/audio/py-fmoo-audiotools/distinfo new file mode 100644 index 000000000000..5b88fbb5fb9e --- /dev/null +++ b/audio/py-fmoo-audiotools/distinfo @@ -0,0 +1,2 @@ +SHA256 (audiotools-3.0.tar.gz) = b2d484268630ffb7f49368219c8edec184b23eddaae1956b1f13cca8a32356bb +SIZE (audiotools-3.0.tar.gz) = 6995122 diff --git a/audio/py-fmoo-audiotools/files/patch-src_cdiomodule.h b/audio/py-fmoo-audiotools/files/patch-src_cdiomodule.h new file mode 100644 index 000000000000..77679ec9b098 --- /dev/null +++ b/audio/py-fmoo-audiotools/files/patch-src_cdiomodule.h @@ -0,0 +1,11 @@ +--- src/cdiomodule.h.orig 2014-12-31 18:30:53 UTC ++++ src/cdiomodule.h +@@ -1,6 +1,6 @@ + #include <Python.h> +-#include <cdio/cdda.h> +-#include <cdio/paranoia.h> ++#include <cdio/paranoia/cdda.h> ++#include <cdio/paranoia/paranoia.h> + #include "array.h" + + /******************************************************** diff --git a/audio/py-fmoo-audiotools/files/patch-src_samplerate_common.h b/audio/py-fmoo-audiotools/files/patch-src_samplerate_common.h new file mode 100644 index 000000000000..f61b2159ca30 --- /dev/null +++ b/audio/py-fmoo-audiotools/files/patch-src_samplerate_common.h @@ -0,0 +1,16 @@ +--- src/samplerate/common.h.orig 2014-12-31 18:30:53 UTC ++++ src/samplerate/common.h +@@ -25,13 +25,7 @@ + #ifndef COMMON_H_INCLUDED + #define COMMON_H_INCLUDED + +-#ifdef HAVE_STDINT_H + #include <stdint.h> +-#elif (SIZEOF_INT == 4) +-typedef int int32_t ; +-#elif (SIZEOF_LONG == 4) +-typedef long int32_t ; +-#endif + + #define SRC_MAX_RATIO 256 + #define SRC_MAX_RATIO_STR "256" diff --git a/audio/py-fmoo-audiotools/pkg-descr b/audio/py-fmoo-audiotools/pkg-descr new file mode 100644 index 000000000000..4d1713a8e9db --- /dev/null +++ b/audio/py-fmoo-audiotools/pkg-descr @@ -0,0 +1,10 @@ +Python Audio Tools are a collection of audio handling programs which work from +the command line. These include programs for CD extraction, track conversion +from one audio format to another, track renaming and retagging, track +identification, CD burning from tracks, and more. Supports internationalized +track filenames and metadata using Unicode. Works with high-definition, +multi-channel audio as well as CD-quality. Track conversion uses multiple CPUs +or CPU cores if available to greatly speed the transcoding process. Track +metadata can be retrieved from FreeDB, MusicBrainz or compatible servers. + +WWW: http://audiotools.sourceforge.net |