eigen: follow default installation scheme
authorDavide Viti <zinosat@tiscali.it>
Thu, 20 Mar 2014 10:45:47 +0000 (11:45 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Mar 2014 10:02:13 +0000 (12:02 +0200)
eigen's build-system (cmake), by default, installs the header files
in /usr/include/eigen3

Signed-off-by: Davide Viti <d.viti@infosolution.it>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/eigen/eigen.mk

index 5abd4645260a182a0adf149b15449f2735bbfd9b..9a5ce7dfb98a8ad3d9ef45e4d52f75d036dd4100 100644 (file)
@@ -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))