1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/cmake/trunk/Makefile

Revision 17931, 2.5 KB (checked in by rthurner, 3 weeks ago)

cmake, upgrade to cmake-2.8.8

  • Property svn:keywords set to Id
Line 
1# $Id$
2
3NAME = cmake
4VERSION = 2.8.8
5CATEGORIES = devel
6GARTYPE = v2
7
8DESCRIPTION = Cross-platform make
9define BLURB
10  CMake is used to control the software compilation process using simple
11  platform and compiler independent configuration files. CMake generates
12  native makefiles and workspaces that can be used in the compiler environment
13  of your choice. CMake is quite sophisticated: it is possible to support
14  complex environments requiring system configuration, pre-processor
15  generation, code generation, and template instantiation.
16endef
17
18RELVER = $(shell echo $(VERSION) |gsed 's/\(^[0-9].*\)\.[0-9]*/\1/')
19SPKG_SOURCEURL = http://cmake.org/
20MASTER_SITES = http://cmake.org/files/v$(RELVER)/
21DISTFILES = $(NAME)-$(VERSION).tar.gz
22LICENSE = Copyright.txt
23
24PACKAGES = CSWcmake
25CATALOGNAME_CSWcmake = cmake
26SPKG_DESC_CSWcmake = $(DESCRIPTION)
27
28RUNTIME_DEP_PKGS_CSWcmake += CSWlibidn11
29
30datadir = /share/$(NAME)-$(VERSION)
31sharedstatedir = /share
32docdir = /share/doc/$(NAME)-$(VERSION)
33
34NOISALIST = 1
35CONFIGURE_ARGS = $(DIRPATHS) --docdir=$(docdir)
36
37TEST_TARGET  = test
38# Some tests are failing.
39SKIPTEST = 1
40
41CHECKPKG_OVERRIDES_CSWcmake += file-with-bad-content
42
43include gar/category.mk
44
45FIXCONFIG_DIRS += $(DESTDIR)$(prefix)/share/$(NAME)-$(VERSION)/Modules
46FIXCONFIG_DIRS += $(DESTDIR)$(prefix)/share/$(NAME)-$(VERSION)/Templates
47FIXCONFIG_DIRS += $(DESTDIR)$(prefix)$(docdir)
48FIXCONFIG_DIRS += $(DESTDIR)$(prefix)/share/man/man1
49
50EXTRA_CFLAGS = -xnorunpath
51EXTRA_CXXFLAGS = -norunpath
52
53pre-configure:
54        @echo $(DIRPATHS)
55        @echo "Docdir: $(docdir)"
56        # Do NOT include the CSW include pathes here
57        (cd $(WORKSRC); /usr/bin/env \
58                CFLAGS="$($(GARCOMPILER)_CC_$(GARFLAVOR)) -I/opt/csw/include" \
59                CXXFLAGS="$($(GARCOMPILER)_CXX_$(GARFLAVOR)) -I/opt/csw/include" \
60                LDFLAGS="-L/opt/csw/lib -R/opt/csw/lib/$$ISALIST -R/opt/csw/lib" \
61                ./bootstrap \
62                --prefix=$(prefix)      \
63                --datadir=$(datadir)    \
64                --docdir=$(docdir)      \
65                --mandir=/man           \
66                --system-libs \
67        )
68        @$(MAKECOOKIE)
69
70post-configure-modulated:
71        @(echo "==> Forcing use of system libraries")
72        @(echo "=====> curl, expat, xmlrpc, and zlib")
73        @(perl -i -plne 's/USE_SYSTEM_CURL:BOOL=OFF/USE_SYSTEM_CURL:BOOL=ON/' $(WORKSRC)/CMakeCache.txt)
74        @(perl -i -plne 's/USE_SYSTEM_EXPAT:BOOL=OFF/USE_SYSTEM_EXPAT:BOOL=ON/' $(WORKSRC)/CMakeCache.txt)
75        @(perl -i -plne 's/USE_SYSTEM_XMLRPC:BOOL=OFF/USE_SYSTEM_XMLRPC:BOOL=ON/' $(WORKSRC)/CMakeCache.txt)
76        @(perl -i -plne 's/USE_SYSTEM_ZLIB:BOOL=OFF/USE_SYSTEM_ZLIB:BOOL=ON/' $(WORKSRC)/CMakeCache.txt)
77        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.