components/gnuplot/Makefile
author David Marx <David.M.Marx@Oracle.Com>
Tue, 26 Apr 2011 14:07:49 -0700
changeset 204 78dfe4707c7c
child 206 a4474882bf60
permissions -rw-r--r--
7028339 Desire to have gnuplot in userland gate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
204
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     1
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     2
# CDDL HEADER START
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     3
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     7
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    11
# and limitations under the License.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    12
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    18
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    19
# CDDL HEADER END
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    20
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    21
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    22
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    23
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    24
#
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    25
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    27
#libreadline.so needs libcurses.so, but -z ignore will not leave a dependency.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    28
LD_Z_IGNORE=
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    29
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    30
COMPONENT_NAME=		gnuplot
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    31
COMPONENT_VERSION=	4.4.0
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    32
IPS_PKG_NAME=           image/gnuplot
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    33
COMPONENT_DESCRIPTION=  "gnuplot - command-driven interactive function plotting program (4.4.0)"
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    34
COMPONENT_CLASSIFICATION="Applications/Graphics and Imaging"
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    35
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    36
COMPONENT_PROJECT_URL=  http://gnuplot.info/
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH= sha1:04a2eede7b2af8e64144aa8ffede6535b7a043b5
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    39
COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    40
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    41
COMPONENT_BUILD_TARGETS = all info install-am
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    42
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    43
include ../../make-rules/prep.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    44
include ../../make-rules/configure.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    45
include ../../make-rules/ips.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    46
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    47
CFLAGS += -xnorunpath -Bdirect
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    48
CXXFLAGS += -norunpath -Bdirect
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    49
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS  += --libexecdir=/usr/lib
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS  += --sysconfdir=/etc/gnu
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS  += --infodir=$(CONFIGURE_INFODIR)
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS  += CFLAGS="$(CFLAGS)"
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  += CXXFLAGS="$(CXXFLAGS)"
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    55
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    56
include ../../make-rules/shared-targets.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    57
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    58
# common targets
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    59
build:		$(BUILD_32)
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    60
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    61
install: build $(INSTALL_32) install_demo
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    62
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    63
# The Gnuplot Makefiles do not ship the demo files.
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    64
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    65
DEMO_FILES = *.bin *.cfg *.cor *.dat *.dem *.edf \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    66
    *.fnc *.inc nearmap.csv *.pdb *.r3d *.rgb *.png sound.par sound2.par \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    67
    start.par *.rot gnu-valley random-points gpdemos.tcl
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    68
DEMO_BINARIES = binary[123]
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    69
DEMO_SCRIPTS = rundemo runtcldemo
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    70
PROTODEMODIR = $(PROTOUSRDIR)/demo/gnuplot
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    71
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    72
install_demo:
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    73
	mkdir -p $(PROTODEMODIR)
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    74
	@(p=`pwd` && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    75
	    echo "+ cd $(SOURCE_DIR)/demo" && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    76
	    cd $(SOURCE_DIR)/demo && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    77
	    for file in $(DEMO_FILES); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    78
	    do \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    79
	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    80
	    cp -p $$file $(PROTODEMODIR); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    81
	    done && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    82
	    echo "+ cd $$p")
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    83
	@(p=`pwd` && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    84
	    echo "+ cd $(BUILD_DIR_32)/demo" && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    85
	    cd $(BUILD_DIR_32)/demo && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    86
	    for file in $(DEMO_BINARIES); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    87
	    do \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    88
	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    89
	    cp -p $$file $(PROTODEMODIR); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    90
	    done && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    91
	    echo "+ cd $$p")
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    92
	@(p=`pwd` && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    93
	    echo "+ cd $(COMPONENT_DIR)" && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    94
	    cd $(COMPONENT_DIR) && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    95
	    for file in $(DEMO_SCRIPTS); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    96
	    do \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    97
	    echo "+ cp -p $$file $(PROTODEMODIR)"; \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    98
	    cp -p $$file $(PROTODEMODIR); \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
    99
	    done && \
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   100
	    echo "+ cd $$p")
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   101
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   102
test: build
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   103
	@cd $(BUILD_DIR_32); $(MAKE) check
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   104
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   105
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   106
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   107
include ../../make-rules/depend.mk
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   108
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   109
78dfe4707c7c 7028339 Desire to have gnuplot in userland gate
David Marx <David.M.Marx@Oracle.Com>
parents:
diff changeset
   110