Mon Nov 14 19:43:22 2011 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(ryoon)
diff -r0 -r1.1.1.1 pkgsrc/audio/alacconvert/Makefile
diff -r0 -r1.1.1.1 pkgsrc/audio/alacconvert/DESCR
diff -r0 -r1.1.1.1 pkgsrc/audio/alacconvert/distinfo
diff -r0 -r1.1.1.1 pkgsrc/audio/alacconvert/PLIST
diff -r0 -r1.1.1.1 pkgsrc/audio/alacconvert/patches/patch-makefile
# $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"
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.
$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
@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/14 19:43:21 ryoon Exp $
bin/alacconvert
$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