Skip to contentSkip to conversation

mpd-mpc: bump to version 0.29

PATCH New Jörg Krause 2 participants 2 messages Mar 7, 2018 – Mar 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpd-mpc: bump to version 0.29

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.

---
 package/mpd-mpc/mpd-mpc.hash |  3 ++-
 package/mpd-mpc/mpd-mpc.mk   | 29 +++++++++++++++++++++++++----
 2 files changed, 27 insertions(+), 5 deletions(-)
package/mpd-mpc/mpd-mpc.hash +2 -1
index 8336893744..972d169438 100644
@@ -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
package/mpd-mpc/mpd-mpc.mk +25 -4
index 6c15c0d9a3..3eecf8a3ef 100644
@@ -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))
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/1 mpd-mpc: bump to version 0.29

Quoted 37 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

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.

---
 package/mpd-mpc/mpd-mpc.hash |  3 ++-
 package/mpd-mpc/mpd-mpc.mk   | 29 +++++++++++++++++++++++++----
 2 files changed, 27 insertions(+), 5 deletions(-)
package/mpd-mpc/mpd-mpc.hash +2 -1
index 8336893744..972d169438 100644
@@ -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
package/mpd-mpc/mpd-mpc.mk +1 -2
index 6c15c0d9a3..3eecf8a3ef 100644
@@ -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

package/mpd-mpc/mpd-mpc.mk line 20

Quoted 10 lines
package/mpd-mpc/mpd-mpc.mk +7 -2
-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)

Same comment regarding -j option.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard