2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-20 10:22:32 +01:00
|
|
|
#
|
|
|
|
# cmake
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-20 10:22:32 +01:00
|
|
|
|
2013-12-18 19:20:02 +01:00
|
|
|
CMAKE_VERSION_MAJOR = 2.8
|
2014-03-07 22:57:05 +01:00
|
|
|
CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).12.2
|
2013-12-18 19:20:02 +01:00
|
|
|
CMAKE_SITE = http://www.cmake.org/files/v$(CMAKE_VERSION_MAJOR)/
|
2013-01-20 10:22:32 +01:00
|
|
|
CMAKE_LICENSE = BSD-3c
|
|
|
|
CMAKE_LICENSE_FILES = Copyright.txt
|
2010-03-02 22:31:26 +01:00
|
|
|
|
|
|
|
define HOST_CMAKE_CONFIGURE_CMDS
|
2013-03-06 08:14:22 +01:00
|
|
|
(cd $(@D); \
|
|
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
./bootstrap --prefix=$(HOST_DIR)/usr --parallel=$(PARALLEL_JOBS) \
|
|
|
|
)
|
2010-03-02 22:31:26 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CMAKE_BUILD_CMDS
|
2013-03-06 08:14:22 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
2010-03-02 22:31:26 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CMAKE_INSTALL_CMDS
|
2013-03-06 08:14:22 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
2010-03-02 22:31:26 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|