mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
mpc: Update to 0.30. Use autotools
Package versions newer than 0.28 require meson/ninja which OpenWrt does not
support in its build environment. These files provide the minimum autotool
configuration necessary to build later versions.
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
+13
-15
@@ -6,17 +6,20 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mpc
|
||||
PKG_VERSION:=0.28
|
||||
PKG_VERSION:=0.30
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=http://www.musicpd.org/download/mpc/0
|
||||
PKG_HASH:=a4337d06c85dc81a638821d30fce8a137a58d13d510be34a11c1cce95cabc547
|
||||
PKG_SOURCE_URL:=https://www.musicpd.org/download/mpc/0
|
||||
PKG_HASH:=65fc5b0a8430efe9acbe6e261127960682764b20ab994676371bdc797d867fce
|
||||
|
||||
PKG_LICENSE:=GPL-2.0+
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/mpc
|
||||
@@ -34,23 +37,18 @@ define Package/mpc/description
|
||||
this is MPC
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--disable-iconv \
|
||||
)
|
||||
endef
|
||||
CONFIGURE_ARGS+= --disable-iconv
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default,\
|
||||
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
|
||||
prefix="/usr" \
|
||||
all \
|
||||
)
|
||||
# Newer sources require meson/ninja to build so...
|
||||
# Use our hacked-up version of the mpc v0.28 autotools.
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
$(CP) ./autotools-files/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Package/mpc/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpc $(1)/usr/bin/
|
||||
$(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user