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.
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.
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]
23 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
26 include $(WS_MAKE_RULES
)/prep-download.mk
27 include $(WS_MAKE_RULES
)/prep-unpack.mk
28 include $(WS_MAKE_RULES
)/prep-patch.mk
30 UPDATE_AUX_FILES
= for f in
$$(find
$(SOURCE_DIR
) -type f
'(' -name config.guess
-o
-name config.sub
')'); do
install -m
0755 /usr
/share
/automake-1.11
/$$(basename $$f) $$f; done
31 # if the package is using libtool ("LT_INIT", or one of its deprecated
32 # aliases), then remove the package's libtool.m4 if any (system one gets used),
33 # regenerate aclocal.m4 (aclocal), and regenerate configure (autoconf). we must
34 # do this to get the unleashed-specific checks into configure.
35 LIBTOOL_AUTORECONF
= if grep
-wq
-e LT_INIT
-e
'A[CM]_PROG_LIBTOOL' $(SOURCE_DIR
)/configure.ac
; then cd
$(SOURCE_DIR
) && rm -f configure aclocal.m4 libtool.m4
*/libtool.m4
&& aclocal
&& autoconf
; fi
43 $(SOURCE_DIR
)/.prep
: download unpack patch
44 $(COMPONENT_PREP_ACTION
)
45 if
[ "$$(uname -s)" = "Unleashed" ]; then \
48 if
[ "$$(uname -s)" = "Unleashed" ]; then \
49 $(LIBTOOL_AUTORECONF
);\
53 prep
:: $(SOURCE_DIR
)/.prep
57 $(RM
) -r
$(CLEAN_PATHS
)
60 $(RM
) -r
$(CLOBBER_PATHS
)