# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit gnustep-2

MY_P=${P/mpdc/MPDC}
DESCRIPTION="GNUstep client for the Music Player Daemon"
HOMEPAGE="http://gap.nongnu.org/mpdcon/"
SRC_URI="https://savannah.nongnu.org/download/gap/${MY_P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"

RDEPEND="dev-libs/libbsd
	>=gnustep-libs/sqlclient-1.6.0[sqlite]
	>=media-libs/libmpdclient-2.7"
DEPEND="${RDEPEND}"

S=${WORKDIR}/${MY_P}

src_compile() {
	egnustep_env
	egnustep_make need-libbsd=yes
}