Makefile revision 4374
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# The contents of this file are subject to the terms of the
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-src-$(COMPONENT_VERSION).tar.gz
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User sha256:529e3cb766e1d49ef60f591f4b9355c5f3d090e38ba193505685cc0cdb729a59
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://dist.codehaus.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# Need to package the .jar files we've built, not the ones included in
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# the source tarball. So we need $(BUILD_DIR_32) added to $(PKG_PROTO_DIRS)
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# but it has to come at the beginning not the end, so we set it before we
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# Make sure we use the specially modified versions of grails and grails-debug
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt $(CP) $(COMPONENT_DIR)/files/grails $(SOURCE_DIR)/bin; \
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User $(CP) $(COMPONENT_DIR)/files/grails-debug $(SOURCE_DIR)/bin
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_BUILD_ENV += "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# common targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# fix names with spaces
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# workaround for bug 6734267 (pkgmk does not allow spaces in file names)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# the following files are not used directly by Grails framework...
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater mv 'grails - 16x16 icon.png' grails-16x16icon.png ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews mv 'grails - 32x32 icon.png' grails-32x32icon.png ; \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews mv 'grails - 48x48 icon.png' grails-48x48icon.png ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews mv 'grails - 64x64 icon.png' grails-64x64icon.png ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews mv 'grails - 128x128 icon.png' grails-128x128icon.png)