Mon Mar 16 21:20:43 2020 UTC ()
mpv: pkglint cleanup (whitespace only)


(wiz)
diff -r1.100 -r1.101 pkgsrc/multimedia/mpv/Makefile

cvs diff -r1.100 -r1.101 pkgsrc/multimedia/mpv/Makefile (switch to unified diff)

--- pkgsrc/multimedia/mpv/Makefile 2020/03/16 20:58:18 1.100
+++ pkgsrc/multimedia/mpv/Makefile 2020/03/16 21:20:43 1.101
@@ -1,89 +1,89 @@ @@ -1,89 +1,89 @@
1# $NetBSD: Makefile,v 1.100 2020/03/16 20:58:18 nia Exp $ 1# $NetBSD: Makefile,v 1.101 2020/03/16 21:20:43 wiz Exp $
2 2
3DISTNAME= mpv-0.32.0 3DISTNAME= mpv-0.32.0
4PKGREVISION= 5 4PKGREVISION= 5
5CATEGORIES= multimedia 5CATEGORIES= multimedia
6MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
7GITHUB_TAG= v${PKGVERSION_NOREV} 7GITHUB_TAG= v${PKGVERSION_NOREV}
8 8
9MAINTAINER= leot@NetBSD.org 9MAINTAINER= leot@NetBSD.org
10HOMEPAGE= https://mpv.io/ 10HOMEPAGE= https://mpv.io/
11COMMENT= Video player based on MPlayer and mplayer2 11COMMENT= Video player based on MPlayer and mplayer2
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
13 13
14# needs sem_timedwait(3) 14# needs sem_timedwait(3)
15NOT_FOR_PLATFORM= NetBSD-[1-6].*-* 15NOT_FOR_PLATFORM= NetBSD-[1-6].*-*
16 16
17NOT_PAX_MPROTECT_SAFE+= bin/mpv 17NOT_PAX_MPROTECT_SAFE+= bin/mpv
18 18
19TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils 19TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils
20# ${WRKSRC}/bootstrap.py mentions needed version 20# ${WRKSRC}/bootstrap.py mentions needed version
21TOOL_DEPENDS+= waf>=2.0.9:../../devel/waf 21TOOL_DEPENDS+= waf>=2.0.9:../../devel/waf
22 22
23WAF_REPLACE_EXECUTABLE= yes 23WAF_REPLACE_EXECUTABLE= yes
24WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin 24WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin
25WAF_CONFIGURE_ARGS+= --enable-dvdnav 25WAF_CONFIGURE_ARGS+= --enable-dvdnav
26WAF_CONFIGURE_ARGS+= --disable-egl-x11 26WAF_CONFIGURE_ARGS+= --disable-egl-x11
27 27
28PYTHON_FOR_BUILD_ONLY= yes 28PYTHON_FOR_BUILD_ONLY= yes
29 29
30USE_TOOLS+= perl pkg-config 30USE_TOOLS+= perl pkg-config
31 31
32MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv 32MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv
33INSTALLATION_DIRS= share/examples/mpv 33INSTALLATION_DIRS= share/examples/mpv
34CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf 34CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf
35 35
36SUBST_CLASSES+= audio 36SUBST_CLASSES+= audio
37SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," 37SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO},"
38SUBST_FILES.audio+= audio/out/ao_oss.c stream/ai_oss.c 38SUBST_FILES.audio+= audio/out/ao_oss.c stream/ai_oss.c
39SUBST_STAGE.audio= pre-configure 39SUBST_STAGE.audio= pre-configure
40SUBST_MESSAGE.audio= Fixing path to audio device. 40SUBST_MESSAGE.audio= Fixing path to audio device.
41 41
42SUBST_CLASSES+= python 42SUBST_CLASSES+= python
43SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX}," 43SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX},"
44SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX}," 44SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX},"
45SUBST_FILES.python+= wscript 45SUBST_FILES.python+= wscript
46SUBST_STAGE.python= pre-configure 46SUBST_STAGE.python= pre-configure
47SUBST_MESSAGE.python= Fix Python command names. 47SUBST_MESSAGE.python= Fix Python command names.
48 48
49.include "../../mk/bsd.prefs.mk" 49.include "../../mk/bsd.prefs.mk"
50 50
51# 51#
52# At some point this should be consolidated into mk/platform/Darwin.mk, it is 52# At some point this should be consolidated into mk/platform/Darwin.mk, it is
53# here temporarily while any issues are ironed out and it can be made generic 53# here temporarily while any issues are ironed out and it can be made generic
54# for Swift handling. 54# for Swift handling.
55#  55#
56# On newer macOS releases there are a couple of swift compat static libraries 56# On newer macOS releases there are a couple of swift compat static libraries
57# that need to be added to the search path. 57# that need to be added to the search path.
58# 58#
59.if ${OPSYS} == "Darwin" 59.if ${OPSYS} == "Darwin"
60XCODE_DIR!= xcode-select -p 2>/dev/null || ${TRUE} 60XCODE_DIR!= xcode-select -p 2>/dev/null || ${TRUE}
61. if exists(${XCODE_DIR}/usr/lib/swift/macosx) 61. if exists(${XCODE_DIR}/usr/lib/swift/macosx)
62BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/usr/lib/swift/macosx 62BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/usr/lib/swift/macosx
63. elif exists(${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx) 63. elif exists(${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx)
64BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx 64BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx
65. endif 65. endif
66.endif 66.endif
67 67
68.if ${OPSYS} == "NetBSD" 68.if ${OPSYS} == "NetBSD"
69# Use audio(4) over ossaudio(4) on NetBSD. 69# Use audio(4) over ossaudio(4) on NetBSD.
70WAF_CONFIGURE_ARGS+= --disable-oss-audio 70WAF_CONFIGURE_ARGS+= --disable-oss-audio
71.endif 71.endif
72 72
73post-install: 73post-install:
74 cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv 74 cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv
75 75
76.include "options.mk" 76.include "options.mk"
77 77
78.include "../../mk/oss.buildlink3.mk" 78.include "../../mk/oss.buildlink3.mk"
79.include "../../converters/libiconv/buildlink3.mk" 79.include "../../converters/libiconv/buildlink3.mk"
80.include "../../devel/waf/waf.mk" 80.include "../../devel/waf/waf.mk"
81.include "../../devel/zlib/buildlink3.mk" 81.include "../../devel/zlib/buildlink3.mk"
82.include "../../graphics/lcms2/buildlink3.mk" 82.include "../../graphics/lcms2/buildlink3.mk"
83.include "../../lang/python/application.mk" 83.include "../../lang/python/application.mk"
84.include "../../multimedia/libdvdnav/buildlink3.mk" 84.include "../../multimedia/libdvdnav/buildlink3.mk"
85.include "../../multimedia/ffmpeg4/buildlink3.mk" 85.include "../../multimedia/ffmpeg4/buildlink3.mk"
86.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 86.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
87.include "../../sysutils/desktop-file-utils/desktopdb.mk" 87.include "../../sysutils/desktop-file-utils/desktopdb.mk"
88.include "../../mk/jpeg.buildlink3.mk" 88.include "../../mk/jpeg.buildlink3.mk"
89.include "../../mk/bsd.pkg.mk" 89.include "../../mk/bsd.pkg.mk"