aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gavl
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 23:24:34 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 23:24:34 +0000
commitd2e2005631a04e4f2781093dbffb8930720d14ae (patch)
tree71b8040204e0143651d6b385e6e9a8bbee9ee18b /multimedia/gavl
parent44904a3e84f5080f47854e70a4b976799bff6be6 (diff)
downloadports-d2e2005631a04e4f2781093dbffb8930720d14ae.tar.gz
ports-d2e2005631a04e4f2781093dbffb8930720d14ae.zip
Notes
Diffstat (limited to 'multimedia/gavl')
-rw-r--r--multimedia/gavl/Makefile55
-rw-r--r--multimedia/gavl/distinfo2
-rw-r--r--multimedia/gavl/files/patch-configure18
-rw-r--r--multimedia/gavl/files/patch-gavl-c-_cmix_c.c27
-rw-r--r--multimedia/gavl/files/patch-gavl-mix.c20
-rw-r--r--multimedia/gavl/files/patch-ltmain.sh15
-rw-r--r--multimedia/gavl/pkg-descr23
-rw-r--r--multimedia/gavl/pkg-plist10
8 files changed, 170 insertions, 0 deletions
diff --git a/multimedia/gavl/Makefile b/multimedia/gavl/Makefile
new file mode 100644
index 000000000000..d78277d69ed8
--- /dev/null
+++ b/multimedia/gavl/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: gavl
+# Date created: 2004-08-29
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gavl
+PORTVERSION= 0.2.0
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gmerlin
+
+MAINTAINER= ahze@ahze.net
+COMMENT= A library for handling uncompressed video and audio data
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
+USE_INC_LIBTOOL_VER= 15
+USE_REINPLACE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+USE_GNOME= pkgconfig gnometarget gnomehack
+INSTALLS_SHLIB= yes
+
+PORTDOCS= README
+
+.include <bsd.port.pre.mk>
+
+pre-everything::
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} "===>"
+ @${ECHO_MSG} "===> Enable Optimized CFLAGS by defining"
+ @${ECHO_MSG} "===> WITH_OPTIMIZED_CFLAGS"
+ @${ECHO_MSG} "===>"
+.endif
+
+post-patch:
+# No llrintf in freebsd (yet)
+ @${REINPLACE_CMD} -e 's|llrintf|rintf|' \
+ ${WRKSRC}/gavl/c/sampleformat_c.c
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${REINPLACE_CMD} -e \
+ 's|-fomit-frame-pointer -funroll-all-loops -falign-functions=2 -falign-loops=2 -falign-jumps=2||; \
+ s|-O3||' ${WRKSRC}/configure
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/gavl/distinfo b/multimedia/gavl/distinfo
new file mode 100644
index 000000000000..d5143da2325d
--- /dev/null
+++ b/multimedia/gavl/distinfo
@@ -0,0 +1,2 @@
+MD5 (gavl-0.2.0.tar.gz) = b6bc77fad42031120588d9a75d5acf82
+SIZE (gavl-0.2.0.tar.gz) = 375474
diff --git a/multimedia/gavl/files/patch-configure b/multimedia/gavl/files/patch-configure
new file mode 100644
index 000000000000..1aa3793899b1
--- /dev/null
+++ b/multimedia/gavl/files/patch-configure
@@ -0,0 +1,18 @@
+--- configure.orig Sun Aug 29 20:18:38 2004
++++ configure Sun Aug 29 20:19:38 2004
+@@ -19009,15 +19009,6 @@
+ else
+ :
+ fi
+-
+- case "$host_cpu" in
+- i386) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
+- i486) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
+- i586) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium"; CPU_PENTIUM=true ;;
+- i686) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro"; CPU_PENTIUM=true ;;
+- k6) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6"; CPU_PENTIUM=true ;;
+- sparc) TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis";;
+- esac
+ echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS flags" >&5
+ echo $ECHO_N "checking if $CC supports $TRY_CFLAGS flags... $ECHO_C" >&6
+ SAVE_CFLAGS="$CFLAGS"
diff --git a/multimedia/gavl/files/patch-gavl-c-_cmix_c.c b/multimedia/gavl/files/patch-gavl-c-_cmix_c.c
new file mode 100644
index 000000000000..6fc99d31a873
--- /dev/null
+++ b/multimedia/gavl/files/patch-gavl-c-_cmix_c.c
@@ -0,0 +1,27 @@
+--- gavl/c/_mix_c.c.orig Sun Aug 29 21:14:18 2004
++++ gavl/c/_mix_c.c Sun Aug 29 21:19:30 2004
+@@ -1,3 +1,24 @@
++#include <machine/limits.h>
++
++#ifndef INT8_MAX
++#define INT8_MAX INT_MAX
++#endif
++#ifndef INT8_MIN
++#define INT8_MIN INT_MIN
++#endif
++#ifndef INT16_MAX
++#define INT16_MAX SHRT_MAX
++#endif
++#ifndef INT16_MIN
++#define INT16_MIN SHRT_MIN
++#endif
++#ifndef INT32_MAX
++#define INT32_MAX LONG_MAX
++#endif
++#ifndef INT32_MIN
++#define INT32_MIN LONG_MIN
++#endif
++
+
+ static void RENAME(mix_1_to_1)(gavl_mix_output_channel_t * channel,
+ gavl_audio_frame_t * input_frame,
diff --git a/multimedia/gavl/files/patch-gavl-mix.c b/multimedia/gavl/files/patch-gavl-mix.c
new file mode 100644
index 000000000000..b314a8b606ab
--- /dev/null
+++ b/multimedia/gavl/files/patch-gavl-mix.c
@@ -0,0 +1,20 @@
+--- gavl/mix.c.orig Sun Aug 29 21:27:05 2004
++++ gavl/mix.c Sun Aug 29 21:29:27 2004
+@@ -31,6 +31,17 @@
+ */
+
+ /* If we have more output- than input channels */
++#include <machine/limits.h>
++
++#ifndef INT8_MAX
++#define INT8_MAX INT_MAX
++#endif
++#ifndef INT16_MAX
++#define INT16_MAX SHRT_MAX
++#endif
++#ifndef INT32_MAX
++#define INT32_MAX LONG_MAX
++#endif
+
+ #define FRONT_TO_REAR 1.0
+ #define FRONT_TO_CENTER 1.0
diff --git a/multimedia/gavl/files/patch-ltmain.sh b/multimedia/gavl/files/patch-ltmain.sh
new file mode 100644
index 000000000000..e6947e6d2a28
--- /dev/null
+++ b/multimedia/gavl/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig Sun Aug 29 21:36:05 2004
++++ ltmain.sh Sun Aug 29 21:36:34 2004
+@@ -5428,10 +5428,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/multimedia/gavl/pkg-descr b/multimedia/gavl/pkg-descr
new file mode 100644
index 000000000000..17b94a43010e
--- /dev/null
+++ b/multimedia/gavl/pkg-descr
@@ -0,0 +1,23 @@
+Gavl (Gmerlin Audio Video Library) is a library for handling
+uncompressed video and audio data.
+
+Support:
+ Colorspaces: RGB and BGR formats with 15, 16, 24 and 32 bpp, RGBA (32 bpp),
+ YUY2, Planar YUV formats: 4:2:0, 4:2:2, 4:4:4 with both MPEG and JPEG
+ quantization.
+
+ Alpha blending with user defined background color
+
+ Audio PCM formats: 8 and 16 bit signed and unsigned, 32 bit signed, floating
+ point. Byte order is always machine native.
+
+ Support for currently 6 audio channels (can easily be extended). Support for
+ speaker configurations. Downmixing, upmixing and reordering of channels is
+ done by the audio converter.
+
+ Audio channels can be interleaved or not.
+
+ Generic time type (64 bit, us precision) and routines for converting
+ frame/sample counts to time values and vice versa.
+
+WWW: http://gmerlin.sourceforge.net
diff --git a/multimedia/gavl/pkg-plist b/multimedia/gavl/pkg-plist
new file mode 100644
index 000000000000..eef896908863
--- /dev/null
+++ b/multimedia/gavl/pkg-plist
@@ -0,0 +1,10 @@
+include/gavl/gavl.h
+include/gavl/gavltime.h
+lib/gavl/include/gavlconfig.h
+lib/libgavl.a
+lib/libgavl.so
+lib/libgavl.so.0
+libdata/pkgconfig/gavl.pc
+@dirrm lib/gavl/include
+@dirrm lib/gavl
+@dirrm include/gavl