Fix build with waf-1.8 and depend on it.diff -r1.7 -r1.8 pkgsrc/multimedia/mpv/Makefile
(wiz)
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2014/10/07 07:31:38 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2014/10/12 16:00:30 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= mpv-0.6.0 | 3 | DISTNAME= mpv-0.6.0 | |
4 | CATEGORIES= multimedia | 4 | CATEGORIES= multimedia | |
5 | MASTER_SITES= -https://github.com/mpv-player/mpv/archive/v${PKGVERSION_NOREV}${EXTRACT_SUFX} | 5 | MASTER_SITES= -https://github.com/mpv-player/mpv/archive/v${PKGVERSION_NOREV}${EXTRACT_SUFX} | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= http://mpv.io/ | 8 | HOMEPAGE= http://mpv.io/ | |
9 | COMMENT= Video player based on MPlayer and mplayer2 | 9 | COMMENT= Video player based on MPlayer and mplayer2 | |
10 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
11 | 11 | |||
12 | BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils | 12 | BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils | |
13 | # ${WRKSRC}/bootstrap.py mentions needed version | 13 | # ${WRKSRC}/bootstrap.py mentions needed version | |
14 | BUILD_DEPENDS+= waf>=1.7.16:../../devel/waf | 14 | BUILD_DEPENDS+= waf>=1.8:../../devel/waf | |
15 | 15 | |||
16 | PYTHON_FOR_BUILD_ONLY= yes | 16 | PYTHON_FOR_BUILD_ONLY= yes | |
17 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-docutils | 17 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-docutils | |
18 | 18 | |||
19 | USE_TOOLS+= perl pkg-config | 19 | USE_TOOLS+= perl pkg-config | |
20 | 20 | |||
21 | MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv | 21 | MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv | |
22 | INSTALLATION_DIRS= share/examples/mpv | 22 | INSTALLATION_DIRS= share/examples/mpv | |
23 | CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf | 23 | CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf | |
24 | 24 | |||
25 | SUBST_CLASSES+= audio | 25 | SUBST_CLASSES+= audio | |
26 | SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," | 26 | SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," | |
27 | SUBST_FILES.audio+= stream/audio_in.c waftools/checks/custom.py wscript | 27 | SUBST_FILES.audio+= stream/audio_in.c waftools/checks/custom.py wscript |
@@ -1,5 +1,7 @@ | @@ -1,5 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2014/10/07 07:31:38 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.5 2014/10/12 16:00:30 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (mpv-0.6.0.tar.gz) = 60188f045ab177106b10443cf592184e5a4efd59 | 3 | SHA1 (mpv-0.6.0.tar.gz) = 60188f045ab177106b10443cf592184e5a4efd59 | |
4 | RMD160 (mpv-0.6.0.tar.gz) = f273e8751bfe290ab6e4c3d234c46f0ccd44a6e7 | 4 | RMD160 (mpv-0.6.0.tar.gz) = f273e8751bfe290ab6e4c3d234c46f0ccd44a6e7 | |
5 | Size (mpv-0.6.0.tar.gz) = 2598489 bytes | 5 | Size (mpv-0.6.0.tar.gz) = 2598489 bytes | |
6 | SHA1 (patch-waftools_generators_headers.py) = 4309fadacf3406318c342eb5e925178a8ea88ff9 | |||
7 | SHA1 (patch-waftools_waf__customizations.py) = 54d5d4dc7b58b4c3e4e71724276244a2f00413a6 |
$NetBSD: patch-waftools_generators_headers.py,v 1.1 2014/10/12 16:00:30 wiz Exp $
waf-1.8.x compatibility.
https://github.com/mpv-player/mpv/commit/d906d091627a9be8d0d1e13f54d737eca6dc16ff
--- waftools/generators/headers.py.orig 2014-09-30 18:52:47.000000000 +0000
+++ waftools/generators/headers.py
@@ -1,5 +1,5 @@
def __cp_to_variant__(ctx, variant, basename):
- src = ctx.bldnode.search(basename).read()
+ src = ctx.bldnode.search_node(basename).read()
node = ctx.bldnode.make_node("{0}/{1}".format(variant, basename))
node.parent.mkdir()
node.write(src)
$NetBSD: patch-waftools_waf__customizations.py,v 1.1 2014/10/12 16:00:30 wiz Exp $
waf-1.8.x compatibility
https://github.com/mpv-player/mpv/commit/d906d091627a9be8d0d1e13f54d737eca6dc16ff
--- waftools/waf_customizations.py.orig 2014-09-30 18:52:47.000000000 +0000
+++ waftools/waf_customizations.py
@@ -30,28 +30,14 @@ def m_hook(self, node):
def build(ctx):
from waflib import Task
- import syms
+
+ def nice_path(node):
+ node.path_from(node.ctx.launch_node())
cls = Task.classes['cprogram']
class cprogram(cls):
run_str = cls.hcode + '${LAST_LINKFLAGS}'
- def __str__(self):
- tgt_str = ' '.join([a.nice_path() for a in self.outputs])
- return 'linking -> {0}\n'.format(tgt_str)
-
- cls = Task.classes['cshlib']
- class cshlib(cls):
- def __str__(self):
- tgt_str = ' '.join([a.nice_path() for a in self.outputs])
- return 'linking -> {0}\n'.format(tgt_str)
-
- cls = Task.classes['compile_sym']
- class compile_sym(cls):
- def __str__(self):
- tgt_str = ' '.join([a.nice_path() for a in self.outputs])
- return 'compile_sym -> {0}\n'.format(tgt_str)
-
cls = Task.classes['macplist']
class macplist(cls):
def run(self):