1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 # 22 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)Makefile.sfw 1.3 08/12/04 SMI" 27 28 VER=cmake-2.6.2 29 PREFIX=/usr 30 31 include ../Makefile.cmd 32 33 all: $(VER)/Makefile 34 (cd $(VER); env - \ 35 CC="$(CC)" \ 36 CXX="$(CCC)" \ 37 LDFLAGS="-norunpath" \ 38 PATH=$(SFW_PATH) \ 39 MAKE=$(GMAKE) \ 40 $(GMAKE) all) 41 42 install: all 43 (cd $(VER); \ 44 $(GMAKE) install ) 45 VER=$(VER) $(SHELL) ./install-sfw 46 47 $(VER)/Makefile: $(VER)/configure $(VER)/bootstrap 48 (cd $(VER); env - \ 49 CC="$(CC)" \ 50 CXX="$(CCC)" \ 51 LDFLAGS="-norunpath" \ 52 PATH=$(SFW_PATH) \ 53 MAKE=$(GMAKE) \ 54 $(SHELL) ./configure $(CONFIGURE_OPTIONS) ) 55 # now fixup the cache 56 rm -f $(VER)/CMakeCache.txt.orig 57 mv $(VER)/CMakeCache.txt $(VER)/CMakeCache.txt.orig 58 sed \ 59 -e 's,HAVE_CRYPTO_CLEANUP_ALL_EX_DATA:INTERNAL=1,HAVE_CRYPTO_CLEANUP_ALL_EX_DATA:INTERNAL=,' \ 60 -e 's,HAVE_LIBCRYPTO:INTERNAL=1,HAVE_LIBCRYPTO:INTERNAL=,' \ 61 -e 's,HAVE_LIBSSL:INTERNAL=1,HAVE_LIBSSL:INTERNAL=,' \ 62 -e 's,HAVE_OPENSSL_CRYPTO_H:INTERNAL=1,HAVE_OPENSSL_CRYPTO_H:INTERNAL=,' \ 63 -e 's,HAVE_OPENSSL_ENGINE_H:INTERNAL=1,HAVE_OPENSSL_ENGINE_H:INTERNAL=,' \ 64 -e 's,HAVE_OPENSSL_ERR_H:INTERNAL=1,HAVE_OPENSSL_ERR_H:INTERNAL=,' \ 65 -e 's,HAVE_OPENSSL_PEM_H:INTERNAL=1,HAVE_OPENSSL_PEM_H:INTERNAL=,' \ 66 -e 's,HAVE_OPENSSL_PKCS12_H:INTERNAL=1,HAVE_OPENSSL_PKCS12_H:INTERNAL=,' \ 67 -e 's,HAVE_OPENSSL_RAND_H:INTERNAL=1,HAVE_OPENSSL_RAND_H:INTERNAL=,' \ 68 -e 's,HAVE_OPENSSL_RSA_H:INTERNAL=1,HAVE_OPENSSL_RSA_H:INTERNAL=,' \ 69 -e 's,HAVE_OPENSSL_SSL_H:INTERNAL=1,HAVE_OPENSSL_SSL_H:INTERNAL=,' \ 70 -e 's,HAVE_OPENSSL_X509_H:INTERNAL=1,HAVE_OPENSSL_X509_H:INTERNAL=,' \ 71 -e 's,HAVE_RAND_EGD:INTERNAL=1,HAVE_RAND_EGD:INTERNAL=,' \ 72 -e 's,HAVE_RAND_STATUS:INTERNAL=1,HAVE_RAND_STATUS:INTERNAL=,' \ 73 -e 's,;crypto,,' \ 74 -e 's,;ssl,,' \ 75 < $(VER)/CMakeCache.txt.orig \ 76 > $(VER)/CMakeCache.txt 77 78 $(VER)/configure: $(VER).tar.gz 79 /usr/sfw/bin/gtar xpfz $(VER).tar.gz 80 touch $(VER)/configure 81 /usr/bin/gpatch -p0 < $(VER).patch 82 83 clean: 84 -rm -rf $(VER) 85 86 include ../Makefile.targ 87 88 FRC: 89