0
|
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 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
22 |
# Use is subject to license terms.
|
|
23 |
#
|
|
24 |
#pragma ident "@(#)Makefile.sfw 1.2 09/03/12 SMI"
|
|
25 |
#
|
|
26 |
|
|
27 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
28 |
TARBALL = $(VER).tar.gz
|
|
29 |
PATCHES:sh = echo Patches/[0-9]*.patch
|
|
30 |
|
|
31 |
include ../Makefile.cmd
|
|
32 |
|
|
33 |
# Quilt will need this option until Solaris has GNU getopt.
|
|
34 |
CONFIGURE_OPTIONS += --without-getopt
|
|
35 |
|
|
36 |
# Because the build env doesn't have /usr/gnu/bin.
|
|
37 |
CONFIGURE_OPTIONS += --with-cp=/usr/gnu/bin/cp
|
|
38 |
CONFIGURE_OPTIONS += --with-date=/usr/gnu/bin/date
|
|
39 |
CONFIGURE_OPTIONS += --with-grep=/usr/gnu/bin/grep
|
|
40 |
CONFIGURE_OPTIONS += --with-tail=/usr/gnu/bin/tail
|
|
41 |
CONFIGURE_OPTIONS += --with-tr=/usr/gnu/bin/tr
|
|
42 |
CONFIGURE_OPTIONS += --with-sed=/usr/gnu/bin/sed
|
|
43 |
CONFIGURE_OPTIONS += --with-diff=/usr/gnu/bin/diff
|
|
44 |
CONFIGURE_OPTIONS += --with-patch=/usr/gnu/bin/patch
|
|
45 |
CONFIGURE_OPTIONS += --with-perl=/usr/perl5/bin/perl
|
|
46 |
CONFIGURE_OPTIONS += --with-pod2man=/usr/perl5/bin/pod2man
|
|
47 |
CONFIGURE_OPTIONS += --with-xgettext=/usr/bin/gxgettext
|
|
48 |
CONFIGURE_OPTIONS += --with-msgfmt=/usr/bin/gmsgfmt
|
|
49 |
|
|
50 |
all: $(VER)/config.status
|
|
51 |
(cd $(VER); env -\
|
|
52 |
CC=$(CC) \
|
|
53 |
PATH=$(SFW_PATH) \
|
|
54 |
MAKE=$(GMAKE) $(GMAKE))
|
|
55 |
|
|
56 |
install: all
|
|
57 |
$(SHELL) ./install-sfw
|
|
58 |
|
|
59 |
$(VER)/config.status: $(VER)/configure
|
|
60 |
(cd $(VER); env -\
|
|
61 |
CC=$(CC) \
|
|
62 |
PATH=$(SFW_PATH) \
|
|
63 |
MAKE=$(GMAKE) \
|
|
64 |
$(SHELL) ./configure $(CONFIGURE_OPTIONS))
|
|
65 |
|
|
66 |
$(VER)/configure: $(VER)/configure.ac
|
|
67 |
(cd $(VER); autoconf)
|
|
68 |
|
|
69 |
$(VER)/configure.ac: $(VER)/.patched
|
|
70 |
touch $@
|
|
71 |
|
|
72 |
clean:
|
|
73 |
-$(RM) -rf $(VER)
|
|
74 |
|
|
75 |
include ../Makefile.targ
|