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