[Midnightbsd-cvs] mports: mports/audio: add liba52

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Oct 30 20:53:58 EDT 2007


Log Message:
-----------
add liba52

Modified Files:
--------------
    mports/audio:
        Makefile (r1.43 -> r1.44)

Added Files:
-----------
    mports/audio/liba52:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/audio/Makefile,v
retrieving revision 1.43
retrieving revision 1.44
diff -Laudio/Makefile -Laudio/Makefile -u -r1.43 -r1.44
--- audio/Makefile
+++ audio/Makefile
@@ -25,6 +25,7 @@
     SUBDIR += jack
     SUBDIR += ladspa
     SUBDIR += lame
+    SUBDIR += liba52
     SUBDIR += liba52-devel
     SUBDIR += libao
     SUBDIR += libaudiofile
--- /dev/null
+++ audio/liba52/pkg-descr
@@ -0,0 +1,24 @@
+[ from developer's site ]
+It is a free library for decoding ATSC A/52 streams, aka AC-3. The
+A/52 standard is used in a variety of applications, e.g., digital
+television and DVD. The main goals in liba52 development are:
+
+Portability - most of the code is written in C, and when we use
+platform-specific optimizations we always have a generic C routine
+to fall back on.
+
+Reuseability - we do not want liba52 to include any project-specific
+code, but it should still include enough features to be used by
+very diverse projects.
+
+Precision - We are trying to implement all of the A/52 standard,
+and to have a very precise output by doing all the calculations in
+floating point. We have a test suite that detects any deviation in
+the output when compared to previous versions. We do not have access
+to official A/52 test vectors though, so we have to use our judgement
+to ensure that such deviations are only introduced when we fix bugs!
+
+Speed - liba52 is really fast, on any modern PC it should take only
+a few percent of CPU time.
+
+WWW: http://liba52.sourceforge.net/
--- /dev/null
+++ audio/liba52/pkg-plist
@@ -0,0 +1,14 @@
+bin/a52dec
+bin/extract_a52
+include/a52dec/a52.h
+include/a52dec/a52_internal.h
+include/a52dec/attributes.h
+include/a52dec/audio_out.h
+include/a52dec/mm_accel.h
+lib/liba52.so.0
+lib/liba52.so
+lib/liba52.la
+lib/liba52.a
+%%PORTDOCS%%%%DOCSDIR%%/liba52.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at dirrm include/a52dec
--- /dev/null
+++ audio/liba52/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for:	liba52
+# Date created:				Tue Oct 16 10:43:56 BRST 2001
+# Whom:                 Mario Sergio Fujikawa Ferreira <lioux at FreeBSD.org>
+#
+# $MidnightBSD: mports/audio/liba52/Makefile,v 1.1 2007/10/31 00:53:56 laffer1 Exp $
+# $FreeBSD: ports/audio/liba52/Makefile,v 1.21 2007/04/01 07:56:18 lioux Exp $
+#
+
+PORTNAME=	liba52
+PORTVERSION=	0.7.4
+CATEGORIES=	audio
+MASTER_SITES=	http://liba52.sourceforge.net/files/
+DISTNAME=	a52dec-${PORTVERSION:S/.b/b/}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A free library for decoding ATSC A/52 streams, aka AC-3
+
+USE_AUTOTOOLS=	libtool:15
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-oss --enable-shared
+INSTALLS_SHLIB=	yes
+
+.if !defined(WITHOUT_DJBFFT) && !defined(PACKAGE_BUILDING)
+BUILD_DEPENDS+=	${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
+RUN_DEPENDS+=	${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
+
+CONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+CONFIGURE_ARGS+=	--enable-djbfft
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+=	-fPIC
+.endif
+
+MAN1=	a52dec.1 extract_a52.1
+
+HEADER_FILES=	liba52/a52_internal.h
+
+pre-everything::
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+	@${ECHO_MSG} ">>>"
+	@${ECHO_MSG} ">>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS."
+	@${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
+	@${ECHO_MSG} ">>>"
+.endif
+.ifndef(WITHOUT_DJBFFT)
+	@${ECHO_MSG} '>>>'
+	@${ECHO_MSG} '>>> You can disable djbfft optimized FFT routines by defining WITHOUT_DJBFFT.'
+	@${ECHO_MSG} ">>> For example, 'make WITHOUT_DJBFFT=yes'"
+	@${ECHO_MSG} '>>>'
+.endif
+
+post-patch:
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+	@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
+		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+.endif
+.ifndef(WITHOUT_DJBFFT)
+	@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
+.endif
+
+post-install:
+.ifndef(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/doc/liba52.txt ${DOCSDIR}
+.endif
+.for file in ${HEADER_FILES}
+	@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/a52dec
+.endfor
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ audio/liba52/distinfo
@@ -0,0 +1,3 @@
+MD5 (a52dec-0.7.4.tar.gz) = caa9f5bc44232dc8aeea773fea56be80
+SHA256 (a52dec-0.7.4.tar.gz) = a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33
+SIZE (a52dec-0.7.4.tar.gz) = 241507


More information about the Midnightbsd-cvs mailing list