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