All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v5 1/2] eigen: follow default installation scheme
@ 2014-03-20 10:45 Davide Viti
  2014-03-20 10:45 ` [Buildroot] [PATCH v5 2/2] eigen: add an option to install unsupported modules Davide Viti
  2014-03-30 10:07 ` [Buildroot] [PATCH v5 1/2] eigen: follow default installation scheme Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Davide Viti @ 2014-03-20 10:45 UTC (permalink / raw)
  To: buildroot

eigen's build-system (cmake), by default, installs the header files
in /usr/include/eigen3

Signed-off-by: Davide Viti <d.viti@infosolution.it>
---
Switching from $(generic-package) to $(cmake-package) results in
known [1] build failures due to in-place compilation.
Not worth fixing on this package which just needs to copy include
files.

[1] http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/43687/

 package/eigen/eigen.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk
index 5abd464..9a5ce7d 100644
--- a/package/eigen/eigen.mk
+++ b/package/eigen/eigen.mk
@@ -12,12 +12,14 @@ EIGEN_LICENSE = MPL2, BSD-3c, LGPLv2.1
 EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
 EIGEN_INSTALL_STAGING = YES
 EIGEN_INSTALL_TARGET = NO
+EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
 
 # This package only consists of headers that need to be
 # copied over to the sysroot for compile time use
 define EIGEN_INSTALL_STAGING_CMDS
-	$(RM) -r $(STAGING_DIR)/usr/include/Eigen
-	cp -a $(@D)/Eigen $(STAGING_DIR)/usr/include/
+	$(RM) -r $(EIGEN_DEST_DIR)
+	mkdir -p $(EIGEN_DEST_DIR)
+	cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
 endef
 
 $(eval $(generic-package))
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-30 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-20 10:45 [Buildroot] [PATCH v5 1/2] eigen: follow default installation scheme Davide Viti
2014-03-20 10:45 ` [Buildroot] [PATCH v5 2/2] eigen: add an option to install unsupported modules Davide Viti
2014-03-30 10:09   ` Thomas Petazzoni
2014-03-30 10:07 ` [Buildroot] [PATCH v5 1/2] eigen: follow default installation scheme Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.