aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/openshot/Makefile
blob: 4a4ed3d6f6744a401c0f0150887e4438f44317e6 (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
# ex:ts=8
# Ports collection makefile for:    openshot
# Date created:     2011-02-05
# Whom:         Charlie Kester <corky1951@comcast.net>
#
# $FreeBSD$
#

PORTNAME=       openshot
PORTVERSION=        1.4.0
PORTREVISION=   1
CATEGORIES=     multimedia
MASTER_SITES=       http://launchpad.net/openshot/${PORTVERSION:C/\.[0-9]+$//}/${PORTVERSION}/+download/

MAINTAINER=     rodrigo@bebik.net
COMMENT=        A non-linear video editor

LICENSE=        GPLv3

RUN_DEPENDS=        ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
            frei0r-plugins>=0:${PORTSDIR}/graphics/frei0r-plugins \
            ${PYTHON_SITELIBDIR}/goocanvasmodule.so:${PORTSDIR}/graphics/py-goocanvas \
            ${PYTHON_SITELIBDIR}/httplib2/__init__.py:${PORTSDIR}/www/py-httplib2 \
            ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
            ${PYTHON_SITELIBDIR}/_mlt.so:${PORTSDIR}/multimedia/py-mlt \
            ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
            scrollkeeper-install:${PORTSDIR}/textproc/rarian \
            sox:${PORTSDIR}/audio/sox

USE_GNOME=      pygtk2 desktopfileutils
USE_PYTHON=     2.5+
USE_PYDISTUTILS=    yes
USE_GETTEXT=        yes
INSTALLS_OMF=       yes

MAN1=           ${PORTNAME}.1 \
            ${PORTNAME}-render.1
MANCOMPRESSED=      no
FETCH_ARGS=     -pRr

post-patch:
    @${FIND} ${WRKSRC}/docs/omf -name '*.omf' | ${XARGS} ${REINPLACE_CMD} -e \
        's|/usr/share|${PREFIX}/share|g'

pre-install:
    (${MKDIR} ${PREFIX}/share/omf/${PORTNAME} && \
        cd ${WRKSRC}/docs/omf && ${COPYTREE_SHARE} \*.omf ${PREFIX}/share/omf/${PORTNAME})
    (${MKDIR} ${PREFIX}/share/gnome/help/${PORTNAME} && \
        cd ${WRKSRC}/docs/gnome && ${COPYTREE_SHARE} \* ${PREFIX}/share/gnome/help/${PORTNAME})

.include <bsd.port.mk>