usr/src/cmd/gnuplot/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Mon, 08 Feb 2010 12:51:29 +0200
changeset 6 1fb1123973f8
child 17 4c6e1d5e1470
permissions -rw-r--r--
Import sfw build 132 Bugs Fixed ---------- 6802880 Add NTLM support to fetchmail 6825333 Update fetchmail to version 6.3.13 6857014 Update MySQL in Nevada to version 5.1.37 6857426 Desire to have gnuplot in Solaris WOS 6892501 Bad build of mysql: reproducible segfault on SUNWmysql, not found in mysql.com-released versions 6895305 Package SUNWswig delivers python scripts with wrong interpreters path 6906268 CVE-2009-4029 - race condition vulnerability in automake 6910076 mc should use slang from proto area instead of installed system 6911348 back port pdo race bug for opensolaris 6911349 deliver nsapi extension within php for opensolaris 6911952 logilab-common and logilab-astng do not build correctly in OpenSolaris 6912082 Update check-deps.pl to version 2009-12-18 6914260 update default copyright to 2010 6915019 SFW build issues with python2.6 as the default 6915404 back port nsapi optimization patch for opensolaris 6915651 Regression in libexpat may break XML parser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
# CDDL HEADER START
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# The contents of this file are subject to the terms of the
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# Common Development and Distribution License (the "License").
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
# You may not use this file except in compliance with the License.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# See the License for the specific language governing permissions
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
# and limitations under the License.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
# CDDL HEADER END
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    23
# Use is subject to license terms.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    25
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
#ident	"@(#)Makefile.sfw	1.1	10/01/04 SMI"
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
include ../Makefile.cmd
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
CCC += -norunpath
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
all: $(VER)/config.status
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
	(cd $(VER); env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    40
	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
	    $(CCSMAKE))
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
	(cd $(VER)/docs; env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    49
	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    50
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
	    $(CCSMAKE) info)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    54
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
install: all
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
	VER=$(VER) $(SH) ./install-sfw
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    58
# Unfortunately, the following configure command causes the output
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    59
# of "Fitting error variables: yes".  Because this output has a ":"
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    60
# and the word "error" in it, Sun's nightly script (used to build
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    61
# SFW) shows this line in Build errors, and the nightly fails.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    62
# Therefore, we will use sed to slightly modify the message.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
$(VER)/config.status: $(VER)/configure
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    65
	(cd $(VER); env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    66
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    67
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    68
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    69
	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    70
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    72
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    73
	    ./configure --prefix=/usr --libexecdir=/usr/lib | \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    74
	    sed 's/\<Fitting error variables\>/Fitting_error_variables/' )
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    75
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    76
$(VER)/configure: $(VER).tar.gz
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    77
	$(GTAR) zxpf $(VER).tar.gz --no-same-owner
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    78
	patch $(VER)/src/wxterminal/wxt_gui.cpp < wxt_gui.cpp.diff
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    79
	patch $(VER)/term/gd.trm < arial.diff
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    80
	touch $(VER)/configure
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    81
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    82
clean:
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    83
	-rm -rf $(VER)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    84
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    85
include ../Makefile.targ
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    86
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    87
FRC: