aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/xvidcap/Makefile
blob: 5beab0909503f2613ecab8bbcf0a71b32b82c736 (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
55
56
57
58
# New ports collection makefile for:    xvidcap
# Date created:     Sat 24 April 2004
# Whom:         thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=       xvidcap
PORTVERSION=        1.1.3.7
PORTREVISION=       3
CATEGORIES=     sysutils multimedia
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=       ${PORTNAME}-${PORTVERSION:C/.7/-p7/}

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

#LIB_DEPENDS=       avcodec.1:${PORTSDIR}/multimedia/ffmpeg # To be reactivated after 1.1.4
#LIB_DEPENDS=       mp3lame.0:${PORTSDIR}/audio/lame
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=-L${LOCALBASE}/lib
CONFIGURE_ARGS=     --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib    \
            --with-forced-embedded-ffmpeg   # To be removed after 1.1.4pre2?
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>