|
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) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= expect |
|
29 COMPONENT_VERSION= 5.45 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:e634992cab35b7c6931e1f21fbb8f74d464bd496 |
|
33 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/expect/files/Expect/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
|
34 |
|
35 include ../../../make-rules/prep.mk |
|
36 include ../../../make-rules/configure.mk |
|
37 include ../../../make-rules/ips.mk |
|
38 |
|
39 SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \ |
|
40 passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \ |
|
41 tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm |
|
42 |
|
43 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
44 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
45 |
|
46 COMPONENT_PRE_BUILD_ACTION = \ |
|
47 (cd $(@D); $(GMAKE) all ${SCRIPTS};) |
|
48 |
|
49 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
50 CONFIGURE_OPTIONS += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)" |
|
51 CONFIGURE_OPTIONS += --with-tclinclude="$(COMPONENT_DIR)/../tcl/build/$(MACH32)/generic" |
|
52 CONFIGURE_OPTIONS += --enable-shared |
|
53 |
|
54 COMPONENT_TEST_TARGETS = test |
|
55 |
|
56 # common targets |
|
57 build: $(BUILD_32) |
|
58 |
|
59 install: $(INSTALL_32) |
|
60 |
|
61 test: $(TEST_32) |
|
62 |
|
63 # special targets due to tcl internals dependencies |
|
64 ../tcl/build/%/.built: |
|
65 (cd ../tcl ; $(GMAKE) build) |
|
66 |
|
67 $(SOURCE_DIR)/.prep: ../tcl/build/$(MACH32)/.built \ |
|
68 ../tcl/build/$(MACH64)/.built |
|
69 |
|
70 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
71 |
|
72 include ../../../make-rules/depend.mk |