summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2011-11-14 19:43:21 +0000
committerryoon <ryoon@pkgsrc.org>2011-11-14 19:43:21 +0000
commitc3f2d5156c744660615c8d59c761912917e16599 (patch)
tree904bffc9ed1026a51070edc8a62beceed0e9b1a5 /audio
parentcc275a231257e14de9d829d617d0041e7cfb09c4 (diff)
downloadpkgsrc-c3f2d5156c744660615c8d59c761912917e16599.tar.gz
Import alacconvert-0.0.20111026 as audio/alacconvert from wip/alacconvert
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data compression method which reduces the size of audio files with no loss of information. A decoded ALAC stream is bit-for-bit identical to the original uncompressed audio file. This is Apple Lossless Audio Codec encode and decode command.
Diffstat (limited to 'audio')
-rw-r--r--audio/alacconvert/DESCR7
-rw-r--r--audio/alacconvert/Makefile23
-rw-r--r--audio/alacconvert/PLIST2
-rw-r--r--audio/alacconvert/distinfo6
-rw-r--r--audio/alacconvert/patches/patch-makefile39
5 files changed, 77 insertions, 0 deletions
diff --git a/audio/alacconvert/DESCR b/audio/alacconvert/DESCR
new file mode 100644
index 00000000000..92eec87be97
--- /dev/null
+++ b/audio/alacconvert/DESCR
@@ -0,0 +1,7 @@
+The Apple Lossless Audio Codec (ALAC) is an audio codec developed
+by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes.
+ALAC is a data compression method which reduces the size of audio
+files with no loss of information. A decoded ALAC stream is
+bit-for-bit identical to the original uncompressed audio file.
+
+This is Apple Lossless Audio Codec encode and decode command.
diff --git a/audio/alacconvert/Makefile b/audio/alacconvert/Makefile
new file mode 100644
index 00000000000..bfc4b725666
--- /dev/null
+++ b/audio/alacconvert/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/11/14 19:43:21 ryoon Exp $
+#
+
+DISTNAME= libalac-r3
+PKGNAME= alacconvert-0.0.20111026
+CATEGORIES= audio
+MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://alac.macosforge.org/
+COMMENT= Apple Lossless Audio Codec converter by Apple
+LICENSE= apache-2.0
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/libalac-r3/convert-utility
+USE_LANGUAGES= c c++
+MAKE_FILE= makefile
+BUILD_TARGET= alacconvert
+
+.include "../../wip/libalac/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/alacconvert/PLIST b/audio/alacconvert/PLIST
new file mode 100644
index 00000000000..e0c22e9323b
--- /dev/null
+++ b/audio/alacconvert/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/14 19:43:21 ryoon Exp $
+bin/alacconvert
diff --git a/audio/alacconvert/distinfo b/audio/alacconvert/distinfo
new file mode 100644
index 00000000000..86bbc991b4d
--- /dev/null
+++ b/audio/alacconvert/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/11/14 19:43:21 ryoon Exp $
+
+SHA1 (libalac-r3.tar.bz2) = d633e538a1d1395614346ef32292f8c16b48b2b2
+RMD160 (libalac-r3.tar.bz2) = b55bd6d8eaf5d1d8ef5bea441cfd206c95ae68ee
+Size (libalac-r3.tar.bz2) = 65558 bytes
+SHA1 (patch-makefile) = 7ccc64459e36b961b18323cb428ff48be99c1008
diff --git a/audio/alacconvert/patches/patch-makefile b/audio/alacconvert/patches/patch-makefile
new file mode 100644
index 00000000000..b7fd16cc336
--- /dev/null
+++ b/audio/alacconvert/patches/patch-makefile
@@ -0,0 +1,39 @@
+$NetBSD: patch-makefile,v 1.1.1.1 2011/11/14 19:43:21 ryoon Exp $
+
+* Dynamically linked to libalac
+* Add install target
+
+--- makefile.orig 2011-11-13 08:20:10.000000000 +0000
++++ makefile
+@@ -5,9 +5,9 @@ LFLAGS = -Wall -L$(CODECDIR) -lalac
+ CC = g++
+
+ SRCDIR = .
+-CODECDIR = ../codec
++CODECDIR = ${PREFIX}/lib
+ OBJDIR = ./obj
+-INCLUDES = ../codec
++INCLUDES = ${PREFIX}/include
+
+ HEADERS = \
+ $(SRCDIR)/CAFFileALAC.h \
+@@ -29,8 +29,7 @@ main.o \
+ CAFFileALAC.o
+
+ alacconvert: $(OBJS)
+- (cd $(CODECDIR); $(MAKE))
+- $(CC) $(LFLAGS) $(OBJS) -o alacconvert
++ $(CC) -Wl,-R ${PREFIX}/lib $(LFLAGS) $(OBJS) -o alacconvert
+
+ main.o : main.cpp
+ $(CC) -I $(INCLUDES) $(CFLAGS) main.cpp
+@@ -41,6 +40,9 @@ CAFFileALAC.o : CAFFileALAC.cpp
+ clean:
+ -rm $(OBJS) alacconvert
+
++install:
++ ${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_PROGRAM} alacconvert ${DESTDIR}${PREFIX}/bin
+
+
+