transcode stable port information


Package: transcode
Version: 1.1.0
Revision: 6
Depends: <<
a52dec-shlibs,
amrnb-shlibs,
bzip2-shlibs,
faac-shlibs,
freetype219-shlibs (>= 2.3.8-2),
imagemagick (>=6.5.8-4),
lame-shlibs,
libavcodec51-shlibs,
libavformat52-shlibs,
libavutil49-shlibs,
libdv4-shlibs,
libdvdread.3-shlibs,
libfaad1-shlibs,
libgsm1-shlibs,
libiconv,
libjpeg8-shlibs,
libogg-shlibs,
libpostproc51-shlibs,
libquicktime1-shlibs,
libtheora0-shlibs,
libvorbis0-shlibs,
libx264-57-shlibs,
libxml2-shlibs,
lzo2-shlibs,
mpeg2dec-shlibs,
sdl-shlibs (>= 1.2.9-1001),
x11-shlibs,
xvidcore-shlibs
<<
#BDep:d-b-f avoids IBD from imagemagick and similar messes
BuildDepends: <<
a52dec-dev,
amrnb-dev,
faac-dev,
dpkg-base-files,
ffmpeg-dev,
fink (>= 0.24.12),
freetype219 (>= 2.3.8-2),
libgsm1-dev,
imagemagick2-dev,
lame-dev,
libavcodec-dev,
libavformat-dev,
libavutil-dev,
libdv4,
libdvdread.3,
libfaad1-dev,
libiconv-dev,
libjpeg8,
libogg,
libpostproc-dev,
libquicktime1,
libtheora0,
libvorbis0,
libx264-dev,
libxml2,
lzo2,
mpeg2dec,
mpeg2dec-dev,
pkgconfig,
sdl (>= 1.2.9-1001),
x11-dev,
xvidcore
<<
#Source: http://www.jakemsr.com/transcode/transcode-%v.tar.gz
Source: http://download.berlios.de/tcforge/%n-%v.tar.bz2
Source-MD5: 5ca205e32b546402a48ea8004a7b3232
PatchFile: %n.patch
PatchFile-MD5: 59af83357689d82d256969b860e4c6ce
PatchScript: <<
#!/bin/sh -ev
%{default_script}
sed -i.bak -e '/^have_sdl\=\"no\"/,/confdefs/s,^if test x\"\$have,have_sdl=yes\
&,' configure
perl -pi -e 's,have_x86cpu=true,have_x86cpu=false,; s,#define ARCH_X86 1,#undef ARCH_X86,' configure
perl -pi -e 's,libpostproc/postprocess.h,postproc/postprocess.h,g' configure filter/filter_pp.c

# fink's current pkgs consolidate headers in ffmpeg/ but pkg
# here wants each in separate...easier to make compatbility
# links than to patch all the source files.
mkdir libavcodec
ln -s %p/include/ffmpeg/avcodec.h libavcodec
mkdir libavformat
ln -s %p/include/ffmpeg/avformat.h libavformat
mkdir libavutil
ln -s %p/include/ffmpeg/avutil.h libavutil

# ... but do need to patch configure detection itself since
# that does not pass any local -I
perl -pi -e 's,libavformat/avformat.h,ffmpeg/avformat.h,g' configure
perl -pi -e 's,libavcodec/avcodec.h,ffmpeg/avcodec.h,g' configure

# postproc needs -lavutil, but is not passed by pkg-config --libs
perl -pi -e 's,libs libpostproc\),libs libpostproc\) -lavutil,g' configure

perl -pi -e 's,-lXv,-L/usr/X11R6/lib -lXv,' filter/preview/Makefile.in
<<
SetCFLAGS: -O3 -fstrict-aliasing
SetCXXFLAGS: -O3 -fstrict-aliasing
ConfigureParams: <<
--mandir=%p/share/man \
--enable-libavcodec \
--with-libavcodec-prefix=%p \
--enable-libavformat \
--enable-libmpeg2 \
--with-libmpeg2-prefix=%p \
--enable-libpostproc \
--with-libpostproc-prefix=%p \
--enable-freetype2 \
--with-freetype2-prefix=%p \
\
--with-lame-prefix=%p \
--disable-mjpegtools \
--enable-xvid \
--enable-ogg \
--enable-vorbis \
--enable-theora \
\
--with-libdvdread-prefix=%p \
--enable-libdv \
--enable-libquicktime \
--enable-lzo \
--with-lzo-prefix=%p \
--enable-a52 \
--with-a52-prefix=%p \
--enable-faac \
--with-faac-prefix=%p \
--enable-libxml2 \
--enable-sdl \
--enable-imagemagick \
\
--with-libjpeg-prefix=%p \
\
--with-iconv-prefix=%p \
--enable-xio \
--enable-x264
<<
InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: AUTHORS COPYING ChangeLog README STYLE TODO
#
Description: Video Stream Processing Tool
DescDetail: <<
Transcode is a suite of tools, all of which are command line utilities,
for transcoding various video, audio, and container formats, running on
a platform that supports shared libraries and threads. Decoding and
encoding is done by loaded modules that are responsible for feeding
transcode with raw video/audio streams (import modules) and encoding the
frames (export modules). It includes a variety of video and audio filters,
including (but not limited to) video de-interlacing, audio resampling,
framerate conversion, different video resizing algorithms, smoothing,
sharpening, denoisifying, and cutting.
<<
DescPackaging: <<
- the "enable-sdl" needs the last item in the PatchScript.
- oss can't be enabled: is broken on Tiger ("conficting types" in soundcard.h).
- similarly for libdivxdecore ( by adding "-I/sw/include/divx" to the CPPFLAGS).
- most of the prefixes in the Configureparams are there just by precaution,
since configure inserts otherwise a default "/usr", resulting in a number
of flags -I/usr/include or -L/usr/lib in the build, which might ("random order..")
create somewhere an undesired effect (eg linking one of the items with libiconv
in /usr instead of in %p).

