summaryrefslogtreecommitdiff
path: root/multimedia/avidemux/Makefile
blob: e8cf2d1b4d215978ffaf90394f58e163dfe5446f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    avidemux
# Date created:         15 August 2002
# Whom:                 Anish Mistry
#                       with help from mean
# $FreeBSD$
#

PORTNAME=	avidemux
PORTVERSION=	0.9.0.16
CATEGORIES=	graphics
MASTER_SITES=	http://fixounet.free.fr/avidemux/
DISTNAME=	avidemux-0.9pre16_gtkfix
EXTRACT_SUFX=	.tgz

MAINTAINER=	amistry@am-productions.biz
COMMENT=	GUI based AVI (DivX) editor

LIB_DEPENDS=	xvidcore.0:${PORTSDIR}/graphics/xvid \
		mp3lame.0:${PORTSDIR}/audio/lame \
		mad.1:${PORTSDIR}/audio/mad
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" \
		LIBFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS=	--with-xvid-as-decoder --disable-warnings
USE_GMAKE=	yes

post-patch:
	@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>