View | Details | Raw Unified | Return to bug 124562
Collapse All | Expand All

(-)gavl/Makefile (-22 / +12 lines)
Lines 6-14 Link Here
6
#
6
#
7
7
8
PORTNAME=	gavl
8
PORTNAME=	gavl
9
PORTVERSION=	0.2.5
9
PORTVERSION=	1.0.0
10
CATEGORIES=	multimedia
10
CATEGORIES=	multimedia
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	SF
12
MASTER_SITE_SUBDIR=	gmerlin
12
MASTER_SITE_SUBDIR=	gmerlin
13
13
14
MAINTAINER=	multimedia@FreeBSD.org
14
MAINTAINER=	multimedia@FreeBSD.org
Lines 21-54 Link Here
21
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
22
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
23
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
23
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
24
		LIBS="-L${LOCALBASE}/lib"
24
		LDFLAGS="-L${LOCALBASE}/lib"
25
CONFIGURE_ARGS=	--without-cpuflags
25
CONFIGURE_ARGS=	--without-cpuflags --without-doxygen
26
26
27
PORTDOCS=	README
27
PORTDOCS=	README
28
28
29
.include <bsd.port.pre.mk>
29
OPTIONS=	OPTIMIZED_CFLAGS "Additional optimizations" off
30
30
31
.if ${OSVERSION} < 504000
31
.include <bsd.port.pre.mk>
32
EXTRA_PATCHES=	${PATCHDIR}/gavl-mix.c-patch \
33
		${PATCHDIR}/gavl-c-_cmix_c.c-patch
34
.endif
35
32
36
pre-everything::
33
.if defined(WITH_OPTIMIZED_CFLAGS) && ${ARCH} == i386 && ${OSVERSION} < 700000
37
.if !defined(WITH_OPTIMIZED_CFLAGS)
34
# Build fails on FreeBSD-6.3 i386 with optimized cflags with gcc 3.4
38
	@${ECHO_MSG} "===>"
35
USE_GCC=	4.2+
39
	@${ECHO_MSG} "===>  Enable Optimized CFLAGS by defining"
40
	@${ECHO_MSG} "===>   WITH_OPTIMIZED_CFLAGS"
41
	@${ECHO_MSG} "===>"
42
.endif
36
.endif
43
37
44
post-patch:
38
post-patch:
45
# No llrintf in freebsd (yet)
39
	# This is possibly wrong, but benchmark does not affect library functionality, so
46
.if ${OSVERSION} < 504000
40
	@${REINPLACE_CMD} -e 's|CLOCK_PROCESS_CPUTIME_ID|CLOCK_PROF|g' \
47
	@${REINPLACE_CMD} -e 's|llrintf|rintf|g' \
41
		${WRKSRC}/src/benchmark.c
48
		${WRKSRC}/gavl/c/*.*
49
.endif
50
	@${REINPLACE_CMD} -e 's|CFLAGS="-Wall|CFLAGS="${CFLAGS} -Wall|g' \
51
		${WRKSRC}/configure
52
.if !defined(WITH_OPTIMIZED_CFLAGS)
42
.if !defined(WITH_OPTIMIZED_CFLAGS)
53
	@${REINPLACE_CMD} -e \
43
	@${REINPLACE_CMD} -e \
54
	's|-O3 -funroll-all-loops -fomit-frame-pointer -ffast-math||g' \
44
	's|-O3 -funroll-all-loops -fomit-frame-pointer -ffast-math||g' \
(-)gavl/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (gavl-0.2.5.tar.gz) = ef4e916c0422e02dd3df2b738b2e4546
1
MD5 (gavl-1.0.0.tar.gz) = b0d89453b414a9a7f40471f3ac1b59ab
2
SHA256 (gavl-0.2.5.tar.gz) = a4e9bf74facb45be3ffcef8e6acee1243911e940b28508e34c20ef207256197a
2
SHA256 (gavl-1.0.0.tar.gz) = 6ba28221734be08f8bccc2fdba221374319e8bab07baae4e6c276c43e022d65c
3
SIZE (gavl-0.2.5.tar.gz) = 897188
3
SIZE (gavl-1.0.0.tar.gz) = 1048751
(-)gavl/files/gavl-c-_cmix_c.c-patch (-27 lines)
Lines 1-27 Link Here
1
--- gavl/c/_mix_c.c.orig	Sun Aug 29 21:14:18 2004
2
+++ gavl/c/_mix_c.c	Sun Aug 29 21:19:30 2004
3
@@ -1,3 +1,24 @@
4
+#include <machine/limits.h>
5
+
6
+#ifndef INT8_MAX
7
+#define INT8_MAX	SCHAR_MAX
8
+#endif
9
+#ifndef INT8_MIN
10
+#define INT8_MIN	SCHAR_MIN
11
+#endif
12
+#ifndef INT16_MAX
13
+#define INT16_MAX	SHRT_MAX
14
+#endif
15
+#ifndef INT16_MIN
16
+#define INT16_MIN	SHRT_MIN
17
+#endif
18
+#ifndef INT32_MAX
19
+#define INT32_MAX	LONG_MAX
20
+#endif
21
+#ifndef INT32_MIN
22
+#define INT32_MIN	LONG_MIN
23
+#endif
24
+
25
 
26
 static void RENAME(mix_1_to_1)(gavl_mix_output_channel_t * channel,
27
                                gavl_audio_frame_t * input_frame,
(-)gavl/files/gavl-mix.c-patch (-20 lines)
Lines 1-20 Link Here
1
--- gavl/mix.c.orig	Sun Aug 29 21:27:05 2004
2
+++ gavl/mix.c	Sun Aug 29 21:29:27 2004
3
@@ -31,6 +31,17 @@
4
  */
