ports/51013: New Port: avidemux2
Anish Mistry
amistry at am-productions.biz
Wed Apr 16 04:40:06 UTC 2003
>Number: 51013
>Category: ports
>Synopsis: New Port: avidemux2
>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: Tue Apr 15 21:40:04 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Anish Mistry
>Release: FreeBSD 4.8-RELEASE
>Organization:
>Environment:
System: bigguy.am-productions.biz 4.8-RELEASE FreeBSD 4.8-RELEASE #3: Fri Apr 11 18:28:02 EDT 2003 root at bigguy.am-productions.biz:/usr/obj/usr/src/sys/BIGGUY i386
>Description:
New port of avidemux2
>How-To-Repeat:
>Fix:
--- avidemux2.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:
#
# avidemux2
# avidemux2/files
# avidemux2/files/patch-ab
# avidemux2/pkg-plist
# avidemux2/Makefile
# avidemux2/pkg-descr
# avidemux2/pkg-message
# avidemux2/distinfo
# avidemux2/pkg-comment
#
echo c - avidemux2
mkdir -p avidemux2 > /dev/null 2>&1
echo c - avidemux2/files
mkdir -p avidemux2/files > /dev/null 2>&1
echo x - avidemux2/files/patch-ab
sed 's/^X//' >avidemux2/files/patch-ab << 'END-of-avidemux2/files/patch-ab'
X--- adm_lavcodec/wmadec.c.orig Fri Apr 4 12:26:35 2003
X+++ adm_lavcodec/wmadec.c Sun Apr 6 10:39:26 2003
X@@ -25,6 +25,9 @@
X #include "avcodec.h"
X #include "dsputil.h"
X
X+#ifdef __FreeBSD__
X+ #define lrintf(val) rintf(val)
X+#endif
X //#define DEBUG_PARAMS
X //#define DEBUG_TRACE
X
END-of-avidemux2/files/patch-ab
echo x - avidemux2/pkg-plist
sed 's/^X//' >avidemux2/pkg-plist << 'END-of-avidemux2/pkg-plist'
Xbin/avidemux2
END-of-avidemux2/pkg-plist
echo x - avidemux2/Makefile
sed 's/^X//' >avidemux2/Makefile << 'END-of-avidemux2/Makefile'
X# New ports collection makefile for: avidemux2
X# Date created: 16 April 2003
X# Whom: Anish Mistry
X# with help from mean
X# $FreeBSD$
X#
X
XPORTNAME= avidemux2
XPORTVERSION= 2.0.0.0.6
XCATEGORIES= multimedia
XMASTER_SITES= http://fixounet.free.fr/avidemux/
XDISTNAME= preview6
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= amistry at am-productions.biz
XCOMMENT= Simple GUI based video editor
X
XLIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
X mad.1:${PORTSDIR}/audio/mad \
X freetype.9:${PORTSDIR}/print/freetype2 \
X gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
XBUILD_DEPENDS= \
X ${X11BASE}/include/X11/extensions/Xvlib.h:${PORTSDIR}/graphics/xv
X
XUSE_REINPLACE= yes
XUSE_X_PREFIX= yes
XUSE_LIBTOOL= yes
XUSE_GNOMENG= yes
XUSE_GNOME= gnomeprefix gnomehack gtk20
XUSE_GLIB= yes
XGNU_CONFIGURE= yes
XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
X -I${LOCALBASE}/include/ffmpeg \
X -I${LOCALBASE}/include/a52dec" \
X LIBFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
X LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
XCONFIGURE_ARGS= --disable-warnings
XUSE_GMAKE= yes
X
X.if exists(${LOCALBASE}/lib/liba52.so.0)
XWITH_A52= yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libxvidcore.so.0)
XWITH_XVID= yes
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_XVID)
XLIB_DEPENDS+= xvidcore.0:${PORTSDIR}/multimedia/xvid
XCONFIGURE_ARGS+= --with-xvid-as-decoder
X.endif
X
X.if defined(WITH_A52)
XLIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52
X.endif
X
Xpre-everything::
X.if !defined(WITH_XVID)
X @${ECHO_MSG} "To enable xvid as the decoder define WITH_XVID."
X.endif
X
X.if !defined(WITH_A52)
X @${ECHO_MSG} "To enable A/52 support define WITH_A52."
X.endif
X
Xpost-patch:
X @${TOUCH} ${WRKSRC}/*
X @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
Xpost-configure:
X @${SH} ${WRKSRC}/buildLavCodec.sh
X
X.include <bsd.port.post.mk>
END-of-avidemux2/Makefile
echo x - avidemux2/pkg-descr
sed 's/^X//' >avidemux2/pkg-descr << 'END-of-avidemux2/pkg-descr'
XAn simple video editor that is built around Xvid and ffmpeg. Contains
Xvarious filters for deinterlacing, cropping, resizing, etc. Allows for
Xcutting without re-encoding. Has the ability to re-encode and re-sample.
X
XWWW: http://fixounet.free.fr/avidemux/
X
X- Anish Mistry
Xamistry at am-productions.biz
XAM Productions http://am-productions.biz
END-of-avidemux2/pkg-descr
echo x - avidemux2/pkg-message
sed 's/^X//' >avidemux2/pkg-message << 'END-of-avidemux2/pkg-message'
XRemove any encore2.h, encore.h, and decore.h that you may have moved to the
X${PREFIX}/include directory since it may cause the built program to crash
Xwhen opening a file.
END-of-avidemux2/pkg-message
echo x - avidemux2/distinfo
sed 's/^X//' >avidemux2/distinfo << 'END-of-avidemux2/distinfo'
XMD5 (preview6.tgz) = fa30073d2e1a6cca8420ca0ecd55a9a0
END-of-avidemux2/distinfo
echo x - avidemux2/pkg-comment
sed 's/^X//' >avidemux2/pkg-comment << 'END-of-avidemux2/pkg-comment'
XSimple GUI based video editor
END-of-avidemux2/pkg-comment
exit
--- avidemux2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list