summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-01-19 05:31:03 +0000
committerahze <ahze@FreeBSD.org>2005-01-19 05:31:03 +0000
commitf3ea1778ab930ba43f90fa3e79403149828d74fb (patch)
tree91ddb75f2378d47619152228b6030f61072e5c4a /audio
parent3608ecd1324eba0adb4848010b8b71ddc2aa8f1d (diff)
downloadFreeBSD-ports-f3ea1778ab930ba43f90fa3e79403149828d74fb.zip
FreeBSD-ports-f3ea1778ab930ba43f90fa3e79403149828d74fb.tar.gz
- Fix build with new lrintf math functions [1]
- Simplify COMMENT - Update pkg-desc Submitted by: Dan Larsson [1]
Diffstat (limited to 'audio')
-rw-r--r--audio/faad/Makefile2
-rw-r--r--audio/faad/files/patch-configure.in43
-rw-r--r--audio/faad/files/patch-libfaad_common.h16
-rw-r--r--audio/faad/pkg-descr10
4 files changed, 64 insertions, 7 deletions
diff --git a/audio/faad/Makefile b/audio/faad/Makefile
index e31f70b..9512d29 100644
--- a/audio/faad/Makefile
+++ b/audio/faad/Makefile
@@ -14,7 +14,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= faac
MAINTAINER= ahze@FreeBSD.org
-COMMENT= A LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder
+COMMENT= MPEG-2 and MPEG-4 AAC audio decoder
LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
sndfile.1:${PORTSDIR}/audio/libsndfile
diff --git a/audio/faad/files/patch-configure.in b/audio/faad/files/patch-configure.in
new file mode 100644
index 0000000..700ac59
--- /dev/null
+++ b/audio/faad/files/patch-configure.in
@@ -0,0 +1,43 @@
+--- configure.in.orig Fri Feb 6 17:04:39 2004
++++ configure.in Wed Jan 19 01:44:24 2005
+@@ -49,6 +49,43 @@
+ fi
+ ])
+
++dnl @synopsis AC_C99_FUNC_LRINTF
++dnl
++dnl Check whether C99's lrintf function is available.
++dnl @version 1.3 Feb 12 2002
++dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
++dnl
++dnl Permission to use, copy, modify, distribute, and sell this file for any
++dnl purpose is hereby granted without fee, provided that the above copyright
++dnl and this permission notice appear in all copies. No representations are
++dnl made about the suitability of this software for any purpose. It is
++dnl provided "as is" without express or implied warranty.
++dnl
++AC_DEFUN([AC_C99_FUNC_LRINTF],
++[AC_CACHE_CHECK(for lrintf,
++ ac_cv_c99_lrintf,
++[
++lrintf_save_CFLAGS=$CFLAGS
++CFLAGS="-O -lm"
++AC_TRY_LINK([
++#define _ISOC9X_SOURCE 1
++#define _ISOC99_SOURCE 1
++#define __USE_ISOC99 1
++#define __USE_ISOC9X 1
++
++#include <math.h>
++], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
++
++CFLAGS=$lrintf_save_CFLAGS
++
++])
++
++if test "$ac_cv_c99_lrintf" = yes; then
++ AC_DEFINE(HAVE_LRINTF, 1,
++ [Define if you have C99's lrintf function.])
++fi
++])# AC_C99_FUNC_LRINTF
++AC_C99_FUNC_LRINTF
diff --git a/audio/faad/files/patch-libfaad_common.h b/audio/faad/files/patch-libfaad_common.h
new file mode 100644
index 0000000..dfb9a90
--- /dev/null
+++ b/audio/faad/files/patch-libfaad_common.h
@@ -0,0 +1,16 @@
+--- libfaad/common.h.orig Fri Feb 6 13:55:24 2004
++++ libfaad/common.h Wed Jan 19 01:52:32 2005
+@@ -308,6 +308,7 @@
+ return i;
+ }
+ #elif (defined(__i386__) && defined(__GNUC__))
++ #ifndef HAVE_LRINTF
+ #define HAS_LRINTF
+ // from http://www.stereopsis.com/FPU.html
+ static INLINE int lrintf(float f)
+@@ -320,6 +321,7 @@
+ : "m" (f));
+ return i;
+ }
++ #endif /* HAVE_LRINTF */
+ #endif
diff --git a/audio/faad/pkg-descr b/audio/faad/pkg-descr
index 4fa4c5f..cf0577d 100644
--- a/audio/faad/pkg-descr
+++ b/audio/faad/pkg-descr
@@ -1,9 +1,7 @@
-This is FAAD 2 - Freeware Advanced Audio Decoder 2.
+FAAD2 (Freeware Advanced Audio Decoder) is a MPEG-2, MPEG-4 AAC decoder.
-FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
-completely written from scratch.
+FAAD2 is the fastest ISO AAC audio decoder available and can be used with
+DRM (Digital Radio Mondiale), and supports HE (High Efficiency), Main,
+LC, LD, LTP, PS (Parametric Stereo) AAC files.
WWW: http://www.audiocoding.com/
-
-- Sean McGovern
-sean@sfarc.net
OpenPOWER on IntegriCloud