Makefile revision 204
204N/A#
204N/A# CDDL HEADER START
204N/A#
204N/A# The contents of this file are subject to the terms of the
204N/A# Common Development and Distribution License (the "License").
204N/A# You may not use this file except in compliance with the License.
204N/A#
204N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
204N/A# or http://www.opensolaris.org/os/licensing.
204N/A# See the License for the specific language governing permissions
204N/A# and limitations under the License.
204N/A#
204N/A# When distributing Covered Code, include this CDDL HEADER in each
204N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
204N/A# If applicable, add the following below this CDDL HEADER, with the
204N/A# fields enclosed by brackets "[]" replaced with your own identifying
204N/A# information: Portions Copyright [yyyy] [name of copyright owner]
204N/A#
204N/A# CDDL HEADER END
204N/A#
204N/A
204N/A#
204N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
204N/A#
204N/A
204N/Ainclude ../../make-rules/shared-macros.mk
204N/A#libreadline.so needs libcurses.so, but -z ignore will not leave a dependency.
204N/ALD_Z_IGNORE=
204N/A
204N/ACOMPONENT_NAME= gnuplot
204N/ACOMPONENT_VERSION= 4.4.0
204N/AIPS_PKG_NAME= image/gnuplot
204N/ACOMPONENT_DESCRIPTION= "gnuplot - command-driven interactive function plotting program (4.4.0)"
204N/ACOMPONENT_CLASSIFICATION="Applications/Graphics and Imaging"
204N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
204N/ACOMPONENT_PROJECT_URL= http://gnuplot.info/
204N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
204N/ACOMPONENT_ARCHIVE_HASH= sha1:04a2eede7b2af8e64144aa8ffede6535b7a043b5
204N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
204N/A
204N/ACOMPONENT_BUILD_TARGETS = all info install-am
204N/A
204N/Ainclude ../../make-rules/prep.mk
204N/Ainclude ../../make-rules/configure.mk
204N/Ainclude ../../make-rules/ips.mk
204N/A
204N/ACFLAGS += -xnorunpath -Bdirect
204N/ACXXFLAGS += -norunpath -Bdirect
204N/A
204N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib
204N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/gnu
204N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
204N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
204N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
204N/A
204N/Ainclude ../../make-rules/shared-targets.mk
204N/A
204N/A# common targets
204N/Abuild: $(BUILD_32)
204N/A
204N/Ainstall: build $(INSTALL_32) install_demo
204N/A
204N/A# The Gnuplot Makefiles do not ship the demo files.
204N/A
204N/ADEMO_FILES = *.bin *.cfg *.cor *.dat *.dem *.edf \
204N/A *.fnc *.inc nearmap.csv *.pdb *.r3d *.rgb *.png sound.par sound2.par \
204N/A start.par *.rot gnu-valley random-points gpdemos.tcl
204N/ADEMO_BINARIES = binary[123]
204N/ADEMO_SCRIPTS = rundemo runtcldemo
204N/APROTODEMODIR = $(PROTOUSRDIR)/demo/gnuplot
204N/A
204N/Ainstall_demo:
204N/A mkdir -p $(PROTODEMODIR)
204N/A @(p=`pwd` && \
204N/A echo "+ cd $(SOURCE_DIR)/demo" && \
204N/A cd $(SOURCE_DIR)/demo && \
204N/A for file in $(DEMO_FILES); \
204N/A do \
204N/A echo "+ cp -p $$file $(PROTODEMODIR)"; \
204N/A cp -p $$file $(PROTODEMODIR); \
204N/A done && \
204N/A echo "+ cd $$p")
204N/A @(p=`pwd` && \
204N/A echo "+ cd $(BUILD_DIR_32)/demo" && \
204N/A cd $(BUILD_DIR_32)/demo && \
204N/A for file in $(DEMO_BINARIES); \
204N/A do \
204N/A echo "+ cp -p $$file $(PROTODEMODIR)"; \
204N/A cp -p $$file $(PROTODEMODIR); \
204N/A done && \
204N/A echo "+ cd $$p")
204N/A @(p=`pwd` && \
204N/A echo "+ cd $(COMPONENT_DIR)" && \
204N/A cd $(COMPONENT_DIR) && \
204N/A for file in $(DEMO_SCRIPTS); \
204N/A do \
204N/A echo "+ cp -p $$file $(PROTODEMODIR)"; \
204N/A cp -p $$file $(PROTODEMODIR); \
204N/A done && \
204N/A echo "+ cd $$p")
204N/A
204N/Atest: build
204N/A @cd $(BUILD_DIR_32); $(MAKE) check
204N/A
204N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
204N/A
204N/Ainclude ../../make-rules/depend.mk
204N/A
204N/A
204N/A