blob: 54750a90a7eb27fb2b66c5ac020f7d8e400d1f1f (
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
38
39
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="6"
inherit eutils git-r3
DESCRIPTION="Squeezebox ShairPort2 Helper"
HOMEPAGE="https://github.com/disaster123/shairport2_plugin"
EGIT_REPO_URI="https://github.com/disaster123/shairport2_plugin.git"
EGIT_COMMIT="cd311133b2bdd36a53489069b02b7352a5b7ee4d"
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
}
|