Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 17:45:48 -0500 (EST)
From:      Hoss Firooznia <hoss@lodestone.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        amistry@am-productions.biz
Subject:   ports/61850: New port skeleton for multimedia/avidemux2 (version 2.0.20)
Message-ID:  <20040124224548.614FC30A@magnet.lodestone.org>
Resent-Message-ID: <200401242250.i0OMoEjG049538@freefall.freebsd.org>

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

>Number:         61850
>Category:       ports
>Synopsis:       New port skeleton for multimedia/avidemux2 (version 2.0.20)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 24 14:50:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hoss Firooznia
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD compass.lodestone.org 5.2-RELEASE FreeBSD 5.2-RELEASE #2: Wed Jan 14 00:22:49 EST 2004 i386
	
>Description:
   The currently-available port skeleton for multimedia/avidemux2 builds
   version 2.0.18 of the software.  This slightly modified port builds
   the latest version, 2.0.20.
>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:
#
#	avidemux2.0.20
#	avidemux2.0.20/Makefile
#	avidemux2.0.20/distinfo
#	avidemux2.0.20/pkg-descr
#	avidemux2.0.20/pkg-message
#	avidemux2.0.20/pkg-plist
#	avidemux2.0.20/files
#	avidemux2.0.20/files/patch-aa
#	avidemux2.0.20/files/patch-ab
#
echo c - avidemux2.0.20
mkdir -p avidemux2.0.20 > /dev/null 2>&1
echo x - avidemux2.0.20/Makefile
sed 's/^X//' >avidemux2.0.20/Makefile << 'END-of-avidemux2.0.20/Makefile'
X# New ports collection makefile for:    avidemux2
X# Date created:         16 April 2003
X# Whom:                 Anish Mistry
X#                       with help from mean
X#                       updated to 2.0.20 on 24 Jan 2004, <hoss@lodestone.org>
X# $FreeBSD: ports/multimedia/avidemux2/Makefile,v 1.4 2003/12/07 01:27:06 marcus Exp $
X#
X
XPORTNAME=	avidemux2
XPORTVERSION=	2.0.20
XPORTREVISION=	1
XCATEGORIES=	multimedia
XMASTER_SITES=	http://fixounet.free.fr/avidemux/
XDISTNAME=	avidemux-2.0.20
X
XMAINTAINER=	amistry@am-productions.biz
XCOMMENT=	Simple GUI based video editor
X
XLIB_DEPENDS=	mp3lame.0:${PORTSDIR}/audio/lame \
X		mad.2:${PORTSDIR}/audio/mad
XBUILD_DEPENDS=	\
X	${X11BASE}/include/X11/extensions/Xvlib.h:${PORTSDIR}/graphics/xv
X
XUSE_REINPLACE=	yes
XUSE_X_PREFIX=	yes
XUSE_LIBTOOL=	yes
XUSE_GNOME=	gnomeprefix gnomehack gtk20
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" \
X		PTHREAD_LIBS=${PTHREAD_LIBS} \
X		PTHREAD_CFLAGS=${PTHREAD_CFLAGS}
XCONFIGURE_ARGS=	--disable-warnings
XUSE_GMAKE=	yes
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/bin/mpeg2enc)
XWITH_MPEGENC=	yes
X.endif
X
X.if exists(${LOCALBASE}/lib/liba52.so.0)
XWITH_A52=	yes
X.endif
X
X.if exists(${LOCALBASE}/lib/libxvidcore.so.2)
XWITH_XVID=	yes
X.endif
X
X.if defined(WITH_MPEGENC)
XRUN_DEPENDS+=	mpeg2enc:${PORTSDIR}/multimedia/mjpegtools
X.endif
X
X.if defined(WITH_XVID)
XLIB_DEPENDS+=	xvidcore.2:${PORTSDIR}/multimedia/xvid
XCONFIGURE_ARGS+=	--with-xvid-as-decoder
X.endif
X
X.if ${MACHINE_ARCH} != "i386"
XCONFIGURE_ARGS+=	--disable-mmx
X.endif
X
X.if defined(WITH_A52)
XLIB_DEPENDS+=	a52.0:${PORTSDIR}/audio/liba52
X.endif
X
Xpre-everything::
X.if !defined(WITH_MPEGENC)
X	@${ECHO_MSG} "To enable mpeg support define WITH_MPEGENC."
X.endif
X
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 ${WRKSRC}/*/*/Makefile
Xpost-configure:
X#	@${SH} ${WRKSRC}/buildLavCodec.sh
X
X.include <bsd.port.post.mk>
END-of-avidemux2.0.20/Makefile
echo x - avidemux2.0.20/distinfo
sed 's/^X//' >avidemux2.0.20/distinfo << 'END-of-avidemux2.0.20/distinfo'
XMD5 (avidemux-2.0.20.tar.gz) = c7070e0a4b506e688d653d159cceeb31
END-of-avidemux2.0.20/distinfo
echo x - avidemux2.0.20/pkg-descr
sed 's/^X//' >avidemux2.0.20/pkg-descr << 'END-of-avidemux2.0.20/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@am-productions.biz
XAM Productions http://am-productions.biz
END-of-avidemux2.0.20/pkg-descr
echo x - avidemux2.0.20/pkg-message
sed 's/^X//' >avidemux2.0.20/pkg-message << 'END-of-avidemux2.0.20/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.0.20/pkg-message
echo x - avidemux2.0.20/pkg-plist
sed 's/^X//' >avidemux2.0.20/pkg-plist << 'END-of-avidemux2.0.20/pkg-plist'
Xbin/avidemux2
END-of-avidemux2.0.20/pkg-plist
echo c - avidemux2.0.20/files
mkdir -p avidemux2.0.20/files > /dev/null 2>&1
echo x - avidemux2.0.20/files/patch-aa
sed 's/^X//' >avidemux2.0.20/files/patch-aa << 'END-of-avidemux2.0.20/files/patch-aa'
X--- adm_lavcodec/config.h.orig  Sat Jan 24 16:50:22 2004
X+++ adm_lavcodec/config.h       Sat Jan 24 16:50:38 2004
X@@ -12,8 +12,8 @@
X */
X #define CONFIG_ZLIB 1
X 
X-#define HAVE_MALLOC_H 1
X /*
X+#define HAVE_MALLOC_H 1
X #define HAVE_MEMALIGN 1
X */
X #define SIMPLE_IDCT 1
END-of-avidemux2.0.20/files/patch-aa
echo x - avidemux2.0.20/files/patch-ab
sed 's/^X//' >avidemux2.0.20/files/patch-ab << 'END-of-avidemux2.0.20/files/patch-ab'
X--- configure.orig	Sat Jan 24 17:06:07 2004
X+++ configure	Sat Jan 24 17:06:21 2004
X@@ -22770,10 +22770,6 @@
X _ACEOF
X 
X 
X-cat >>confdefs.h <<\_ACEOF
X-#define EMULATE_FAST_INT 1
X-_ACEOF
X-
X 		echo "BSD uses lrintf"
X 
X else
END-of-avidemux2.0.20/files/patch-ab
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



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