ncmpc: bump to version 0.29
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 8 Mar 2018 16:42:52 +0000 (17:42 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 31 Mar 2018 06:49:14 +0000 (08:49 +0200)
Since version 0.28 ncmpc only supports the meson build.
Therefore, adapt to package infrastructure according to the user manual.

Add a hash for the license file.

Add a nmpc entry for myself in DEVELOPERS

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/ncmpc/ncmpc.hash
package/ncmpc/ncmpc.mk

index 40fda40bdac801867c16d74f008775b445e37ead..ef6589e37da93b3fe6b2b19d8e456934423ee7b0 100644 (file)
@@ -663,6 +663,7 @@ F:  package/libupnp/
 F:     package/libupnp18/
 F:     package/minissdpd/
 F:     package/motion/
+F:     package/ncmpc/
 F:     package/rygel/
 F:     package/safeclib/
 F:     package/tinycbor/
index 82fae1d78c25212efe44a0efc2649bff61815c1f..0e9a4a903c66ca1aba86d58a3a5269c6cb13abaf 100644 (file)
@@ -1,2 +1,5 @@
 # Locally calculated after checking pgp signature
-sha256 f9a26a3fc869cfdf0a16b0ea3e6512c2fe28a031bbc71b1d24a2bf0bbd3e15d9  ncmpc-0.27.tar.xz
+sha256 ef68a9b67172383ea80ee46579015109433fa058728812d2b0ebede660d85f12  ncmpc-0.29.tar.xz
+
+# Hash for license file:
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
index 31b4f08d1403223fd6bd5f9c2f0f2be564efe192..0c9dfd46583fcc24ae2e50c1ed66cb3833b53686 100644 (file)
@@ -5,11 +5,33 @@
 ################################################################################
 
 NCMPC_VERSION_MAJOR = 0
-NCMPC_VERSION = $(NCMPC_VERSION_MAJOR).27
+NCMPC_VERSION = $(NCMPC_VERSION_MAJOR).29
 NCMPC_SOURCE = ncmpc-$(NCMPC_VERSION).tar.xz
 NCMPC_SITE = http://www.musicpd.org/download/ncmpc/$(NCMPC_VERSION_MAJOR)
-NCMPC_DEPENDENCIES = host-pkgconf libglib2 libmpdclient ncurses
+NCMPC_DEPENDENCIES = host-meson host-pkgconf libglib2 libmpdclient ncurses
 NCMPC_LICENSE = GPL-2.0+
 NCMPC_LICENSE_FILES = COPYING
 
-$(eval $(autotools-package))
+NCMPC_CONF_OPTS += \
+       --prefix=/usr \
+       --buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
+       --cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf
+
+NCMPC_NINJA_OPTS = $(if $(VERBOSE),-v)
+
+define NCMPC_CONFIGURE_CMDS
+       rm -rf $(@D)/build
+       mkdir -p $(@D)/build
+       $(TARGET_MAKE_ENV) meson $(NCMPC_CONF_OPTS) $(@D) $(@D)/build
+endef
+
+define NCMPC_BUILD_CMDS
+       $(TARGET_MAKE_ENV) ninja $(NCMPC_NINJA_OPTS) -C $(@D)/build
+endef
+
+define NCMPC_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) \
+               ninja $(NCMPC_NINJA_OPTS) -C $(@D)/build install
+endef
+
+$(eval $(generic-package))