1 # |
|
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 # |
|
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= grails |
|
29 COMPONENT_VERSION= 1.0.3 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_PROJECT_URL= http://grails.org/ |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-src-$(COMPONENT_VERSION).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:529e3cb766e1d49ef60f591f4b9355c5f3d090e38ba193505685cc0cdb729a59 |
|
35 COMPONENT_ARCHIVE_URL= http://dist.codehaus.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= utility/grails |
|
37 |
|
38 TPNO= 8709 |
|
39 |
|
40 include $(WS_MAKE_RULES)/prep.mk |
|
41 include $(WS_MAKE_RULES)/ant.mk |
|
42 |
|
43 # Need to package the .jar files we've built, not the ones included in |
|
44 # the source tarball. So we need $(BUILD_DIR_32) added to $(PKG_PROTO_DIRS) |
|
45 # but it has to come at the beginning not the end, so we set it before we |
|
46 # include ips.mk. |
|
47 |
|
48 PKG_PROTO_DIRS = $(BUILD_DIR_32) |
|
49 |
|
50 include $(WS_MAKE_RULES)/ips.mk |
|
51 |
|
52 # Make sure we use the specially modified versions of grails and grails-debug |
|
53 COMPONENT_POST_UNPACK_ACTION = \ |
|
54 $(CP) $(COMPONENT_DIR)/files/grails $(SOURCE_DIR)/bin; \ |
|
55 $(CP) $(COMPONENT_DIR)/files/grails-debug $(SOURCE_DIR)/bin |
|
56 |
|
57 COMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp |
|
58 COMPONENT_BUILD_ENV += "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp" |
|
59 |
|
60 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
61 |
|
62 # common targets |
|
63 build: $(BUILD_32) |
|
64 |
|
65 # fix names with spaces |
|
66 # workaround for bug 6734267 (pkgmk does not allow spaces in file names) |
|
67 # the following files are not used directly by Grails framework... |
|
68 $(INSTALL_32): $(BUILD_32) |
|
69 (cd $(COMPONENT_SRC)/media/icons ; \ |
|
70 mv 'grails - 16x16 icon.png' grails-16x16icon.png ; \ |
|
71 mv 'grails - 32x32 icon.png' grails-32x32icon.png ; \ |
|
72 mv 'grails - 48x48 icon.png' grails-48x48icon.png ; \ |
|
73 mv 'grails - 64x64 icon.png' grails-64x64icon.png ; \ |
|
74 mv 'grails - 128x128 icon.png' grails-128x128icon.png) |
|
75 $(TOUCH) $@ |
|
76 |
|
77 install: $(INSTALL_32) |
|
78 |
|
79 test: $(NO_TESTS) |
|
80 |
|
81 system-test: $(NO_TESTS) |
|
82 |
|
83 REQUIRED_PACKAGES += runtime/perl-512 |
|
84 REQUIRED_PACKAGES += runtime/perl-520 |
|
85 REQUIRED_PACKAGES += runtime/python-27 |
|
86 REQUIRED_PACKAGES += shell/bash |
|
87 REQUIRED_PACKAGES += shell/ksh93 |
|