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