• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/eigen/eigen.mk
Thomas PetazzoniThomas Petazzoni committed 6d5ea5bd91628 Dec 2015
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# eigen
4
#
5
################################################################################
6
​
7
EIGEN_VERSION = 3.2.5
8
EIGEN_SITE = https://bitbucket.org/eigen/eigen
9
EIGEN_SITE_METHOD = hg
10
EIGEN_LICENSE = MPL2, BSD-3c, LGPLv2.1
11
EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
12
EIGEN_INSTALL_STAGING = YES
13
EIGEN_INSTALL_TARGET = NO
14
EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
15
​
16
ifeq ($(BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES),y)
17
define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS
18
    mkdir -p $(EIGEN_DEST_DIR)/unsupported
19
    cp -a $(@D)/unsupported/Eigen $(EIGEN_DEST_DIR)/unsupported
20
endef
21
endif
22
​
23
# Generate the .pc file at build time
24
define EIGEN_BUILD_CMDS
25
    sed -r -e 's,^Version: .*,Version: $(EIGEN_VERSION),' \
26
        -e 's,^Cflags: .*,Cflags: -I$(EIGEN_DEST_DIR),' \
27
        $(@D)/eigen3.pc.in >$(@D)/eigen3.pc
28
endef
29
​
30
# This package only consists of headers that need to be
31
# copied over to the sysroot for compile time use
32
define EIGEN_INSTALL_STAGING_CMDS
33
    $(RM) -r $(EIGEN_DEST_DIR)
34
    mkdir -p $(EIGEN_DEST_DIR)
35
    cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
36
    $(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
37
    $(INSTALL) -D -m 0644 $(@D)/eigen3.pc \
38
        $(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc
39
endef
40
​
41
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.