23 # |
23 # |
24 |
24 |
25 include ../../make-rules/shared-macros.mk |
25 include ../../make-rules/shared-macros.mk |
26 |
26 |
27 COMPONENT_NAME= cmake |
27 COMPONENT_NAME= cmake |
28 COMPONENT_VERSION= 2.6.2 |
28 COMPONENT_VERSION= 2.8.6 |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
31 COMPONENT_ARCHIVE_HASH= sha1:48d33afaf23d40f2ea9aa2f5018c7213983222c2 |
31 COMPONENT_ARCHIVE_HASH= sha1:7c2cbd42d27e26580cd4923892197b84b2a90675 |
32 COMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.6/$(COMPONENT_ARCHIVE) |
32 COMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v2.8/$(COMPONENT_ARCHIVE) |
33 COMPONENT_PROJECT_URL= http://www.cmake.org/ |
33 COMPONENT_PROJECT_URL= http://www.cmake.org/ |
34 |
34 |
35 include $(WS_TOP)/make-rules/prep.mk |
35 include $(WS_TOP)/make-rules/prep.mk |
36 include $(WS_TOP)/make-rules/configure.mk |
36 include $(WS_TOP)/make-rules/configure.mk |
37 include $(WS_TOP)/make-rules/ips.mk |
37 include $(WS_TOP)/make-rules/ips.mk |
48 CONFIGURE_ENV += CC="$(CC)" |
48 CONFIGURE_ENV += CC="$(CC)" |
49 CONFIGURE_ENV += CXX="$(CXX)" |
49 CONFIGURE_ENV += CXX="$(CXX)" |
50 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
50 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
51 CONFIGURE_ENV += MAKE="$(GMAKE)" |
51 CONFIGURE_ENV += MAKE="$(GMAKE)" |
52 |
52 |
53 # CmakeCache-txt is created by configure, so we need to patch |
53 # Use system-installed third-party libraries, rather than the private |
54 # it after configure |
54 # copies in the cmake source. Only libarchive will come from the cmake |
55 COMPONENT_POST_CONFIGURE_ACTION = ( cd $(BUILD_DIR_$(BITS)); \ |
55 # source, since it is not currently part of Solaris. |
56 $(GPATCH) $(GPATCH_FLAGS) < \ |
56 CONFIGURE_OPTIONS += --system-curl |
57 $(COMPONENT_DIR)/patches-post-config/CmakeCache-txt.patch ) |
57 CONFIGURE_OPTIONS += --system-expat |
|
58 CONFIGURE_OPTIONS += --system-zlib |
|
59 CONFIGURE_OPTIONS += --system-bzip2 |
58 |
60 |
59 COMPONENT_BUILD_ENV += CC="$(CC)" |
61 COMPONENT_BUILD_ENV += CC="$(CC)" |
60 COMPONENT_BUILD_ENV += CXX="$(CXX)" |
62 COMPONENT_BUILD_ENV += CXX="$(CXX)" |
61 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)" |
63 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)" |
62 COMPONENT_BUILD_ENV += MAKE="$(GMAKE)" |
64 COMPONENT_BUILD_ENV += MAKE="$(GMAKE)" |
63 COMPONENT_BUILD_TARGETS = all |
65 COMPONENT_BUILD_TARGETS = all |
|
66 |
|
67 # Need C and C++ compiler locations for cmake tests |
|
68 COMPONENT_TEST_ENV += CC="$(CC)" |
|
69 COMPONENT_TEST_ENV += CXX="$(CXX)" |
64 |
70 |
65 COMPONENT_TEST_TARGETS = test |
71 COMPONENT_TEST_TARGETS = test |
66 |
72 |
67 # common targets |
73 # common targets |
68 |
74 |
69 build: $(BUILD_32) |
75 build: $(BUILD_32) |
70 |
76 |
71 install: $(INSTALL_32) |
77 install: $(INSTALL_32) |
72 |
78 |
73 # expected failures: curl, complex, complexOneConfig |
79 # expected failure: CTestTestUpload |
74 test: $(TEST_32) |
80 test: $(TEST_32) |
75 |
81 |
76 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
82 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
77 |
83 |
78 include $(WS_TOP)/make-rules/depend.mk |
84 include $(WS_TOP)/make-rules/depend.mk |