KIO slave that allows treating audio CDs like a "real" filesystem,

where tracks are represented as files and, when copied from the
folder, are digitally extracted from the CD. This ensures a perfect
copy of the audio data.
This commit is contained in:
zhuk 2013-04-24 11:24:28 +00:00
parent c4aa195d26
commit f2b9e4e9f0
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 11:24:28 zhuk Exp $
COMMENT = KDE KIOslave for accessing audio CDs
DISTNAME = audiocd-kio-${MODKDE4_VERSION}
SHARED_LIBS = audiocdplugins 0.0
WANTLIB = c m pthread stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork lib/qt4/QtSvg
WANTLIB += lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kcddb ${KDE4LIB}/kcompactdisc ${KDE4LIB}/kdeui
WANTLIB += ${KDE4LIB}/kio
WANTLIB += FLAC cdda_interface cdda_paranoia ogg vorbis vorbisenc
WANTLIB += vorbisfile
LIB_DEPENDS = audio/cdparanoia \
audio/flac \
audio/libvorbis \
${MODKDE4_DEP_DIR}/libkcddb>=${MODKDE4_DEP_VERSION} \
${MODKDE4_DEP_DIR}/libkcompactdisc>=${MODKDE4_DEP_VERSION}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (kde/audiocd-kio-4.10.2.tar.xz) = BkqGnd2jYvVq0vzhbtn9hp7Z+X2g689HncWKF5Og8X0=
SIZE (kde/audiocd-kio-4.10.2.tar.xz) = 56816

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-plugins_wav_encodercda_cpp,v 1.1.1.1 2013/04/24 11:24:28 zhuk Exp $
--- plugins/wav/encodercda.cpp.orig Wed Oct 17 20:23:02 2012
+++ plugins/wav/encodercda.cpp Wed Oct 17 20:23:21 2012
@@ -48,10 +48,12 @@ extern "C"
#undef private
}
+#ifndef swap16
inline int16_t swap16 (int16_t i)
{
return (((i >> 8) & 0xFF) | ((i << 8) & 0xFF00));
}
+#endif
long EncoderCda::read(int16_t * buf, int frames){
QByteArray output;

View File

@ -0,0 +1,4 @@
KIO slave that allows treating audio CDs like a "real" filesystem,
where tracks are represented as files and, when copied from the
folder, are digitally extracted from the CD. This ensures a perfect
copy of the audio data.

View File

@ -0,0 +1,25 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 11:24:28 zhuk Exp $
include/kde4/audiocdencoder.h
lib/kde4/kcm_audiocd.so
lib/kde4/kio_audiocd.so
lib/kde4/libaudiocd_encoder_flac.so
lib/kde4/libaudiocd_encoder_lame.so
lib/kde4/libaudiocd_encoder_vorbis.so
lib/kde4/libaudiocd_encoder_wav.so
@lib ${KDE4LIB}/libaudiocdplugins.so.${LIBaudiocdplugins_VERSION}
@lib lib/libaudiocdplugins.so.${LIBaudiocdplugins_VERSION}
share/apps/konqsidebartng/virtual_folders/services/
share/apps/konqsidebartng/virtual_folders/services/audiocd.desktop
share/apps/solid/
share/apps/solid/actions/
share/apps/solid/actions/solid_audiocd.desktop
share/config.kcfg/audiocd_lame_encoder.kcfg
share/config.kcfg/audiocd_vorbis_encoder.kcfg
share/doc/HTML/en/kioslave/audiocd/
share/doc/HTML/en/kioslave/audiocd/common
share/doc/HTML/en/kioslave/audiocd/index.cache.bz2
share/doc/HTML/en/kioslave/audiocd/index.docbook
share/kde4/services/audiocd.desktop
share/kde4/services/audiocd.protocol
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database