summaryrefslogtreecommitdiffstats
path: root/package/mpv/mpv.mk
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-10-30 17:02:20 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-02 22:38:22 +0100
commit4c06e102a64a11b15a8cdcc89d2c4a1a2368defd (patch)
tree1378fb0e9d2e57d1db8d865762cb70bd06e22a6d /package/mpv/mpv.mk
parentc1968da4b5e0bfc26fe8c8520aad940b6349b531 (diff)
downloadbuildroot-4c06e102a64a11b15a8cdcc89d2c4a1a2368defd.tar.gz
buildroot-4c06e102a64a11b15a8cdcc89d2c4a1a2368defd.zip
package/mpv: make it a waf-package
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mpv/mpv.mk')
-rw-r--r--package/mpv/mpv.mk30
1 files changed, 3 insertions, 27 deletions
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 4f04fdfc47..0dd488d403 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -5,16 +5,16 @@
################################################################################
MPV_VERSION = 0.20.0
-MPV_WAF_VERSION = 1.8.12
MPV_SITE = https://github.com/mpv-player/mpv/archive
MPV_SOURCE = v$(MPV_VERSION).tar.gz
-MPV_EXTRA_DOWNLOADS = https://waf.io/waf-$(MPV_WAF_VERSION)
MPV_DEPENDENCIES = \
host-pkgconf ffmpeg zlib \
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
MPV_LICENSE = GPLv2+
MPV_LICENSE_FILES = LICENSE
+MPV_NEEDS_EXTERNAL_WAF = YES
+
# Some of these options need testing and/or tweaks
MPV_CONF_OPTS = \
--prefix=/usr \
@@ -235,28 +235,4 @@ else
MPV_CONF_OPTS += --disable-x11
endif
-define MPV_COPY_WAF
- $(INSTALL) -m 0755 $(DL_DIR)/waf-$(MPV_WAF_VERSION) $(@D)/waf
-endef
-MPV_POST_EXTRACT_HOOKS += MPV_COPY_WAF
-
-define MPV_CONFIGURE_CMDS
- cd $(@D); \
- $(TARGET_CONFIGURE_OPTS) \
- ./waf configure $(MPV_CONF_OPTS)
-endef
-
-define MPV_BUILD_CMDS
- cd $(@D); \
- $(TARGET_MAKE_ENV) \
- ./waf build
-endef
-
-define MPV_INSTALL_TARGET_CMDS
- cd $(@D); \
- $(TARGET_MAKE_ENV) \
- DESTDIR=$(TARGET_DIR) \
- ./waf install
-endef
-
-$(eval $(generic-package))
+$(eval $(waf-package))
OpenPOWER on IntegriCloud