Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2003 13:57:15 -0500 (EST)
From:      Anish Mistry <amistry@am-productions.biz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46760: maintainer update: graphics/avidemux to 0.9pre28
Message-ID:  <200301041857.h04IvFv1058614@www.am-productions.biz>

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

>Number:         46760
>Category:       ports
>Synopsis:       maintainer update: graphics/avidemux to 0.9pre28
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 10:50:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Anish Mistry
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
AM Productions
>Environment:
System: FreeBSD bigguy.am-productions.biz 4.7-STABLE FreeBSD 4.7-STABLE #25: Wed Jan 1 19:58:20 EST 2003 amistry@bigguy.am-productions.biz:/usr/src/sys/compile/BIGGUY i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- avidemux-0.9pre28.patch begins here ---
diff -ruN avidemux.orig/Makefile avidemux/Makefile
--- avidemux.orig/Makefile	Sun Dec  1 02:43:56 2002
+++ avidemux/Makefile	Sat Jan  4 12:52:17 2003
@@ -2,39 +2,67 @@
 # Date created:         15 August 2002
 # Whom:                 Anish Mistry
 #                       with help from mean
-# $FreeBSD: ports/graphics/avidemux/Makefile,v 1.7 2002/12/01 07:43:56 lioux Exp $
+# $FreeBSD: ports/graphics/avidemux/Makefile,v 1.5 2002/11/12 11:50:43 arved Exp $
 #
 
 PORTNAME=	avidemux
-PORTVERSION=	0.9.0.16
-CATEGORIES=	graphics
+PORTVERSION=	0.9.0.28
+CATEGORIES=	graphics multimedia
 MASTER_SITES=	http://fixounet.free.fr/avidemux/
-DISTNAME=	avidemux-0.9pre16_gtkfix
+DISTNAME=	avidemux-0.9pre28
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	amistry@am-productions.biz
 
-LIB_DEPENDS=	xvidcore.0:${PORTSDIR}/graphics/xvid \
-		mp3lame.0:${PORTSDIR}/audio/lame \
-		mad.1:${PORTSDIR}/audio/mad
+LIB_DEPENDS=	mp3lame.0:${PORTSDIR}/audio/lame \
+		mad.1:${PORTSDIR}/audio/mad \
+		freetype.9:${PORTSDIR}/print/freetype2
 BUILD_DEPENDS=	\
-	${LINUXBASE}/usr/include/divx/decore.h:${PORTSDIR}/multimedia/linux-divx4linux \
 	${X11BASE}/include/X11/extensions/Xvlib.h:${PORTSDIR}/graphics/xv
 
-WRKSRC=		${WRKDIR}/avidemux-0.9pre16
 USE_REINPLACE=	yes
 USE_X_PREFIX=	yes
 USE_GNOMENG=	yes
 USE_GNOME=	gtk12
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
-		-I${LINUXBASE}/usr/include/divx" \
+		-I${LOCALASE}/include/ffmpeg \
+		-I${LOCALBASE}/include/a52dec" \
 		LIBFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
 		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
-CONFIGURE_ARGS=	--with-xvid-as-decoder --disable-warnings
+CONFIGURE_ARGS=	--disable-warnings
 USE_GMAKE=	yes
 
+.if exists(${LOCALBASE}/lib/liba52.so.0)
+WITH_A52=	yes
+.endif
+
+.if exists(${LOCALBASE}/lib/xvidcore.so.0)
+WITH_XVID=	yes
+.endif
+
+.if defined(WITH_XVID)
+LIB_DEPENDS+=	xvidcore.0:${PORTSDIR}/graphics/xvid
+CONFIGURE_ARGS+=	--with-xvid-as-decoder
+.endif
+
+.if defined(WITH_A52)
+LIB_DEPENDS+=	a52.0:${PORTSDIR}/audio/liba52
+.endif
+
+pre-everything::
+.if !defined(WITH_XVID)
+	@${ECHO_MSG} "To enable xvid as the decoder define WITH_XVID."
+.endif
+
+.if !defined(WITH_A52)
+	@${ECHO_MSG} "To enable A/52 support define WITH_A52."
+.endif
+
 post-patch:
+	@${TOUCH} ${WRKSRC}/*
 	@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+post-configure:
+	@${SH} ${WRKSRC}/buildLavCodec.sh
 
 .include <bsd.port.mk>
diff -ruN avidemux.orig/distinfo avidemux/distinfo
--- avidemux.orig/distinfo	Tue Nov 12 06:50:43 2002
+++ avidemux/distinfo	Sat Jan  4 13:15:22 2003
@@ -1 +1 @@
-MD5 (avidemux-0.9pre16_gtkfix.tgz) = 24bce8b1cca8981c3b6d95c19b6353d1
+MD5 (avidemux-0.9pre28.tgz) = 83a5e97960359a59f10c077498343369
diff -ruN avidemux.orig/files/patch-ab avidemux/files/patch-ab
--- avidemux.orig/files/patch-ab	Wed Dec 31 19:00:00 1969
+++ avidemux/files/patch-ab	Tue Oct 23 18:15:31 2001
@@ -0,0 +1,11 @@
+--- adm_lavcodec/mem.c.orig	Tue Oct 23 18:13:45 2001
++++ adm_lavcodec/mem.c	Tue Oct 23 18:14:22 2001
+@@ -21,6 +21,8 @@
+ #include <malloc.h>
+ #endif
+ 
++#define memalign(A,B)  malloc(B)
++
+ /* you can redefine av_malloc and av_free in your project to use your
+    memory allocator. You do not need to suppress this file because the
+    linker will do it automatically */
diff -ruN avidemux.orig/files/patch-ac avidemux/files/patch-ac
--- avidemux.orig/files/patch-ac	Wed Dec 31 19:00:00 1969
+++ avidemux/files/patch-ac	Fri Dec 13 19:14:47 2002
@@ -0,0 +1,11 @@
+--- adm_lavcodec/dsputil.h.orig	Fri Dec 13 19:13:01 2002
++++ adm_lavcodec/dsputil.h	Fri Dec 13 19:14:06 2002
+@@ -22,6 +22,8 @@
+ #include "common.h"
+ #include "avcodec.h"
+ 
++#define lrintf rintf
++
+ //#define DEBUG
+ /* dct code */
+ typedef short DCTELEM;
diff -ruN avidemux.orig/files/patch-ad avidemux/files/patch-ad
--- avidemux.orig/files/patch-ad	Wed Dec 31 19:00:00 1969
+++ avidemux/files/patch-ad	Fri Dec 13 19:28:02 2002
@@ -0,0 +1,11 @@
+--- buildLavCodec.sh.orig	Fri Dec 13 19:26:07 2002
++++ buildLavCodec.sh	Fri Dec 13 19:27:26 2002
+@@ -8,7 +8,7 @@
+ if [ -x libavcodec.a ]; then
+ cd .. && exit 0;
+ fi
+- make
++ gmake # freebsd users need to GNU toolchain :(
+  cd ..
+ 
+ 
--- avidemux-0.9pre28.patch ends here ---


>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?200301041857.h04IvFv1058614>