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, 2014, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= grails
29 COMPONENT_VERSION
= 1.0.3
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_PROJECT_URL
= http
://grails.org
/
33 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-src-
$(COMPONENT_VERSION
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:529e3cb766e1d49ef60f591f4b9355c5f3d090e38ba193505685cc0cdb729a59
36 COMPONENT_ARCHIVE_URL
= http
://dlc.openindiana.org
/oi-build
/source-archives
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_BUGDB
= utility
/grails
39 include $(WS_MAKE_RULES
)/prep.mk
40 include $(WS_MAKE_RULES
)/ant.mk
41 include $(WS_MAKE_RULES
)/ips.mk
43 # Make sure we use the specially modified versions of grails and grails-debug
44 COMPONENT_POST_UNPACK_ACTION
= \
45 $(CP
) $(COMPONENT_DIR
)/files
/grails
$(SOURCE_DIR
)/bin
; \
46 $(CP
) $(COMPONENT_DIR
)/files
/grails-debug
$(SOURCE_DIR
)/bin
48 COMPONENT_PRE_BUILD_ACTION
= $(MKDIR
) $(@D
)/tmp
49 COMPONENT_BUILD_ENV
+= "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
53 # Need to package the .jar files we've built, not the ones included in
55 PKG_PROTO_DIRS
= $(BUILD_DIR_32
) $(MANGLED_DIR
) $(PROTO_DIR
) $(@D
) \
56 $(COMPONENT_DIR
) $(COMPONENT_SRC
)
58 ASLR_MODE
= $(ASLR_NOT_APPLICABLE
)
63 # fix names with spaces
64 # workaround for bug 6734267 (pkgmk does not allow spaces in file names)
65 # the following files are not used directly by Grails framework...
66 $(INSTALL_32
): $(BUILD_32
)
67 (cd
$(COMPONENT_SRC
)/media
/icons
; \
68 mv
'grails - 16x16 icon.png' grails-16x16icon.png
; \
69 mv
'grails - 32x32 icon.png' grails-32x32icon.png
; \
70 mv
'grails - 48x48 icon.png' grails-48x48icon.png
; \
71 mv
'grails - 64x64 icon.png' grails-64x64icon.png
; \
72 mv
'grails - 128x128 icon.png' grails-128x128icon.png
)
75 install: $(INSTALL_32
)
79 REQUIRED_PACKAGES
+= SUNWcs
80 REQUIRED_PACKAGES
+= developer
/build
/ant
81 REQUIRED_PACKAGES
+= runtime
/java
/openjdk7
82 REQUIRED_PACKAGES
+= runtime
/java
/openjdk8
83 REQUIRED_PACKAGES
+= runtime
/perl-522
84 REQUIRED_PACKAGES
+= runtime
/python-27