summaryrefslogtreecommitdiff
path: root/audio/flac2mp3
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2004-12-23 10:57:20 +0000
committeragc <agc@pkgsrc.org>2004-12-23 10:57:20 +0000
commitddbb60c6be645817e4a85e53482607ac155027f4 (patch)
treeec2ac9ae5db932f8ace357c4dbd9d24dda90f623 /audio/flac2mp3
parent50a0a491080bd843dfb92cdadee9cdd298fb2eeb (diff)
downloadpkgsrc-ddbb60c6be645817e4a85e53482607ac155027f4.tar.gz
Initial import of flac2mp3, a small perl script to convert from flac
(lossless) encoding into mp3. With the cost of hard drive storage falling under $1 USD per GB, storing audio in a lossless format is now inexpensive and practical. The FLAC codec is an OpenSource and Free software of very high quality. The FLAC format supports meta-info as ID3v1 tags or OGG comments. FLAC even has plugins for popular audio players such as XMMS and WinAMP. This script also helps with the generation of MP3 files from FLAC, whilst preserving the tags. This way you can easily convert an album from FLAC to MP3 for playing on a mobile audio device. You will need LAME installed and in your $PATH. Using the script is simple: * cd /path/to/directory/with/FLACS * flac2mp3 *flac After transcoding, you will have matching, tagged MP3 files in the same directory. Note: Only use this script on flac files that you trust to have non-malicous tags (ie, ones that you've created yourself).
Diffstat (limited to 'audio/flac2mp3')
-rw-r--r--audio/flac2mp3/DESCR18
-rw-r--r--audio/flac2mp3/Makefile29
-rw-r--r--audio/flac2mp3/PLIST2
-rw-r--r--audio/flac2mp3/distinfo4
4 files changed, 53 insertions, 0 deletions
diff --git a/audio/flac2mp3/DESCR b/audio/flac2mp3/DESCR
new file mode 100644
index 00000000000..d2275b10f35
--- /dev/null
+++ b/audio/flac2mp3/DESCR
@@ -0,0 +1,18 @@
+With the cost of hard drive storage falling under $1 USD per GB,
+storing audio in a lossless format is now inexpensive and practical.
+The FLAC codec is an OpenSource and Free software of very high
+quality. The FLAC format supports meta-info as ID3v1 tags or OGG
+comments. FLAC even has plugins for popular audio players such as
+XMMS and WinAMP. This script also helps with the generation of MP3
+files from FLAC, whilst preserving the tags. This way you can easily
+convert an album from FLAC to MP3 for playing on a mobile audio
+device. You will need LAME installed and in your $PATH. Using the
+script is simple:
+
+ * cd /path/to/directory/with/FLACS
+ * flac2mp3 *flac
+
+After transcoding, you will have matching, tagged MP3 files in the
+same directory. Note: Only use this script on flac files that you
+trust to have non-malicous tags (ie, ones that you've created
+yourself).
diff --git a/audio/flac2mp3/Makefile b/audio/flac2mp3/Makefile
new file mode 100644
index 00000000000..2a7c8e29826
--- /dev/null
+++ b/audio/flac2mp3/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/12/23 10:57:20 agc Exp $
+
+DISTNAME= flac2mp3
+PKGNAME= flac2mp3-20041223
+CATEGORIES= audio converters
+MASTER_SITES= http://www.gurulabs.com/files/
+EXTRACT_SUFX= .pl
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.gurulabs.com/
+COMMENT= Script to convert flac to mp3
+
+DEPENDS+= lame-[0-9]*:../../audio/lame
+DEPENDS+= p5-MP3-Info-[0-9]*:../../audio/p5-MP3-Info
+
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+REPLACE_PERL= flac2mp3.pl
+USE_PERL5= yes
+WRKSRC= ${WRKDIR}
+
+NO_BUILD= # defined
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/flac2mp3.pl ${PREFIX}/bin/flac2mp3
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/flac2mp3/PLIST b/audio/flac2mp3/PLIST
new file mode 100644
index 00000000000..7b98cd08247
--- /dev/null
+++ b/audio/flac2mp3/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/23 10:57:20 agc Exp $
+bin/flac2mp3
diff --git a/audio/flac2mp3/distinfo b/audio/flac2mp3/distinfo
new file mode 100644
index 00000000000..079ce125ee3
--- /dev/null
+++ b/audio/flac2mp3/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/12/23 10:57:20 agc Exp $
+
+SHA1 (flac2mp3.pl) = 7818bb421dec92071f19958b9f5d668e91730e31
+Size (flac2mp3.pl) = 1255 bytes