components/antlr/Makefile
branchs11-update
changeset 2723 138732f62341
child 2910 f8b8cbc43356
equal deleted inserted replaced
2722:dc566ca73390 2723:138732f62341
       
     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) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		antlr
       
    29 COMPONENT_VERSION=	2.7.7
       
    30 COMPONENT_PROJECT_URL=	http://www.antlr.org/
       
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH=	\
       
    34     sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
       
    35 COMPONENT_ARCHIVE_URL=	http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_BUGDB=	java-class/antlr
       
    37 
       
    38 # Use version of Java defined in ../../make-rules/shared-macros.mk
       
    39 PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
       
    40 
       
    41 include ../../make-rules/prep.mk
       
    42 include ../../make-rules/configure.mk
       
    43 include ../../make-rules/ips.mk
       
    44 
       
    45 PATCH_LEVEL =		0
       
    46 
       
    47 CONFIGURE_OPTIONS +=	--without-examples
       
    48 
       
    49 # pkgdepend doesn't like the first line of a Python script to be:
       
    50 # '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
       
    51 COMPONENT_POST_CONFIGURE_ACTION = \
       
    52 	$(GSED) -i -e 's/env python/python2.6/' \
       
    53 		$(BUILD_DIR_32)/scripts/pyantlr.sh
       
    54 
       
    55 COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
       
    56 COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
       
    57 COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
       
    58 COMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
       
    59 
       
    60 # Needed to find the antlr man page.
       
    61 PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
       
    62 
       
    63 COMPONENT_TEST_TARGETS = test
       
    64 
       
    65 ASLR_MODE = $(ASLR_ENABLE)
       
    66 
       
    67 # common targets
       
    68 build:          $(BUILD_32)
       
    69 
       
    70 install:        $(INSTALL_32)
       
    71 
       
    72 test:           $(TEST_32)
       
    73 
       
    74 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    75 
       
    76 include ../../make-rules/depend.mk