Mike Sullivan
2012-04-27 35e110e60bf90ba837884dc5b9d0787ce91eb2dd
commit | author | age
61a323 1 #
PS 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 #
35e110 23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
61a323 24 #
PS 25
26 include ../../make-rules/shared-macros.mk
27
28 COMPONENT_NAME=        apache-ant
29 COMPONENT_VERSION=    1.7.1
60e6e0 30 COMPONENT_PROJECT_URL=    http://ant.apache.org/
61a323 31 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
PS 32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC)-src.tar.bz2
35e110 33 COMPONENT_ARCHIVE_HASH=    \
MS 34     sha256:4dc49a7260ef90a6dc6611b7e96b9f047d507589736d4a2ad6efbe3edfc6fba6
61a323 35 COMPONENT_ARCHIVE_URL=    http://archive.apache.org/dist/ant/source/$(COMPONENT_ARCHIVE)
PS 36
37 include ../../make-rules/prep.mk
38 include ../../make-rules/justmake.mk
39 include ../../make-rules/ips.mk
40
41 GMAKE=./build.sh
42
43 ANT_ENV+=JAVA_HOME=$(JAVA_HOME)
44 ANT_ENV+=CLASSPATH=/usr/share/lib/java/junit.jar:/usr/share/antlr-2.7.7/antlr.jar
45
46 ANT_DIST_DIRS+=-Ddist.dir=$(PROTO_DIR)
47 ANT_DIST_DIRS+=-Ddist.bin=$(PROTO_DIR)/usr/bin
48 ANT_DIST_DIRS+=-Ddist.etc=$(PROTO_DIR)/usr/share/lib/ant
49 ANT_DIST_DIRS+=-Ddist.docs=$(PROTO_DIR)/usr/share/doc/ant
50 ANT_DIST_DIRS+=-Ddist.javadocs=$(PROTO_DIR)/usr/share/doc/ant/manual/api
51 ANT_DIST_DIRS+=-Ddist.lib=$(PROTO_DIR)/usr/share/lib/ant
52
9dfd18 53 COMPONENT_BUILD_TARGETS =    build
NJ 54 COMPONENT_BUILD_ENV +=        $(ANT_ENV)
61a323 55
9dfd18 56 COMPONENT_INSTALL_ARGS =    $(ANT_DIST_DIRS)
NJ 57 COMPONENT_INSTALL_TARGETS =    dist
58 COMPONENT_INSTALL_ENV +=    $(ANT_ENV)
61a323 59
4158c0 60 COMPONENT_TEST_TARGETS =    test
NJ 61 COMPONENT_TEST_ENV +=        $(ANT_ENV)
61a323 62
PS 63 build:    $(BUILD_32)
64
4158c0 65 install: $(INSTALL_32)
61a323 66
4158c0 67 test:  $(TEST_32)
61a323 68
PS 69 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
70
71 include ../../make-rules/depend.mk