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.
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.
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]
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 1.9.9
30 COMPONENT_SUMMARY
= Apache Ant is a Java-based build tool
31 COMPONENT_PROJECT_URL
= http
://ant.apache.org
/
32 COMPONENT_SRC_NAME
= apache-ant
33 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-src.
tar.bz2
35 COMPONENT_ARCHIVE_HASH
= \
36 sha256
:69aa251ffb9f31312c21d67db197843e0b03b3c8cc3e0af6e6e92d98eb0f2ead
37 COMPONENT_ARCHIVE_URL
= http
://archive.apache.org
/dist/ant
/source
/$(COMPONENT_ARCHIVE
)
38 COMPONENT_BUGDB
= utility
/ant
39 COMPONENT_FMRI
= developer
/build
/ant
40 COMPONENT_CLASSIFICATION
= Development
/Distribution Tools
41 COMPONENT_LICENSE
= Apache v2.0
43 include $(WS_TOP
)/make-rules
/prep.mk
44 include $(WS_TOP
)/make-rules
/justmake.mk
45 include $(WS_TOP
)/make-rules
/ips.mk
49 ANT_ENV
+=JAVA_HOME
=$(JAVA_HOME
)
51 ANT_DIST_DIRS
+=-Ddist.
dir=$(PROTO_DIR
)
52 ANT_DIST_DIRS
+=-Ddist.bin
=$(PROTO_DIR
)/usr
/bin
53 ANT_DIST_DIRS
+=-Ddist.etc
=$(PROTO_DIR
)/usr
/share
/lib
/ant
54 ANT_DIST_DIRS
+=-Ddist.docs
=$(PROTO_DIR
)/usr
/share
/doc
/ant
55 ANT_DIST_DIRS
+=-Ddist.manual
=$(PROTO_DIR
)/usr
/share
/doc
/ant
/manual
56 ANT_DIST_DIRS
+=-Ddist.javadocs
=$(PROTO_DIR
)/usr
/share
/doc
/ant
/manual
/api
57 ANT_DIST_DIRS
+=-Ddist.lib
=$(PROTO_DIR
)/usr
/share
/lib
/ant
59 OPTIONAL_LIBS
+=/usr
/share
/lib
/java
/junit.jar
60 OPTIONAL_LIBS
+=/usr
/share
/antlr-2.7
.7/antlr.jar
62 COMPONENT_PRE_BUILD_ACTION
= $(CP
) $(OPTIONAL_LIBS
) $(@D
)/lib
/optional
64 COMPONENT_BUILD_ARGS
=
65 COMPONENT_BUILD_TARGETS
= build
66 COMPONENT_BUILD_ENV
+= $(ANT_ENV
)
68 COMPONENT_INSTALL_ARGS
= $(ANT_DIST_DIRS
)
69 COMPONENT_INSTALL_TARGETS
= dist
70 COMPONENT_INSTALL_ENV
+= $(ANT_ENV
)
72 COMPONENT_TEST_TARGETS
= test
73 COMPONENT_TEST_ENV
+= $(ANT_ENV
)
77 install: $(INSTALL_32
)