Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Apr 2002 04:48:58 -0700 (PDT)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/37138: maintainer update: graphics/transcode to 0.6.0pre4
Message-ID:  <200204161148.g3GBmwL55984@freefall.freebsd.org>

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

>Number:         37138
>Category:       ports
>Synopsis:       maintainer update: graphics/transcode to 0.6.0pre4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 16 04:50:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        5.0 current x86
>Organization:
>Environment:
FreeBSD deimos.raisdorf.net 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Sun Mar 17 19:26:49 EST 2002     hscholz@deimos.raisdorf.net:/usr/src/sys/i386/compile/DEIMOS5  i386

>Description:
This patch updates the graphics/transcode port from 0.6.0pre1 to 0.6.0pre4.
It supercedes ports/36936.

Thanks to Michael Nottebrock for most of the work.

Before committing, ports/36769 (xvid) and ports/36758 (liba52) need to be applied.

This patch can be downloaded here:
http://www.raisdorf.net/files/FreeBSD/transcode-0.6.0pre4.shar
>How-To-Repeat:
      
>Fix:
# 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:
#
#   transcode
#   transcode/files
#   transcode/files/patch-aa
#   transcode/files/patch-ab
#   transcode/Makefile
#   transcode/distinfo
#   transcode/pkg-comment
#   transcode/pkg-descr
#   transcode/pkg-plist
#
echo c - transcode
mkdir -p transcode > /dev/null 2>&1
echo c - transcode/files
mkdir -p transcode/files > /dev/null 2>&1
echo x - transcode/files/patch-aa
sed 's/^X//' >transcode/files/patch-aa << 'END-of-transcode/files/patch-aa'
X--- filter/preview/display.h.old   Wed Mar 27 15:36:43 2002
X+++ filter/preview/display.h   Wed Mar 27 15:37:00 2002
X@@ -39,8 +39,8 @@
X #endif // HAVE_LIBXV
X
X #if HAVE_SDL
X-#include <SDL/SDL.h>
X-#include <SDL/SDL_syswm.h>
X+#include <SDL.h>
X+#include <SDL_syswm.h>
X #endif // HAVE_SDL
X
X #if HAVE_GTK
END-of-transcode/files/patch-aa
echo x - transcode/files/patch-ab
sed 's/^X//' >transcode/files/patch-ab << 'END-of-transcode/files/patch-ab'
X--- avilib/avidump.c.old   Wed Mar 27 16:26:20 2002
X+++ avilib/avidump.c   Wed Mar 27 16:27:15 2002
X@@ -397,10 +397,10 @@
X   printf("  *****  Error: Data would be behind end of file!\n");
X     }
X
X-    tt=lseek64(fd, filepos, SEEK_SET); /* Go to desired file position!     */
X+    tt=lseek(fd, filepos, SEEK_SET); /* Go to desired file position!     */
X
X #ifdef AVI_DEBUG
X-    printf("lseek64=%Lu/%Lu (%Lu)\n", tt, filepos, filesize);
X+    printf("lseek=%Lu/%Lu (%Lu)\n", tt, filepos, filesize);
X #endif
X
X     if (!ReadChunkHead(fd, &chunkid, chunksize)) {  /* read chunk header */
X@@ -546,7 +546,7 @@
X     if (filepos>filesize-1)  /* Oops. Must be something wrong!      */
X   return(FALSE);
X
X-    lseek64(fd, filepos, SEEK_SET);
X+    lseek(fd, filepos, SEEK_SET);
X
X     if (!ReadChunkHead(fd, &chunkid,chunksize)) {  /* read chunk header */
X       return(FALSE);
X@@ -667,8 +667,8 @@
X   return(1);
X     }
X
X-    filesize = lseek64(fd, 0, SEEK_END);
X-    lseek64(fd, 0, SEEK_SET);
X+    filesize = lseek(fd, 0, SEEK_END);
X+    lseek(fd, 0, SEEK_SET);
X
X     printf("Contents of file %s (%s/", file_name,
X      off_t_to_char(filesize,10,1));
X@@ -698,8 +698,8 @@
X
X     if (!(fd=open(file_name,O_RDONLY))) return(1);
X
X-    filesize = lseek64(fd, 0, SEEK_END);
X-    lseek64(fd, 0, SEEK_SET);
X+    filesize = lseek(fd, 0, SEEK_END);
X+    lseek(fd, 0, SEEK_SET);
X
X     for (filepos = 0; filepos < filesize;) {
X   chunksize = 0;
END-of-transcode/files/patch-ab
echo x - transcode/Makefile
sed 's/^X//' >transcode/Makefile << 'END-of-transcode/Makefile'
X# New ports collection makefile for:   transcode
X# Date created:    17 December 2001
X# Whom:        Hendrik Scholz <hendrik@scholz.net> et al
X#
X# $FreeBSD$
X#
X
XPORTNAME=  transcode
XPORTVERSION=   0.6.0
XPORTREVISION=  4
XCATEGORIES=    graphics
XMASTER_SITES=  http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/pre/
XDISTNAME=  ${PORTNAME}-${PORTVERSION}pre4
XEXTRACT_SUFX=  .tgz
X
XMAINTAINER=    hendrik@scholz.net
X
XLIB_DEPENDS+=  gnugetopt:${PORTSDIR}/devel/libgnugetopt \
X       dvdread:${PORTSDIR}/graphics/libdvdread
X
XUSE_XLIB=  yes
XUSE_GLIB=  yes
XUSE_GMAKE= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ENV= CFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
X       LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgnugetopt" \
X       SDL_CONFIG="${LOCALBASE}/bin/sdl11-config"
X
XMAN1=  transcode.1 tccat.1 avisplit.1 avimerge.1 avifix.1
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/bin/Magick-config)
XWITH_IMAGEMAGICK=  yes
X.endif
X
X.if exists(${LOCALBASE}/bin/nasm)
XWITH_NASM= yes
X.endif
X
X.if exists(${LOCALBASE}/bin/avifile-config)
XWITH_AVIFILE=  yes
X.endif
X
X.if exists(${LOCALBASE}/bin/sdl11-config)
XWITH_SDL=  yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libxml2.so)
XWITH_LIBXML2=  yes
X.endif
X
X.if exists(${LOCALBASE}/bin/ffmpeg)
XWITH_FFMPEG=   yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libdv.so)
XWITH_LIBDV=    yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libopenquicktime.so)
XWITH_OPENQUICKTIME=    yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libmpeg2.so)
XWITH_LIBMPEG2= yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libfame.so)
XWITH_LIBFAME=  yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libxvidcore.so)
XWITH_XVID= yes
X.endif
X
X.if exists(${LOCALBASE}/lib/liba52.so)
XWITH_LIBA52=   yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libmp3lame.so)
XWITH_LAME= yes
X.endif
X
X.if defined(WITH_IMAGEMAGICK)
XBUILD_DEPENDS+=    ${LOCALBASE}/bin/Magick-config:${PORTSDIR}/graphics/ImageMagick
XPLIST_SUB+=    WITH_IMAGEMAGICK=""
X.else
XCONFIGURE_ARGS+=--with-magick-mods=no
XPLIST_SUB+=    WITH_IMAGEMAGICK="@comment "
X.endif
X
X.if defined(WITH_NASM)
XBUILD_DEPENDS+=    ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
XONLY_FOR_ARCHS=    i386
X.endif
X
X.if defined(WITH_AVIFILE)
XBUILD_DEPENDS+=    ${LOCALBASE}/bin/avifile-config:${PORTSDIR}/graphics/avifile
XPLIST_SUB+=    WITH_AVIFILE=""
X.else
XCONFIGURE_ARGS+=--with-avifile-mods=no \
X       --enable-avifile6=no
XPLIST_SUB+=    WITH_AVIFILE="@comment "
XWITHOUT_FFMPEG=    YES
X.endif
X
X.if defined(WITH_SDL)
XBUILD_DEPENDS+=    ${LOCALBASE}/bin/sdl11-config:${PORTSDIR}/devel/sdl12
XPLIST_SUB+=    WITH_SDL=""
X.else
XPLIST_SUB+=    WITH_SDL="@comment "
X.endif
X
X.if defined(WITH_LIBXML2)
XLIB_DEPENDS+=  xml2:${PORTSDIR}/textproc/libxml2
XPLIST_SUB+=    WITH_LIBXML2=""
X.else
XPLIST_SUB+=    WITH_LIBXML2="@comment "
X.endif
X
X.if defined(WITH_FFMPEG)
XBUILD_DEPENDS+= ${LOCALBASE}/bin/ffmpeg:${PORTSDIR}/graphics/ffmpeg
XPLIST_SUB+=    WITH_FFMPEG=""
X.else
XPLIST_SUB+=    WITH_FFMPEG="@comment "
X.endif
X
X.if defined(WITH_LIBDV)
XLIB_DEPENDS+=  dv:${PORTSDIR}/graphics/libdv
XPLIST_SUB+=    WITH_LIBDV=""
X.else
XCONFIGURE_ARGS+=--with-dv=no
XPLIST_SUB+=    WITH_LIBDV="@comment "
X.endif
X
X.if defined(WITH_OPENQUICKTIME)
XLIB_DEPENDS+=  openquicktime:${PORTSDIR}/graphics/openquicktime
X.else
XCONFIGURE_ARGS+=--with-openqt=no
X.endif
X
X.if defined(WITH_LIBMPEG2)
XLIB_DEPENDS+=  mpeg2:${PORTSDIR}/graphics/libmpeg2
X.endif
X.if defined(WITH_FAME)
XLIB_DEPENDS+=  fame:${PORTSDIR}/graphics/libfame
X.endif
X
X.if defined(WITH_XVID)
XLIB_DEPENDS+=  xvidcore:${PORTSDIR}/graphics/xvid
XPLIST_SUB+=    WITH_XVID=""
XWITH_NASM= YES
X.else
XPLIST_SUB+=    WITH_XVID="@comment "
X.endif
X
X.if defined(WITH_LIBA52)
XLIB_DEPENDS+=  a52:${PORTSDIR}/audio/liba52
XCONFIGURE_ARGS+=--enable-liba52=yes
XPLIST_SUB+=    WITH_LIBA52=""
X.else
XCONFIGURE_ARGS+=--with-a52=no \
X       --enable-liba52=no
XPLIST_SUB+=    WITH_LIBA52="@comment "
X.endif
X
X.if defined(WITH_LAME)
XLIB_DEPENDS+=  mp3lame:${PORTSDIR}/audio/lame
XPLIST_SUB+=    WITH_LAME=""
X.else
XCONFIGURE_ARGS+=--with-lame=no
XPLIST_SUB+=    WITH_LAME="@comment "
X.endif
X
Xpre-everything:
X
X.if !defined(WITH_IMAGEMAGICK)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable ImageMagick-dependent modules by defining"
X   @${ECHO_MSG} "WITH_IMAGEMAGICK."
X.endif
X
X.if !defined(WITH_SDL)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable SDL-dependent modules by defining WITH_SDL."
X   @${ECHO_MSG} "This will enable realtime-previewing."
X.endif
X.if !defined(WITH_LIBXML2)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable libxml2-dependent modules by defining WITH_LIBXML2."
X.endif
X.if !defined(WITH_FFMPEG)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable ffmpeg-dependent modules by defining WITH_FFMPEG."
X.endif
X.if !defined(WITH_LAME)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable lame-dependent modules by defining WITH_LAME."
X   @${ECHO_MSG} "You will probably want to enable this, if you plan to"
X   @${ECHO_MSG} "rip DVDs or dub videos".
X.endif
X.if !defined(WITH_LIBDV)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable libdv-support by defining WITH_LIBDV."
X   @${ECHO_MSG} "You will probably want to enable this, if you plan to"
X   @${ECHO_MSG} "transcode DV data from a digital videocamera."
X.endif
X.if !defined(WITH_LIBA52)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable liba52-support by defining WITH_LIBA52."
X   @${ECHO_MSG} "You will probably want to enable this, if you plan to"
X   @${ECHO_MSG} "rip DVDs."
X.endif
X.if defined(WITH_AVIFILE)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable avifile-dependent modules by defining WITH_AVIFILE."
X.endif(WITH_AVIFILE)
X.if !defined(WITH_NASM)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable nasm dependent modules by defining WITH_NASM. This turns this into an i386-only port."
X.endif(WITH_NASM)
X.if !defined(WITH_OPENQUICKTIME)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable openquicktime-dependent modules by defining WITH_OPENQUICKTIME."
X.endif
X.if !defined(WITH_FAME)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable libfame-support by defining WITH_LIBFAME."
X.endif
X.if !defined(WITH_LIBMPEG2)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable libmpeg2-dependent modules by defining WITH_LIBMPEG2."
X   @${ECHO_MSG} "You will probably want to enable this, if you plan to"
X   @${ECHO_MSG} "rip DVDs."
X.endif
X.if !defined(WITH_XVID)
X   @${ECHO_MSG}
X   @${ECHO_MSG} "You can enable xvid support by defining WITH_XVID. This implies WITH_NASM and turns this into an i386-only port."
X   @${ECHO_MSG} "You will probably want to enable this, if you plan to"
X   @${ECHO_MSG} "rip DVDs."
X.endif
X
Xpre-patch:
X   ${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
X   ${PERL} -pi -e 's|-ldl||g' ${WRKSRC}/configure
X.if ${OSVERSION} <= 500027
X   ${FIND} ${WRKDIR} -type f | ${XARGS} -n 10 -x ${PERL} -pi -e \
X   's|<stdint.h>|<inttypes.h>|'
X.endif
X
Xpost-install:
X.if defined(WITH_XVID)
X   ${LN} -s ${PREFIX}/lib/libxvidcore.so ${PREFIX}/lib/transcode/libxvidcore.so
X.endif
X
X.include <bsd.port.post.mk>
END-of-transcode/Makefile
echo x - transcode/distinfo
sed 's/^X//' >transcode/distinfo << 'END-of-transcode/distinfo'
XMD5 (transcode-0.6.0pre4.tgz) = c0f9fdf944ed17312f224d3e5ac7d2b1
END-of-transcode/distinfo
echo x - transcode/pkg-comment
sed 's/^X//' >transcode/pkg-comment << 'END-of-transcode/pkg-comment'
XTranscode is a text-console utility for video stream processing
END-of-transcode/pkg-comment
echo x - transcode/pkg-descr
sed 's/^X//' >transcode/pkg-descr << 'END-of-transcode/pkg-descr'
Xtranscode is a text-console utility for video stream processing, running on a
Xplatform that supports shared libraries and threads.  Decoding and encoding is
Xdone by loading modules that are responsible for feeding transcode with raw
Xvideo/audio streams (import modules) and encoding the frames (export
Xmodules).
X
XIt supports elementary video and audio frame transformations,
Xincluding de-interlacing or fast resizing of video frames and loading of
Xexternal filters.  A number of modules are included to enable import of DVDs
Xon-the-fly, MPEG elementary (ES) or program streams (VOB), MPEG video, Digital
XVideo (DV), YUV4MPEG streams, NuppelVideo file format and raw or compressed
X(pass-through) video frames and export modules for writing DivX;-), OpenDivX,
XDivX 4.xx or uncompressed AVI files with MPEG, AC3 (pass-through) or PCM
Xaudio.  Additional export modules to write single frames (PPM) or YUV4MPEG
Xstreams are available, as well as an interface import module to the avifile
Xlibrary.  It's modular concept is intended to provide flexibility and easy
Xuser extensibility to include other video/audio codecs or filetypes.
X
X
XWWW: http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode
END-of-transcode/pkg-descr
echo x - transcode/pkg-plist
sed 's/^X//' >transcode/pkg-plist << 'END-of-transcode/pkg-plist'
Xbin/tcmplex
Xbin/tcextract
Xbin/tcdecode
Xbin/tcscan
Xbin/tcdemux
Xbin/tccat
Xbin/tcprobe
Xbin/avimerge
Xbin/avisplit
Xbin/avifix
Xbin/avisync
Xbin/transcode
Xlib/transcode/import_nuv.so
Xlib/transcode/import_nuv.la
X%%WITH_AVIFILE%%lib/transcode/import_af6.so
X%%WITH_AVIFILE%%lib/transcode/import_af6.la
Xlib/transcode/import_net.so
Xlib/transcode/import_net.la
Xlib/transcode/import_avi.so
Xlib/transcode/import_avi.la
Xlib/transcode/import_mpeg2.so
Xlib/transcode/import_mpeg2.la
Xlib/transcode/import_vdrac3.so
Xlib/transcode/import_vdrac3.la
Xlib/transcode/import_ac3.so
Xlib/transcode/import_ac3.la
Xlib/transcode/import_dv.so
Xlib/transcode/import_dv.la
Xlib/transcode/import_vob.so
Xlib/transcode/import_vob.la
Xlib/transcode/import_raw.so
Xlib/transcode/import_raw.la
Xlib/transcode/import_yuv4mpeg.so
Xlib/transcode/import_yuv4mpeg.la
Xlib/transcode/import_lav.so
Xlib/transcode/import_lav.la
Xlib/transcode/import_null.so
Xlib/transcode/import_null.la
Xlib/transcode/import_divx.so
Xlib/transcode/import_divx.la
X%%WITH_LIBA52%%lib/transcode/a52_decore.so
X%%WITH_LIBA52%%lib/transcode/a52_decore.la
X%%WITH_LAME%%lib/transcode/import_mp3.so
X%%WITH_LAME%%lib/transcode/import_mp3.la
Xlib/transcode/import_dvd.so
Xlib/transcode/import_dvd.la
X%%WITH_IMAGEMAGICK%%lib/transcode/import_im.so
X%%WITH_IMAGEMAGICK%%lib/transcode/import_im.la
X%%WITH_IMAGEMAGICK%%lib/transcode/import_imlist.so
X%%WITH_IMAGEMAGICK%%lib/transcode/import_imlist.la
Xlib/transcode/import_mjpeg.so
Xlib/transcode/import_mjpeg.la
Xlib/transcode/af6_decore.so
Xlib/transcode/af6_decore.la
X%%WITH_LIBXML2%%lib/transcode/import_xml.so
X%%WITH_LIBXML2%%lib/transcode/import_xml.la
Xlib/transcode/filter_null.so
Xlib/transcode/filter_null.la
Xlib/transcode/filter_32detect.so
Xlib/transcode/filter_32detect.la
Xlib/transcode/filter_yuy2toyv12.so
Xlib/transcode/filter_yuy2toyv12.la
Xlib/transcode/filter_skip.so
Xlib/transcode/filter_skip.la
Xlib/transcode/filter_astat.so
Xlib/transcode/filter_astat.la
Xlib/transcode/filter_cut.so
Xlib/transcode/filter_cut.la
Xlib/transcode/filter_dnr.so
Xlib/transcode/filter_dnr.la
Xlib/transcode/filter_xsharpen.so
Xlib/transcode/filter_xsharpen.la
Xlib/transcode/filter_smartdeinter.so
Xlib/transcode/filter_smartdeinter.la
Xlib/transcode/filter_testframe.so
Xlib/transcode/filter_testframe.la
Xlib/transcode/filter_dilyuvmmx.so
Xlib/transcode/filter_dilyuvmmx.la
Xlib/transcode/filter_divxkey.so
Xlib/transcode/filter_divxkey.la
Xlib/transcode/filter_extsub.so
Xlib/transcode/filter_extsub.la
Xlib/transcode/filter_resample.so
Xlib/transcode/filter_resample.la
Xlib/transcode/filter_test.so
Xlib/transcode/filter_test.la
Xlib/transcode/filter_subtitler.so
Xlib/transcode/filter_subtitler.la
Xlib/transcode/export_null.so
Xlib/transcode/export_null.la
Xlib/transcode/export_wav.so
Xlib/transcode/export_wav.la
X%%WITH_AVIFILE%%lib/transcode/export_af6.so
X%%WITH_AVIFILE%%lib/transcode/export_af6.la
Xlib/transcode/export_opendivx.so
Xlib/transcode/export_opendivx.la
Xlib/transcode/export_raw.so
Xlib/transcode/export_raw.la
Xlib/transcode/export_divx4.so
Xlib/transcode/export_divx4.la
Xlib/transcode/export_divx4raw.so
Xlib/transcode/export_divx4raw.la
Xlib/transcode/export_ppm.so
Xlib/transcode/export_ppm.la
Xlib/transcode/export_xvid.so
Xlib/transcode/export_xvid.la
Xlib/transcode/export_xvidcvs.so
Xlib/transcode/export_xvidcvs.la
Xlib/transcode/export_net.so
Xlib/transcode/export_net.la
X%%WITH_LIBDV%%lib/transcode/export_dvraw.so
X%%WITH_LIBDV%%lib/transcode/export_dvraw.la
X%%WITH_LIBDV%%lib/transcode/export_dv.so
X%%WITH_LIBDV%%lib/transcode/export_dv.la
Xlib/transcode/export_mpeg.so
Xlib/transcode/export_mpeg.la
X%%WITH_IMAGEMAGICK%%lib/transcode/export_im.so
X%%WITH_IMAGEMAGICK%%lib/transcode/export_im.la
Xlib/transcode/export_af6.conf
X%%WITH_XVID%%lib/transcode/libxvidcore.so
X@dirrm lib/transcode
X
END-of-transcode/pkg-plist
exit

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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