You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit scons-utils toolchain-funcs
|
|
|
|
DESCRIPTION="Peer-to-peer VPN software that abstracts a LAN over the Internet"
|
|
HOMEPAGE="http://www.freelan.org/"
|
|
SRC_URI="https://github.com/freelan-developers/freelan/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="debug"
|
|
|
|
DEPEND="
|
|
<dev-libs/boost-1.70:=[threads]
|
|
dev-libs/openssl:0=
|
|
net-misc/curl:=
|
|
virtual/libiconv
|
|
net-libs/miniupnpc:=
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
export FREELAN_NO_GIT=1
|
|
export FREELAN_NO_GIT_VERSION=${PV}
|
|
|
|
sed -e "s/CXXFLAGS='-O3'/CXXFLAGS=''/" \
|
|
-e "s/CXXFLAGS=\['-Werror'\]/CXXFLAGS=[]/" \
|
|
-e "s/CXXFLAGS=\['-pedantic'\]/CXXFLAGS=[]/" \
|
|
-i SConstruct || die
|
|
default
|
|
}
|
|
|
|
src_compile() {
|
|
tc-export CXX CC AR
|
|
export LINK="$(tc-getCXX)"
|
|
|
|
local MYSCONS=(
|
|
"--mode=$(usex debug debug release)"
|
|
prefix="${EPREFIX:-/}"
|
|
bin_prefix="/usr"
|
|
apps
|
|
)
|
|
escons "${MYSCONS[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
DESTDIR="${D}" escons --mode=release install prefix="${EPREFIX:-/}" bin_prefix="/usr"
|
|
dobin build/release/bin/freelan
|
|
dodoc CONTRIBUTING.md README.md
|
|
|
|
newinitd "${FILESDIR}/openrc/freelan.initd" freelan
|
|
}
|