summaryrefslogtreecommitdiff
path: root/sysutils/xvidcap/Makefile
blob: 5a21d79a829d793006a893124bec82cb88a838fa (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
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	xvidcap
# Date created:		Sat 24 April 2004
# Whom:			thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=		xvidcap
PORTVERSION=		1.1.3
PORTREVISION=		2
CATEGORIES=		sysutils multimedia
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=		thierry@FreeBSD.org
COMMENT=		Capture your X display to individual frames or MPEG video

LIB_DEPENDS=		avcodec.0:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS=		animate:${PORTSDIR}/graphics/ImageMagick

GNU_CONFIGURE=		yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=		CFLAGS="${CFLAGS} -I${LOCALBASE}/include"	\
			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_GETOPT_LONG=	yes
USE_REINPLACE=		yes

PLIST_FILES=		bin/xvidcap

PORTDOCS=		AUTHORS ChangeLog INSTALL NEWS README TODO XVidcap.ad
DOC_HOOK=		$$(MAKE) $$(AM_MAKEFLAGS) install-data-hook

MAN1=			xvidcap.1

.if !defined(WITHOUT_GTK)
USE_GNOME=		gtk20
CONFIGURE_ARGS+=	--with-gtk2
PLIST_SUB+=		GTK=""
PLIST_FILES+=		bin/gvidcap
MAN1+=			gvidcap.1
.else
PLIST_SUB+=		GTK="@comment "
.endif

pre-configure:
	@${REINPLACE_CMD} -e 's|@PTHREAD_LIBS@|${PTHREAD_LIBS}|'	\
		 -e 's|@PTHREAD_CFLAGS@|${PTHREAD_CFLAGS}|'		\
			${WRKSRC}/src/Makefile.in
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's|${DOC_HOOK}|#${DOC_HOOK}|'		\
			${WRKSRC}/src/Makefile.in
.endif

.include <bsd.port.mk>