usr/src/cmd/gnuplot/Makefile.sfw
changeset 6 1fb1123973f8
child 17 4c6e1d5e1470
equal deleted inserted replaced
5:d07534556b03 6:1fb1123973f8
       
     1 #
       
     2 #
       
     3 # CDDL HEADER START
       
     4 #
       
     5 # The contents of this file are subject to the terms of the
       
     6 # Common Development and Distribution License (the "License").
       
     7 # You may not use this file except in compliance with the License.
       
     8 #
       
     9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    10 # or http://www.opensolaris.org/os/licensing.
       
    11 # See the License for the specific language governing permissions
       
    12 # and limitations under the License.
       
    13 #
       
    14 # When distributing Covered Code, include this CDDL HEADER in each
       
    15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    16 # If applicable, add the following below this CDDL HEADER, with the
       
    17 # fields enclosed by brackets "[]" replaced with your own identifying
       
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    19 #
       
    20 # CDDL HEADER END
       
    21 #
       
    22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
       
    23 # Use is subject to license terms.
       
    24 #
       
    25 
       
    26 #ident	"@(#)Makefile.sfw	1.1	10/01/04 SMI"
       
    27 
       
    28 
       
    29 VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
       
    30 
       
    31 include ../Makefile.cmd
       
    32 
       
    33 CCC += -norunpath
       
    34 
       
    35 all: $(VER)/config.status
       
    36 	(cd $(VER); env \
       
    37 	    "CC=$(CC)" \
       
    38 	    "CXX=$(CCC)" \
       
    39 	    "CFLAGS=$(CFLAGS)" \
       
    40 	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
       
    41 	    "PATH=$(SFW_PATH)" \
       
    42 	    "MAKE=$(CCSMAKE)" \
       
    43 	    "INSTALL=$(INSTALL)" \
       
    44 	    $(CCSMAKE))
       
    45 	(cd $(VER)/docs; env \
       
    46 	    "CC=$(CC)" \
       
    47 	    "CXX=$(CCC)" \
       
    48 	    "CFLAGS=$(CFLAGS)" \
       
    49 	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
       
    50 	    "PATH=$(SFW_PATH)" \
       
    51 	    "MAKE=$(CCSMAKE)" \
       
    52 	    "INSTALL=$(INSTALL)" \
       
    53 	    $(CCSMAKE) info)
       
    54 
       
    55 install: all
       
    56 	VER=$(VER) $(SH) ./install-sfw
       
    57 
       
    58 # Unfortunately, the following configure command causes the output
       
    59 # of "Fitting error variables: yes".  Because this output has a ":"
       
    60 # and the word "error" in it, Sun's nightly script (used to build
       
    61 # SFW) shows this line in Build errors, and the nightly fails.
       
    62 # Therefore, we will use sed to slightly modify the message.
       
    63 
       
    64 $(VER)/config.status: $(VER)/configure
       
    65 	(cd $(VER); env \
       
    66 	    "CC=$(CC)" \
       
    67 	    "CXX=$(CCC)" \
       
    68 	    "CFLAGS=$(CFLAGS)" \
       
    69 	    "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
       
    70 	    "PATH=$(SFW_PATH)" \
       
    71 	    "MAKE=$(CCSMAKE)" \
       
    72 	    "INSTALL=$(INSTALL)" \
       
    73 	    ./configure --prefix=/usr --libexecdir=/usr/lib | \
       
    74 	    sed 's/\<Fitting error variables\>/Fitting_error_variables/' )
       
    75 
       
    76 $(VER)/configure: $(VER).tar.gz
       
    77 	$(GTAR) zxpf $(VER).tar.gz --no-same-owner
       
    78 	patch $(VER)/src/wxterminal/wxt_gui.cpp < wxt_gui.cpp.diff
       
    79 	patch $(VER)/term/gd.trm < arial.diff
       
    80 	touch $(VER)/configure
       
    81 
       
    82 clean:
       
    83 	-rm -rf $(VER)
       
    84 
       
    85 include ../Makefile.targ
       
    86 
       
    87 FRC: