mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
net-analyzer/nagircbot: respect PKG_CONFIG
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
@@ -23,14 +23,16 @@ RDEPEND="net-analyzer/nagios-core
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
cp -av Makefile{,.org}
|
||||
cp -av Makefile{,.org}
|
||||
|
||||
sed -i Makefile \
|
||||
-e 's:-lcrypto -lssl:$(shell pkg-config --libs openssl):g' \
|
||||
-e 's:-lcrypto -lssl:$(shell ${PKG_CONFIG} --libs openssl):g' \
|
||||
-e 's:-O2::g;s:-g::g' \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export PKG_CONFIG
|
||||
emake CC=$(tc-getCC) CXX=$(tc-getCXX)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user