aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/lives/Makefile
blob: 52287734e4f4ceacafc2995cea720106c422e651 (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
61
62
63
64
65
66
67
68
# New ports collection makefile for:    lives
# Date created:     3 November 2006
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   lives
DISTVERSION=    0.9.8.5
PORTREVISION=   1
CATEGORIES= multimedia
MASTER_SITES=   http://www.xs4all.nl/%7Esalsaman/lives/current/ CENKES
DISTNAME=   LiVES-${DISTVERSION}

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Video editing system

LIB_DEPENDS=    Magick.10:${PORTSDIR}/graphics/ImageMagick \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf \
        jack.0:${PORTSDIR}/audio/jack \
        visual-0.4.0:${PORTSDIR}/graphics/libvisual04 \
        theora.2:${PORTSDIR}/multimedia/libtheora \
        avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
        dv.4:${PORTSDIR}/multimedia/libdv \
        matroska.0:${PORTSDIR}/multimedia/libmatroska \
        oil-0.3.1:${PORTSDIR}/devel/liboil \
        mjpegutils-1.8.0:${PORTSDIR}/multimedia/mjpegtools \
        x264.50:${PORTSDIR}/multimedia/x264
BUILD_DEPENDS=  ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
RUN_DEPENDS=    mplayer:${PORTSDIR}/multimedia/mplayer \
        sox:${PORTSDIR}/audio/sox \
        transcode:${PORTSDIR}/multimedia/transcode \
        xmms:${PORTSDIR}/multimedia/xmms \
        mpg123:${PORTSDIR}/audio/mpg123 \
        ogg123:${PORTSDIR}/audio/vorbis-tools \
        sswf:${PORTSDIR}/graphics/sswf \
        ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r

WRKSRC=     ${WRKDIR}/${DISTNAME:L}
USE_BZIP2=  yes
USE_PYTHON= yes
USE_PERL5=  yes
USE_CDRTOOLS=   yes
USE_GNOME=  gtk20
USE_GETTEXT=    yes
USE_GHOSTSCRIPT_RUN=    yes
USE_SDL=    yes
CPPFLAGS=   -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -g -fPIC
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS}
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
LC_MESSAGES_NAMES=  lives

post-patch:
    @${REINPLACE_CMD} -e 's|i<FX_KEYS_MAX_VIRTUAL|i<prefs->rte_keys_virtual|' ${WRKSRC}/src/rte_window.c
    @${REINPLACE_CMD} -e '/test.*==/s|==|=|g' -e '/LIBS/s|-ldl ||' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '/LDFLAGS/s|-ldld||;s|-ldl||'\
        ${WRKSRC}/lives-plugins/weed-plugins/Makefile.in
    @${REINPLACE_CMD} -e 's|-d alsa|-d oss|' ${WRKSRC}/src/main.c
    @${REINPLACE_CMD} -e '/^SUBDIRS/s|weed-plugins||' ${WRKSRC}/lives-plugins/Makefile.in
    @${REINPLACE_CMD} -e '/^docdir/s|=.*|=${DOCSDIR}|' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/Makefile.in
    @${FIND} ${WRKSRC}/ -name Makefile.in |\
        ${XARGS} ${EGREP} -lm1 '(-O3|-fexpensive-optimizations)' |\
        ${XARGS} ${REINPLACE_CMD} -e 's|-O3||;s|-fexpensive-optimizations||'

.include <bsd.port.mk>