aboutsummaryrefslogtreecommitdiff
blob: e84acfa7a34583f72ac33310d787c1bdc73c36dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="8"

inherit git-r3

DESCRIPTION="Squeezebox ShairPort2 Helper"
HOMEPAGE="https://github.com/disaster123/shairport2_plugin"
EGIT_REPO_URI="https://github.com/disaster123/shairport2_plugin.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="dev-libs/openssl"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}/shairport_helper/src"

src_prepare() {
	sed -i -e 's;CFLAGS;MYCFLAGS;g' "Makefile.default"
	sed -i -e 's;-Wall -O2 -fPIC;$(CFLAGS);' "Makefile.default"
	sed -i -e 's;LDFLAGS;MYLDFLAGS;g' "Makefile.default"
	sed -i -e 's;-static;$(LDFLAGS);' "Makefile.default"
	# remove references to libao - not used
	sed -i '/cflags ao/d' "Makefile.default"
	sed -i '/libs ao/d' "Makefile.default"
	sed -i '/strip /d' "Makefile.default"
	eapply_user
}

src_install() {
	newbin shairport_helper shairport2_helper
	dodoc README.md
}