Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2004 21:55:27 -0400 (EDT)
From:      Michael Johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/71133: [NEW PORT] multimedia/gavl: A library for handling uncompressed video and audio data
Message-ID:  <200408300155.i7U1tRlh084329@gentoo.ahze.net>
Resent-Message-ID: <200408300200.i7U20kic057030@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         71133
>Category:       ports
>Synopsis:       [NEW PORT] multimedia/gavl: A library for handling uncompressed video and audio data
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 30 02:00:46 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        FreeBSD 5.3-BETA1 i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.3-BETA1 FreeBSD 5.3-BETA1 #64: Thu Aug 26 13:59:58 EDT 2004
>Description:
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

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- gavl-0.2.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gavl
#	gavl/pkg-descr
#	gavl/Makefile
#	gavl/pkg-plist
#	gavl/distinfo
#	gavl/files
#	gavl/files/patch-configure
#	gavl/files/patch-gavl-mix.c
#	gavl/files/patch-gavl-c-_cmix_c.c
#	gavl/files/patch-ltmain.sh
#
echo c - gavl
mkdir -p gavl > /dev/null 2>&1
echo x - gavl/pkg-descr
sed 's/^X//' >gavl/pkg-descr << 'END-of-gavl/pkg-descr'
XGavl (Gmerlin Audio Video Library) is a library for handling
Xuncompressed video and audio data.
X                            
XSupport:
X Colorspaces: RGB and BGR formats with 15, 16, 24 and 32 bpp, RGBA (32 bpp),
X  YUY2,  Planar YUV formats: 4:2:0, 4:2:2, 4:4:4 with both MPEG and JPEG 
X  quantization.
X
X Alpha blending with user defined background color
X
X Audio PCM formats: 8 and 16 bit signed and unsigned, 32 bit signed, floating
X  point. Byte order is always machine native.
X
X Support for currently 6 audio channels (can easily be extended).  Support for
X  speaker configurations. Downmixing, upmixing and  reordering of channels is
X  done by the audio converter.
X
X Audio channels can be interleaved or not.
X
X Generic time type (64 bit, us precision) and routines for converting 
X  frame/sample counts to time values and vice versa.
X
XWWW:	http://gmerlin.sourceforge.net
END-of-gavl/pkg-descr
echo x - gavl/Makefile
sed 's/^X//' >gavl/Makefile << 'END-of-gavl/Makefile'
X# New ports collection makefile for:	gavl
X# Date created:		2004-08-29
X# Whom:			Michael Johnson <ahze@ahze.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gavl
XPORTVERSION=	0.2.0
XCATEGORIES=	multimedia
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	gmerlin
X
XMAINTAINER=	ahze@ahze.net
XCOMMENT=	A library for handling uncompressed video and audio data
X
XLIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
X
XUSE_INC_LIBTOOL_VER=	15
XUSE_REINPLACE=		yes
XCONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
X			LDFLAGS="-L${LOCALBASE}/lib"
X
XUSE_GNOME=	pkgconfig gnometarget gnomehack
XINSTALLS_SHLIB=	yes
X
XPORTDOCS=	README
X
X.include <bsd.port.pre.mk>
X
Xpre-everything::
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${ECHO_MSG} "===>"
X	@${ECHO_MSG} "===>  Enable Optimized CFLAGS by defining"
X	@${ECHO_MSG} "===>   WITH_OPTIMIZED_CFLAGS"
X	@${ECHO_MSG} "===>"
X.endif
X
Xpost-patch:
X# No llrintf in freebsd (yet)
X	@${REINPLACE_CMD} -e 's|llrintf|rintf|' \
X		${WRKSRC}/gavl/c/sampleformat_c.c
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${REINPLACE_CMD} -e \
X	's|-fomit-frame-pointer -funroll-all-loops -falign-functions=2 -falign-loops=2 -falign-jumps=2||; \
X	 s|-O3||' ${WRKSRC}/configure
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-gavl/Makefile
echo x - gavl/pkg-plist
sed 's/^X//' >gavl/pkg-plist << 'END-of-gavl/pkg-plist'
Xinclude/gavl/gavl.h
Xinclude/gavl/gavltime.h
Xlib/gavl/include/gavlconfig.h
Xlib/libgavl.a
Xlib/libgavl.so
Xlib/libgavl.so.0
Xlibdata/pkgconfig/gavl.pc
X@dirrm lib/gavl/include
X@dirrm lib/gavl
X@dirrm include/gavl
END-of-gavl/pkg-plist
echo x - gavl/distinfo
sed 's/^X//' >gavl/distinfo << 'END-of-gavl/distinfo'
XMD5 (gavl-0.2.0.tar.gz) = b6bc77fad42031120588d9a75d5acf82
XSIZE (gavl-0.2.0.tar.gz) = 375474
END-of-gavl/distinfo
echo c - gavl/files
mkdir -p gavl/files > /dev/null 2>&1
echo x - gavl/files/patch-configure
sed 's/^X//' >gavl/files/patch-configure << 'END-of-gavl/files/patch-configure'
X--- configure.orig	Sun Aug 29 20:18:38 2004
X+++ configure	Sun Aug 29 20:19:38 2004
X@@ -19009,15 +19009,6 @@
X     else
X         :
X     fi
X-
X-    case "$host_cpu" in
X-    i386)           TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
X-    i486)           TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
X-    i586)           TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium"; CPU_PENTIUM=true ;;
X-    i686)           TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro"; CPU_PENTIUM=true ;;
X-    k6)             TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6"; CPU_PENTIUM=true ;;
X-    sparc)          TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis";;
X-  esac
X echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS flags" >&5
X echo $ECHO_N "checking if $CC supports $TRY_CFLAGS flags... $ECHO_C" >&6
X     SAVE_CFLAGS="$CFLAGS"
END-of-gavl/files/patch-configure
echo x - gavl/files/patch-gavl-mix.c
sed 's/^X//' >gavl/files/patch-gavl-mix.c << 'END-of-gavl/files/patch-gavl-mix.c'
X--- gavl/mix.c.orig	Sun Aug 29 21:27:05 2004
X+++ gavl/mix.c	Sun Aug 29 21:29:27 2004
X@@ -31,6 +31,17 @@
X  */
X 
X /* If we have more output- than input channels */
X+#include <machine/limits.h>
X+
X+#ifndef INT8_MAX
X+#define INT8_MAX       INT_MAX
X+#endif
X+#ifndef INT16_MAX
X+#define INT16_MAX      SHRT_MAX
X+#endif
X+#ifndef INT32_MAX
X+#define INT32_MAX      LONG_MAX
X+#endif
X 
X #define FRONT_TO_REAR     1.0
X #define FRONT_TO_CENTER   1.0
END-of-gavl/files/patch-gavl-mix.c
echo x - gavl/files/patch-gavl-c-_cmix_c.c
sed 's/^X//' >gavl/files/patch-gavl-c-_cmix_c.c << 'END-of-gavl/files/patch-gavl-c-_cmix_c.c'
X--- gavl/c/_mix_c.c.orig	Sun Aug 29 21:14:18 2004
X+++ gavl/c/_mix_c.c	Sun Aug 29 21:19:30 2004
X@@ -1,3 +1,24 @@
X+#include <machine/limits.h>
X+
X+#ifndef INT8_MAX
X+#define INT8_MAX	INT_MAX
X+#endif
X+#ifndef INT8_MIN
X+#define INT8_MIN	INT_MIN
X+#endif
X+#ifndef INT16_MAX
X+#define INT16_MAX	SHRT_MAX
X+#endif
X+#ifndef INT16_MIN
X+#define INT16_MIN	SHRT_MIN
X+#endif
X+#ifndef INT32_MAX
X+#define INT32_MAX	LONG_MAX
X+#endif
X+#ifndef INT32_MIN
X+#define INT32_MIN	LONG_MIN
X+#endif
X+
X 
X static void RENAME(mix_1_to_1)(gavl_mix_output_channel_t * channel,
X                                gavl_audio_frame_t * input_frame,
END-of-gavl/files/patch-gavl-c-_cmix_c.c
echo x - gavl/files/patch-ltmain.sh
sed 's/^X//' >gavl/files/patch-ltmain.sh << 'END-of-gavl/files/patch-ltmain.sh'
X--- ltmain.sh.orig	Sun Aug 29 21:36:05 2004
X+++ ltmain.sh	Sun Aug 29 21:36:34 2004
X@@ -5428,10 +5428,12 @@
X 	fi
X 
X 	# Install the pseudo-library for information purposes.
X+	if /usr/bin/false; then
X 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
X 	instname="$dir/$name"i
X 	$show "$install_prog $instname $destdir/$name"
X 	$run eval "$install_prog $instname $destdir/$name" || exit $?
X+	fi
X 
X 	# Maybe install the static library, too.
X 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
END-of-gavl/files/patch-ltmain.sh
exit
--- gavl-0.2.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408300155.i7U1tRlh084329>