svn commit: r400412 - in head/audio: . py-audiotools py-audiotools/files
Pawel Pekala
pawel at FreeBSD.org
Wed Oct 28 19:18:39 UTC 2015
Author: pawel
Date: Wed Oct 28 19:18:37 2015
New Revision: 400412
URL: https://svnweb.freebsd.org/changeset/ports/400412
Log:
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
PR: 200705
Submitted by: James Buren <ryu0 at ymail.com>
Added:
head/audio/py-audiotools/
head/audio/py-audiotools/Makefile (contents, props changed)
head/audio/py-audiotools/distinfo (contents, props changed)
head/audio/py-audiotools/files/
head/audio/py-audiotools/files/patch-src_cdiomodule.h (contents, props changed)
head/audio/py-audiotools/files/patch-src_samplerate_common.h (contents, props changed)
head/audio/py-audiotools/pkg-descr (contents, props changed)
Modified:
head/audio/Makefile
Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile Wed Oct 28 19:06:33 2015 (r400411)
+++ head/audio/Makefile Wed Oct 28 19:18:37 2015 (r400412)
@@ -607,6 +607,7 @@
SUBDIR += py-al
SUBDIR += py-ao
SUBDIR += py-apetag
+ SUBDIR += py-audiotools
SUBDIR += py-cddb
SUBDIR += py-discid
SUBDIR += py-discogs-client
Added: head/audio/py-audiotools/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-audiotools/Makefile Wed Oct 28 19:18:37 2015 (r400412)
@@ -0,0 +1,81 @@
+# $FreeBSD$
+
+PORTNAME= audiotools
+PORTVERSION= 3.0
+CATEGORIES= audio python
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ryu0 at 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>
Added: head/audio/py-audiotools/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-audiotools/distinfo Wed Oct 28 19:18:37 2015 (r400412)
@@ -0,0 +1,2 @@
+SHA256 (audiotools-3.0.tar.gz) = b2d484268630ffb7f49368219c8edec184b23eddaae1956b1f13cca8a32356bb
+SIZE (audiotools-3.0.tar.gz) = 6995122
Added: head/audio/py-audiotools/files/patch-src_cdiomodule.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-audiotools/files/patch-src_cdiomodule.h Wed Oct 28 19:18:37 2015 (r400412)
@@ -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"
+
+ /********************************************************
Added: head/audio/py-audiotools/files/patch-src_samplerate_common.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-audiotools/files/patch-src_samplerate_common.h Wed Oct 28 19:18:37 2015 (r400412)
@@ -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"
Added: head/audio/py-audiotools/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/py-audiotools/pkg-descr Wed Oct 28 19:18:37 2015 (r400412)
@@ -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
More information about the svn-ports-head
mailing list