pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add alac



Module Name:	pkgsrc-wip
Committed By:	Jonathan Schleifer <js%nil.im@localhost>
Pushed By:	js
Date:		Sun Feb 16 12:16:46 2020 +0100
Changeset:	6257602d21e61e2e26191decb25e6ffcf8692e59

Modified Files:
	Makefile
Added Files:
	alac/DESCR
	alac/Makefile
	alac/PLIST
	alac/distinfo

Log Message:
Add alac

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6257602d21e61e2e26191decb25e6ffcf8692e59

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile      |  2 ++
 alac/DESCR    | 26 ++++++++++++++++++++++++++
 alac/Makefile | 20 ++++++++++++++++++++
 alac/PLIST    |  2 ++
 alac/distinfo |  6 ++++++
 5 files changed, 56 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9e81c39ee6..c2511e84f2 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,7 @@ SUBDIR+=	akonadi-contacts
 SUBDIR+=	akonadi-mime
 SUBDIR+=	akonadi-notes
 SUBDIR+=	akonadi-search
+SUBDIR+=	alac
 SUBDIR+=	alac_decoder
 SUBDIR+=	alacritty
 SUBDIR+=	alberta
@@ -847,6 +848,7 @@ SUBDIR+=	fogleman-craft
 SUBDIR+=	fontaine
 SUBDIR+=	fonttosfnt
 SUBDIR+=	foxtrotgps
+SUBDIR+=	fpc
 SUBDIR+=	fplll
 SUBDIR+=	fprobe
 SUBDIR+=	fragrouter
diff --git a/alac/DESCR b/alac/DESCR
new file mode 100644
index 0000000000..6b2a4cf391
--- /dev/null
+++ b/alac/DESCR
@@ -0,0 +1,26 @@
+Located here is a basic decoder for Apple Lossless Audio Codec files
+(ALAC). ALAC is a proprietary lossless audio compression scheme. Apple
+never released any documents on the format.
+What I provide here is a C implementation of a decoder, written from
+reverse engineering the file format. It turns out that most of the
+algorithms in the codec are fairly well known. ALAC uses an adaptive FIR
+prediction algorithm and stores the error values using a modified rice
+or golumb algorithm. Further details are in alac.c.
+
+Although an encoder is not provided, by using the decoder as a sort of
+specification it should be fairly trivial to write an encoder. By
+exploiting other lossless audio encoders, such as FLAC, the task will be
+much easier. Although one wouldn't be able to copy the compression
+algorithms verbatim, as adaptive compression is used in ALAC and not in
+FLAC. There are, however, a bunch of academic papers on the issue.
+
+The program located here will not be able to handle all ALAC files, it
+can only handle mono or stereo files. ALAC allows up to 8 channels. It
+should be trivial to finish the implementation once I find files that I
+can test it with. The ALAC decoder supports both 16 and 24 bit sample
+sizes.
+
+The decoder is fairly self explanatory, it can read an ALAC stream from
+either a file or from stdin, and write it as raw PCM data or as a WAV
+file to either stdout or a file. In theory one should be able to stream
+data to the decoder.
diff --git a/alac/Makefile b/alac/Makefile
new file mode 100644
index 0000000000..7cdd268cc7
--- /dev/null
+++ b/alac/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	alac_decoder-0.2.0
+CATEGORIES=	audio
+MASTER_SITES=	https://web.archive.org/web/20150510210401if_/http://craz.net/programs/itunes/files/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	js-pkgsrc%nil.im@localhost
+HOMEPAGE=	https://web.archive.org/web/20150319040222/craz.net/programs/itunes/alac.html
+COMMENT=	Basic decoder for Apple Lossless Audio Codec files (ALAC)
+LICENSE=	mit
+
+WRKSRC=		${WRKDIR}/alac_decoder
+BUILD_TARGET=	alac
+
+do-install:
+	${MKDIR} -p ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/alac ${DESTDIR}${PREFIX}/bin/alac
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/alac/PLIST b/alac/PLIST
new file mode 100644
index 0000000000..c0d5cee333
--- /dev/null
+++ b/alac/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/alac
diff --git a/alac/distinfo b/alac/distinfo
new file mode 100644
index 0000000000..d3639d67eb
--- /dev/null
+++ b/alac/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (alac_decoder-0.2.0.tgz) = a620f6293ef2d9490927d21ec341bbeff13eabe8
+RMD160 (alac_decoder-0.2.0.tgz) = 72664dff4eeff6e484314f625f74337e60ba39fb
+SHA512 (alac_decoder-0.2.0.tgz) = 4b37d4fe37681bfccaa4a27fbaf11eb2a1fba5f14e77d219a6d9814ff44d1168534d05eb19443dd2fd11e6fcdf4da3a22e3f3c79314cb7a6767c152351b13e29
+Size (alac_decoder-0.2.0.tgz) = 19019 bytes


Home | Main Index | Thread Index | Old Index