summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2015-12-19 15:49:03 +0000
committerSven Wegener <swegener@gentoo.org>2015-12-19 15:59:04 +0000
commitd8344da95467382d33df0c3aa727162f46b6e75b (patch)
treef2f28bd02a75d282e1176c8bf2a35b3626cecd25 /dev-embedded
parentnet-irc/kvirc: Version bump. (diff)
downloadgentoo-d8344da95467382d33df0c3aa727162f46b6e75b.tar.gz
gentoo-d8344da95467382d33df0c3aa727162f46b6e75b.tar.bz2
gentoo-d8344da95467382d33df0c3aa727162f46b6e75b.zip
dev-embedded/libftdi: Fix cmake build issue with USE=examples, bug #566856
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/libftdi/files/libftdi-0.20-cmake-include.patch22
-rw-r--r--dev-embedded/libftdi/libftdi-0.20.ebuild4
2 files changed, 25 insertions, 1 deletions
diff --git a/dev-embedded/libftdi/files/libftdi-0.20-cmake-include.patch b/dev-embedded/libftdi/files/libftdi-0.20-cmake-include.patch
new file mode 100644
index 000000000000..4faf7c620393
--- /dev/null
+++ b/dev-embedded/libftdi/files/libftdi-0.20-cmake-include.patch
@@ -0,0 +1,22 @@
+From ccbd6cf1934056386772debba8583bc9b3721072 Mon Sep 17 00:00:00 2001
+From: Uffe Jakobsen <uffe@uffe.org>
+Date: Mon, 22 Oct 2012 12:03:22 +0200
+Subject: [PATCH] Fix build on FreeBSD (cmake file typo)
+
+---
+ examples/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index 6793d89..1263c62 100644
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -2,7 +2,7 @@ option(EXAMPLES "Build example programs" ON)
+
+ if (EXAMPLES)
+ # Includes
+- include( ${CMAKE_CURRENT_SOURCE_DIR}
++ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ )
+
diff --git a/dev-embedded/libftdi/libftdi-0.20.ebuild b/dev-embedded/libftdi/libftdi-0.20.ebuild
index a5804f398b1e..acc14c0d6433 100644
--- a/dev-embedded/libftdi/libftdi-0.20.ebuild
+++ b/dev-embedded/libftdi/libftdi-0.20.ebuild
@@ -4,7 +4,7 @@
EAPI="2"
-inherit cmake-utils python
+inherit cmake-utils python eutils
if [[ ${PV} == 9999* ]] ; then
EGIT_REPO_URI="git://developer.intra2net.com/${PN}"
@@ -34,6 +34,8 @@ src_prepare() {
sed -i \
-e '/SET(LIB_SUFFIX /d' \
CMakeLists.txt || die
+
+ epatch "${FILESDIR}"/${P}-cmake-include.patch
}
src_configure() {