components/grails/Makefile
changeset 413 1a6d7a739179
child 416 d3ce52a8aecd
equal deleted inserted replaced
412:5125546873a9 413:1a6d7a739179
       
     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, 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=	sha1:a8d93c599ada1e5259b7d5fc01a09a9b883c6885
       
    34 COMPONENT_ARCHIVE_URL=	http://dist.codehaus.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    35 
       
    36 include ../../make-rules/prep.mk
       
    37 include ../../make-rules/ant.mk
       
    38 include ../../make-rules/ips.mk
       
    39 
       
    40 # common targets
       
    41 build:		$(BUILD_32)
       
    42 
       
    43 # fix names with spaces
       
    44 # workaround for bug 6734267 (pkgmk does not allow spaces in file names)
       
    45 # the following files are not used directly by Grails framework...
       
    46 install:	build
       
    47 	(cd $(COMPONENT_SRC)/media/icons ; \
       
    48 		mv 'grails - 16x16 icon.png' grails-16x16icon.png ; \
       
    49 		mv 'grails - 32x32 icon.png' grails-32x32icon.png ; \
       
    50 		mv 'grails - 48x48 icon.png' grails-48x48icon.png ; \
       
    51 		mv 'grails - 64x64 icon.png' grails-64x64icon.png ; \
       
    52 		mv 'grails - 128x128 icon.png' grails-128x128icon.png)
       
    53 
       
    54 test:		$(NO_TESTS)
       
    55 
       
    56 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    57 
       
    58 include ../../make-rules/depend.mk