Formerly maintained by Christian Schroeder

Fink's libpostproc headers are in %p/include/postproc, not
%p/include/libpostproc as transcode is expecting. Not sure if
expecting or require newer libpostproc version than fink has.

Doesn't build with current mjpegtools in fink (needs newer
one?)

Hardcodes -lXv in a makefile, ignoring some related autoconf
detection, so need to hardcode -L for it there too.
<<
License: GPL
Maintainer: Oliver Cordes
Homepage: http://www.transcoding.org/

transcode stable port .patch

diff -ru transcode-1.1.0.orig/export/export_xvid4.c transcode-1.1.0/export/export_xvid4.c
--- transcode-1.1.0.orig/export/export_xvid4.c 2007-08-11 10:15:45.000000000 +0200
+++ transcode-1.1.0/export/export_xvid4.c 2010-06-18 19:11:17.000000000 +0200
@@ -91,6 +91,7 @@
#endif
#define XVID_CONFIG_FILE "xvid4.cfg"

+
/*****************************************************************************
* XviD symbols grouped in a nice struct.
****************************************************************************/
@@ -1248,16 +1249,26 @@
XVID_SHARED_LIB_SUFX, XVID_API_MAJOR(XVID_API));
#endif
#ifdef OS_DARWIN
- tc_snprintf(soname[1], 4095, "%s.%d.%s", XVID_SHARED_LIB_BASE,
+ tc_snprintf(soname[1], 4095, "%s/../%s.%d.%s", path,XVID_SHARED_LIB_BASE,
XVID_API_MAJOR(XVID_API), XVID_SHARED_LIB_SUFX);
#else
tc_snprintf(soname[1], 4095, "%s.%s.%d", XVID_SHARED_LIB_BASE,
XVID_SHARED_LIB_SUFX, XVID_API_MAJOR(XVID_API));
#endif
+#ifdef OS_DARWIN
+ tc_snprintf(soname[2], 4095, "%s/%s.%s", path, XVID_SHARED_LIB_BASE,
+ XVID_SHARED_LIB_SUFX);
+#else
tc_snprintf(soname[2], 4095, "%s/%s.%s", path, XVID_SHARED_LIB_BASE,
XVID_SHARED_LIB_SUFX);
+#endif
+#ifdef OS_DRAWIN
tc_snprintf(soname[3], 4095, "%s.%s", XVID_SHARED_LIB_BASE,
XVID_SHARED_LIB_SUFX);
+#else
+ tc_snprintf(soname[3], 4095, "%s/../%s.%s",XVID_SHARED_LIB_BASE,
+ XVID_SHARED_LIB_SUFX);
+#endif

/* Let's try each shared lib until success */
for(i=0; i<4; i++) {
diff -ru transcode-1.1.0.orig/filter/filter_logoaway.c transcode-1.1.0/filter/filter_logoaway.c
--- transcode-1.1.0.orig/filter/filter_logoaway.c 2007-07-30 22:53:37.000000000 +0200
+++ transcode-1.1.0/filter/filter_logoaway.c 2010-06-18 18:50:44.000000000 +0200
@@ -694,6 +694,8 @@
data[instance]->vcolor = 128;
data[instance]->alpha = 0;
data[instance]->dump = 0;
+ data[instance]->image = (Image *)NULL;
+ data[instance]->dumpimage = (Image *)NULL;

// filter init ok.

@@ -808,7 +810,8 @@
if (data[instance]->dumpimage != (Image *)NULL) {
DestroyImage(data[instance]->dumpimage);
DestroyImageInfo(data[instance]->dumpimage_info);
- DestroyConstitute();
+ /*DestroyConstitute();*/
+ ConstituteComponentTerminus();
}
DestroyExceptionInfo(&data[instance]->exception_info);
DestroyMagick();

transcode _unstable_ port .patch