libdv4 stable port information

Package: libdv4
Version: 0.104
Revision: 4
Distribution: 10.4, 10.5
###
Depends: %N-shlibs (= %v-%r)
BuildDepends: fink (>= 0.24.12-1), pkgconfig, audiofile, esound, glib, gtk+, liboss1, popt, libgettext8-dev, gettext-bin, gettext-tools, libiconv-dev, x11-dev
BuildDependsOnly: true
DescPackaging: Uses pkgconfig, but there are no pkgconfig-related dependencies.
Conflicts: libdv
Replaces: libdv
###
Source: mirror:sourceforge:libdv/libdv-%v.tar.gz
Source-MD5: f6b08efce7472daa20685e6e8431f542
###
PatchFile: %n.patch
PatchFile-MD5: 6f8e8a7b673ed6664a15bd9e7b4f5383
###
SetCPPFLAGS: -U_SC_PRIORITY_SCHEDULING
SetCFLAGS: -U_SC_PRIORITY_SCHEDULING
NoSetLDFLAGS: true
SetLIBS: -L%p/lib
###
DocFiles: COPYING COPYRIGHT
###
ConfigureParams: --disable-asm --disable-sdl --with-x --with-pic --enable-shared --enable-static --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
CompileScript: <<
#!/bin/sh -ev

./configure %c
perl -pi -e 's,playdv,,g' Makefile
make
<<
###
SplitOff: <<
Package: %N-shlibs
Replaces: libdv-shlibs
Conflicts: libdv-shlibs
Provides: libdv-shlibs
Files: <<
lib/libdv.4.*
<<
Shlibs: <<
%p/lib/libdv.4.dylib 5.0.0 %n (>= 0.104-3)
<<
DocFiles: AUTHORS COPYING COPYRIGHT ChangeLog INSTALL NEWS README* TODO
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (>= %v-%r), liboss1-shlibs, popt-shlibs
Replaces: libdv-bin
Conflicts: libdv-bin
Files: <<
bin
share/man
<<
DocFiles: COPYING COPYRIGHT
<<
###
Description: Software decoder for DV format video
DescDetail: <<
The Quasar DV codec (libdv) is a software codec for DV video, the encoding
format used by most digital camcorders, typically those that support the
IEEE 1394 (a.k.a. FireWire or i.Link) interface. libdv was developed
according to the official standards for DV video: IEC 61834 and SMPTE 314M.
<<
DescPort: <<
--- Justin F. Hallett (April 5, 2003) (0.99-1)
- enhanced the patch to make it more applable upstream
- enabled playdv
- disabled linking to sdl so playdv would build
- linked playdv againsted liboss

--- Justin F. Hallett (August 14, 2002) (0.98-1)
- Stopped the build of playdv (needs non oss support, and better SDL support)
- encodedv/dvconnect.c stdlib.h instead of malloc.h
- encodedv/dvconnect.c had to remove a block made function fail no matter what
- encodedv/dvavi.c stdlib.h instead of malloc.h
- used the NoLDFLAGS -> LIBS try to build properly

--- Justin F. Hallett (May 2, 2002) (0.9.5-1)
- Stopped the build of playdv (needs to be ported to use esd instead of oss)
- Stopped the build of encodedv (started the port of it, will finish for
next revision)
- fix in encodedv/dvconnect.c to use stdlib.h instead of malloc.h for __APPLE__
- fixed libdv/Makefile.in to link to proper libs (.libs/*.a instead of *.la)
- multiple fixes in libdv/audio.c, had to disable 2 areas for __APPLE__
- libdv/dv.c fixed functions calls (dv_mb411_right_YUY2 and dv_mb411_YUY2)
- libdv/enc_input.c disabled a section for __APPLE__
- libdv/encode.c fix to disable a redefine of swab for __APPLE__
- libdv/idct_248.c __APPLE__ needed int64 to be defined
- libdv/parse.c disabled a section for __APPLE__
- libdv/vlc.c disable a few sections for __APPLE__ (based on the 0.9-3 patch)

dmacks: gtk front end seems to be not built
<<
###
License: GPL
Maintainer: Justin F. Hallett
Homepage: http://www.sourceforge.net/projects/libdv/

libdv4 stable port .patch

diff -uNr libdv-0.104/encodedv/dvconnect.c libdv-0.104-new/encodedv/dvconnect.c
--- libdv-0.104/encodedv/dvconnect.c 2004-05-30 22:05:23.000000000 -0400
+++ libdv-0.104-new/encodedv/dvconnect.c 2005-04-28 10:43:43.000000000 -0400
@@ -857,12 +857,13 @@

int rt_raisepri (int pri)
{
-#ifdef _SC_PRIORITY_SCHEDULING
+#if defined(_SC_PRIORITY_SCHEDULING) && !defined(__APPLE__)
struct sched_param scp;

/*
* Verify that scheduling is available
*/
+#if defined(_SC_PRIORITY_SCHEDULING) && !defined(__APPLE__)
if (sysconf (_SC_PRIORITY_SCHEDULING) == -1) {
fprintf (stderr, "WARNING: RR-scheduler not available, "
"disabling.\n");
@@ -877,6 +878,11 @@
}
#endif
return (0);
+#else
+ fprintf (stderr, "WARNING: RR-scheduler not available, "
+ "disabling.\n");
+ return (-1);
+#endif
}

/* ------------------------------------------------------------------------
diff -uNr libdv-0.104/libdv/vlc.h libdv-0.104-new/libdv/vlc.h
--- libdv-0.104/libdv/vlc.h 2003-10-20 15:46:50.000000000 -0400
+++ libdv-0.104-new/libdv/vlc.h 2005-04-28 10:43:43.000000000 -0400
@@ -69,7 +69,7 @@
extern void dv_decode_vlc(int bits,int maxbits, dv_vlc_t *result);
extern void __dv_decode_vlc(int bits, dv_vlc_t *result);

-extern __inline__ void dv_peek_vlc(bitstream_t *bs,int maxbits, dv_vlc_t *result) {
+static __inline__ void dv_peek_vlc(bitstream_t *bs,int maxbits, dv_vlc_t *result) {
if(maxbits < 16)
dv_decode_vlc(bitstream_show(bs,16),maxbits,result);
else
diff -uNr libdv-0.104/playdv/Makefile.in libdv-0.104-new/playdv/Makefile.in
--- libdv-0.104/playdv/Makefile.in 2004-11-29 22:23:43.000000000 -0500
+++ libdv-0.104-new/playdv/Makefile.in 2005-04-28 10:43:43.000000000 -0400
@@ -209,7 +209,7 @@
AM_CFLAGS = $(SDL_CFLAGS) $(GTK_CFLAGS)
noinst_HEADERS = display.h oss.h
playdv_SOURCES = playdv.c display.c display.h oss.c
-playdv_LDADD = $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) ../libdv/libdv.la $(POPT_LIB)
+playdv_LDADD = $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) ../libdv/libdv.la $(POPT_LIB) -loss
all: all-am

.SUFFIXES:
diff -uNr libdv-0.104/playdv/oss.c libdv-0.104-new/playdv/oss.c
--- libdv-0.104/playdv/oss.c 2003-11-23 17:59:08.000000000 -0500
+++ libdv-0.104-new/playdv/oss.c 2005-04-28 10:43:43.000000000 -0400
@@ -34,7 +34,11 @@
#include
#include
#include
+#if defined(__APPLE__) && (__GNUC__)
+#include
+#else
#include
+#endif /* Darwin liboss */

#include "oss.h"

libdv4 _unstable_ port .patch