mpd-mpc: bump to version 0.29
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 7 Mar 2018 22:54:21 +0000 (23:54 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 8 Mar 2018 08:04:44 +0000 (09:04 +0100)
Since version 0.29 MPDs mpc only supports the meson build. Therefore,
adapt the package infrastructure according to the user manual.

Also add a hash for the license file.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mpd-mpc/mpd-mpc.hash
package/mpd-mpc/mpd-mpc.mk

index 8336893744b014c9d78eb87934b003bfe6be3b75..972d169438eb03f0a68ef574d6677246eca74220 100644 (file)
@@ -1,2 +1,3 @@
 # Locally calculated after checking pgp signature
-sha256 a4337d06c85dc81a638821d30fce8a137a58d13d510be34a11c1cce95cabc547        mpc-0.28.tar.xz
+sha256  02f1daec902cb48f8cdaa6fe21c7219f6231b091dddbe437a3a4fb12cb07b9d3  mpc-0.29.tar.xz
+sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
index 6c15c0d9a374ad4fb433a4e114c88aee1d53a1f1..3eecf8a3efa9db33010b0c5f142201eb0d8cf974 100644 (file)
@@ -5,12 +5,33 @@
 ################################################################################
 
 MPD_MPC_VERSION_MAJOR = 0
-MPD_MPC_VERSION = $(MPD_MPC_VERSION_MAJOR).28
+MPD_MPC_VERSION = $(MPD_MPC_VERSION_MAJOR).29
 MPD_MPC_SITE = http://www.musicpd.org/download/mpc/$(MPD_MPC_VERSION_MAJOR)
 MPD_MPC_SOURCE = mpc-$(MPD_MPC_VERSION).tar.xz
 MPD_MPC_LICENSE = GPL-2.0+
 MPD_MPC_LICENSE_FILES = COPYING
-MPD_MPC_DEPENDENCIES = host-pkgconf libmpdclient
-MPD_MPC_CONF_ENV = ac_cv_prog_cc_c99='-std=c99'
+MPD_MPC_DEPENDENCIES = host-meson host-pkgconf libmpdclient
 
-$(eval $(autotools-package))
+MPD_MPC_CONF_OPTS += \
+       --prefix=/usr \
+       --buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
+       --cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf
+
+MPD_MPC_NINJA_OPTS = $(if $(VERBOSE),-v)
+
+define MPD_MPC_CONFIGURE_CMDS
+       rm -rf $(@D)/build
+       mkdir -p $(@D)/build
+       $(TARGET_MAKE_ENV) meson $(MPD_MPC_CONF_OPTS) $(@D) $(@D)/build
+endef
+
+define MPD_MPC_BUILD_CMDS
+       $(TARGET_MAKE_ENV) ninja $(MPD_MPC_NINJA_OPTS) -C $(@D)/build
+endef
+
+define MPD_MPC_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) ninja $(MPD_MPC_NINJA_OPTS) \
+               -C $(@D)/build install
+endef
+
+$(eval $(generic-package))