summaryrefslogtreecommitdiff
blob: 4404f4d9ded89553bf17c91223f8ffdf1b91bfff (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
EAPI="5"
inherit cmake-utils eutils

DESCRIPTION="Xilinx FPGA Programmer"
HOMEPAGE="https://github.com/matrix-io/xc3sprog/releases"
SRC_URI="https://github.com/matrix-io/${PN}/archive/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="dev-embedded/libftdi
		 dev-embedded/libftd2xx
		 dev-libs/libusb-compat
		 dev-libs/wiringPi"
S="${WORKDIR}/${PN}-${P}"
DEPEND="${RDEPEND}"

src_configure() {
		local mycmakeargs=(
				"-DLIBFTDI_INCLUDE_DIR=$(pkg-config libftdi1 --cflags-only-I | cut -d' ' -f1 | sed 's/-I//')"
				"-DLIBFTDI_LIBRARIES=${EPREFIX}/usr/lib/libftdi1.so"
		)

		cmake-utils_src_configure
}