usr/src/cmd/gnuplot/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Sat, 26 Jun 2010 23:31:21 -0700
changeset 17 4c6e1d5e1470
parent 6 1fb1123973f8
permissions -rw-r--r--
Import sfw build 143 Bugs Fixed ---------- 6934319 Update gnuplot to version 4.4 6960032 update gocr to newer version 6961961 CVE-2010-2063 in Samba 3.3.x and below, a buffer overrun is possible in chain_reply code. 6962388 Wireshark update to version 1.2.9
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
#
17
4c6e1d5e1470 Import sfw build 143
Cyril Plisko <cyril.plisko@grigale.com>
parents: 6
diff changeset
    22
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
6
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    23
#
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
17
4c6e1d5e1470 Import sfw build 143
Cyril Plisko <cyril.plisko@grigale.com>
parents: 6
diff changeset
    25
#ident	"@(#)Makefile.sfw	1.2	10/04/23 SMI"
6
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
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
VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
include ../Makefile.cmd
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
CCC += -norunpath
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
all: $(VER)/config.status
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
	(cd $(VER); env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
	    "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
    40
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
	    $(CCSMAKE))
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
	(cd $(VER)/docs; env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
	    "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
    49
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    50
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
	    $(CCSMAKE) info)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    54
install: all
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
	VER=$(VER) $(SH) ./install-sfw
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
# Unfortunately, the following configure command causes the output
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    58
# of "Fitting error variables: yes".  Because this output has a ":"
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    59
# 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
    60
# 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
    61
# Therefore, we will use sed to slightly modify the message.
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    62
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
$(VER)/config.status: $(VER)/configure
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
	(cd $(VER); env \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    65
	    "CC=$(CC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    66
	    "CXX=$(CCC)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    67
	    "CFLAGS=$(CFLAGS)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    68
	    "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
    69
	    "PATH=$(SFW_PATH)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    70
	    "MAKE=$(CCSMAKE)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
	    "INSTALL=$(INSTALL)" \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    72
	    ./configure --prefix=/usr --libexecdir=/usr/lib | \
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    73
	    sed 's/\<Fitting error variables\>/Fitting_error_variables/' )
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    74
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    75
$(VER)/configure: $(VER).tar.gz
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    76
	$(GTAR) zxpf $(VER).tar.gz --no-same-owner
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    77
	patch $(VER)/term/gd.trm < arial.diff
17
4c6e1d5e1470 Import sfw build 143
Cyril Plisko <cyril.plisko@grigale.com>
parents: 6
diff changeset
    78
	patch $(VER)/src/syscfg.h < syscfg.h.diff
6
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    79
	touch $(VER)/configure
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    80
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    81
clean:
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    82
	-rm -rf $(VER)
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    83
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    84
include ../Makefile.targ
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    85
1fb1123973f8 Import sfw build 132
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    86
FRC: