1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

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@ymail.com>
This commit is contained in:
Pawel Pekala 2015-10-28 19:18:37 +00:00
parent 47de4b9929
commit 8cff27805b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400412
6 changed files with 121 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,81 @@
# $FreeBSD$
PORTNAME= audiotools
PORTVERSION= 3.0
CATEGORIES= audio python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
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>

View File

@ -0,0 +1,2 @@
SHA256 (audiotools-3.0.tar.gz) = b2d484268630ffb7f49368219c8edec184b23eddaae1956b1f13cca8a32356bb
SIZE (audiotools-3.0.tar.gz) = 6995122

View File

@ -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"
/********************************************************

View File

@ -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"

View File

@ -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