summaryrefslogtreecommitdiff
path: root/multimedia/pitivi/Makefile
blob: 93cbfab6c4cdaebe9944e530dd15f123713c218f (plain)
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
# $NetBSD: Makefile,v 1.57 2020/03/08 16:50:46 wiz Exp $

DISTNAME=	pitivi-0.999
PKGREVISION=	1
CATEGORIES=	multimedia
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/pitivi/0.999/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.pitivi.org/
COMMENT=	Video editor using GStreamer/GTK
LICENSE=	gnu-lgpl-v2.1

USE_TOOLS+=	pkg-config intltool msgfmt xgettext

TOOL_DEPENDS+=	itstool-[0-9]*:../../textproc/itstool

DEPENDS+=	${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3
DEPENDS+=	${PYPKGPREFIX}-gstreamer1-[0-9]*:../../multimedia/py-gstreamer1
DEPENDS+=	${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3

# For some reason creating projects fails without these.
DEPENDS+=	gst-plugins1-ogg-[0-9]*:../../multimedia/gst-plugins1-ogg
DEPENDS+=	gst-plugins1-theora-[0-9]*:../../multimedia/gst-plugins1-theora
DEPENDS+=	gst-plugins1-vorbis-[0-9]*:../../audio/gst-plugins1-vorbis

SUBST_CLASSES+=		py
SUBST_STAGE.py=		pre-configure
SUBST_MESSAGE.py=	Setting the Python executable name.
SUBST_FILES.py+=	meson.build
SUBST_VARS.py+=		PYVERSSUFFIX

REPLACE_PYTHON+=	bin/pitivi.in

# Python 3 only
PYTHON_VERSIONS_INCOMPATIBLE=	27
PY_PATCHPLIST=			yes
# Workaround for Python 3.8
LDFLAGS+=			-lpython${PYVERSSUFFIX}

.include "../../devel/meson/build.mk"
.include "../../graphics/gst-plugins1-gdk_pixbuf/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/py-cairo/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../multimedia/frei0r/buildlink3.mk"
.include "../../multimedia/gst-plugins1-editing-services/buildlink3.mk"
.include "../../multimedia/gst-plugins1-good/buildlink3.mk"
.include "../../multimedia/gst-plugins1-gtk/buildlink3.mk"
.include "../../multimedia/gst-plugins1-transcoder/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"