5
 
6
 /* If we have more output- than input channels */
7
+#include <machine/limits.h>
8
+
9
+#ifndef INT8_MAX
10
+#define INT8_MAX       SCHAR_MAX
11
+#endif
12
+#ifndef INT16_MAX
13
+#define INT16_MAX      SHRT_MAX
14
+#endif
15
+#ifndef INT32_MAX
16
+#define INT32_MAX      LONG_MAX
17
+#endif
18
 
19
 #define FRONT_TO_REAR     1.0
20
 #define FRONT_TO_CENTER   1.0
(-)gavl/pkg-descr (-22 / +11 lines)
Lines 1-23 Link Here
1
Gavl (Gmerlin Audio Video Library) is a library for handling
1
Gavl is short for Gmerlin Audio Video Library. It is a low level
2
uncompressed video and audio data.
2
library, upon which multimedia APIs can be built. Gavl handles all
3
                            
3
the details of audio and video formats like colorspaces, samplerates,
4
Support:
4
multichannel configurations etc. It provides standardized definitions
5
 Colorspaces: RGB and BGR formats with 15, 16, 24 and 32 bpp, RGBA (32 bpp),
5
for those formats as well as container structures for carrying audio
6
  YUY2,  Planar YUV formats: 4:2:0, 4:2:2, 4:4:4 with both MPEG and JPEG 
6
samples or video images inside an application.
7
  quantization.
7
8
In addition, it handles the sometimes ugly task to convert between
9
all these formats and provides some elementary operations (copying,
10
scaling, alpha blending etc)
8
11
9
 Alpha blending with user defined background color
12
WWW: http://gmerlin.sourceforge.net/
10
11
 Audio PCM formats: 8 and 16 bit signed and unsigned, 32 bit signed, floating
12
  point. Byte order is always machine native.
13
14
 Support for currently 6 audio channels (can easily be extended).  Support for
15
  speaker configurations. Downmixing, upmixing and  reordering of channels is
16
  done by the audio converter.
17
18
 Audio channels can be interleaved or not.
19
20
 Generic time type (64 bit, us precision) and routines for converting 
21
  frame/sample counts to time values and vice versa.
22
23
WWW:	http://gmerlin.sourceforge.net
(-)gavl/pkg-plist (-1 / +2 lines)
Lines 1-7 Link Here
1
include/gavl/gavl.h
1
include/gavl/gavl.h
2
include/gavl/gavl_version.h
3
include/gavl/gavldsp.h
2
include/gavl/gavltime.h
4
include/gavl/gavltime.h
3
lib/gavl/include/gavlconfig.h
5
lib/gavl/include/gavlconfig.h
4
lib/libgavl.a
5
lib/libgavl.la
6
lib/libgavl.la
6
lib/libgavl.so
7
lib/libgavl.so
7
lib/libgavl.so.0
8
lib/libgavl.so.0

Return to bug 124562