Makefile revision 3595
225N/A#
225N/A# CDDL HEADER START
225N/A#
225N/A# The contents of this file are subject to the terms of the
225N/A# Common Development and Distribution License (the "License").
225N/A# You may not use this file except in compliance with the License.
225N/A#
225N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
225N/A# or http://www.opensolaris.org/os/licensing.
225N/A# See the License for the specific language governing permissions
225N/A# and limitations under the License.
225N/A#
225N/A# When distributing Covered Code, include this CDDL HEADER in each
225N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
225N/A# If applicable, add the following below this CDDL HEADER, with the
225N/A# fields enclosed by brackets "[]" replaced with your own identifying
225N/A# information: Portions Copyright [yyyy] [name of copyright owner]
225N/A#
225N/A# CDDL HEADER END
225N/A#
225N/A
225N/A#
2899N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
225N/A#
225N/A
225N/Ainclude ../../make-rules/shared-macros.mk
225N/A
225N/ACOMPONENT_NAME= grails
225N/ACOMPONENT_VERSION= 1.0.3
618N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
225N/ACOMPONENT_PROJECT_URL= http://grails.org/
225N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-src-$(COMPONENT_VERSION).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:529e3cb766e1d49ef60f591f4b9355c5f3d090e38ba193505685cc0cdb729a59
225N/ACOMPONENT_ARCHIVE_URL= http://dist.codehaus.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/grails
225N/A
2899N/ATPNO= 8709
2899N/A
225N/Ainclude ../../make-rules/prep.mk
225N/Ainclude ../../make-rules/ant.mk
225N/Ainclude ../../make-rules/ips.mk
225N/A
225N/A# Make sure we use the specially modified versions of grails and grails-debug
225N/ACOMPONENT_POST_UNPACK_ACTION = \
225N/A $(CP) $(COMPONENT_DIR)/files/grails $(SOURCE_DIR)/bin; \
225N/A $(CP) $(COMPONENT_DIR)/files/grails-debug $(SOURCE_DIR)/bin
225N/A
225N/ACOMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp
225N/ACOMPONENT_BUILD_ENV += "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
1392N/A
225N/A# Need to package the .jar files we've built, not the ones included in
225N/A# the source tarball.
225N/APKG_PROTO_DIRS = $(BUILD_DIR_32) $(MANGLED_DIR) $(PROTO_DIR) $(@D) \
892N/A $(COMPONENT_DIR) $(COMPONENT_SRC)
892N/A
892N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
892N/A
225N/A# common targets
225N/Abuild: $(BUILD_32)
225N/A
1989N/A# fix names with spaces
1989N/A# workaround for bug 6734267 (pkgmk does not allow spaces in file names)
225N/A# the following files are not used directly by Grails framework...
3477N/A$(INSTALL_32): $(BUILD_32)
3477N/A (cd $(COMPONENT_SRC)/media/icons ; \
892N/A mv 'grails - 16x16 icon.png' grails-16x16icon.png ; \
225N/A mv 'grails - 32x32 icon.png' grails-32x32icon.png ; \
892N/A mv 'grails - 48x48 icon.png' grails-48x48icon.png ; \
225N/A mv 'grails - 64x64 icon.png' grails-64x64icon.png ; \
892N/A mv 'grails - 128x128 icon.png' grails-128x128icon.png)
225N/A $(TOUCH) $@
225N/A
225N/Ainstall: $(INSTALL_32)
225N/A
225N/Atest: $(NO_TESTS)
897N/A
225N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
897N/A
892N/Ainclude ../../make-rules/depend.mk
225N/A