# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit unpacker toolchain-funcs MY_P="snap7-full-${PV}" DESCRIPTION="Step7 Open Source Ethernet Communication Suite" HOMEPAGE="http://snap7.sourceforge.net/" SRC_URI="mirror://sourceforge/snap7/${MY_P}.7z" S="${WORKDIR}/${MY_P}/build/unix" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64" DEPEND="" RDEPEND="${DEPEND}" BDEPEND=" app-arch/p7zip " src_compile() { # TODO Fix: QA Notice: The following shared libraries lack a SONAME # See https://dev.gentoo.org/~zmedico/portage/doc/ch07s04.html # TODO Use different .mk for bsd/arm_v7/solaris/mips/i386 emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} -fPIC" LinkerName="$(tc-getCXX)" SharedObjectLinkerName="$(tc-getCXX) -shared -fPIC" LDFLAGS="${LDFLAGS}" -f x86_64_linux.mk all } src_install() { default doheader "${WORKDIR}/${MY_P}/release/Wrappers/c-cpp/snap7.h" dolib.so "${WORKDIR}/${MY_P}/build/bin/x86_64-linux/libsnap7.so" }