aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/xvidcap/Makefile
blob: 06a3d5ab7a60008abe96cb7cd2a03d5b05edb0ce (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
59
60
# New ports collection makefile for:    xvidcap
# Date created:     Sat 24 April 2004
# Whom:         thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=       xvidcap
DISTVERSION=        1.1.4p1
PORTREVISION=   8
PORTEPOCH=      1
CATEGORIES=     sysutils multimedia
MASTER_SITES=       SF/${PORTNAME}/OldFiles

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

BUILD_DEPENDS=      rarian-sk-config:${PORTSDIR}/textproc/rarian    \
            xml2po:${PORTSDIR}/textproc/gnome-doc-utils \
            texi2html:${PORTSDIR}/textproc/texi2html
# To be reactivated when ffmpeg-devel will install libswscale.
#LIB_DEPENDS=       avutil.1:${PORTSDIR}/multimedia/ffmpeg-devel
LIB_DEPENDS=        mp3lame.0:${PORTSDIR}/audio/lame
RUN_DEPENDS=        animate:${PORTSDIR}/graphics/ImageMagick

GNU_CONFIGURE=      yes
# Remove MAKE="${GMAKE}" after ffmpeg-devel's upgrade
CONFIGURE_ENV=      CFLAGS="${CFLAGS} -I${LOCALBASE}/include"   \
            LDFLAGS="-L${LOCALBASE}/lib"    \
            MAKE="${GMAKE}"
CONFIGURE_ARGS=     -with-forced-embedded-ffmpeg    # To be removed after ffmpeg-devel's upgrade

USE_GMAKE=      yes # To be removed after ffmpeg-devel's upgrade
USE_GNOME=      glib20 libglade2
USE_GETTEXT=        yes
USE_XORG=       x11 xmu
INSTALLS_OMF=       yes

.if !defined(CFLAGS) || ${CFLAGS:M-fno-strict-aliasing*} == ""
CFLAGS+=    -O2 -fno-strict-aliasing
.endif

PORTDOCS=       AUTHORS ChangeLog README
NULLDOCS=       COPYING

MAN1=           xvidcap.1

pre-configure:
    ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
.if defined(NOPORTDOCS)
    ${REINPLACE_CMD} -e 's|pkgdataDATA install-xvidcapdocDATA|pkgdataDATA|' \
        ${WRKSRC}/Makefile.in
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${RM} ${NULLDOCS:S|^|${DOCSDIR}/|}
.endif

.include <bsd.port.mk>