1762N/A#
1762N/A# CDDL HEADER START
1762N/A#
1762N/A# The contents of this file are subject to the terms of the
1762N/A# Common Development and Distribution License (the "License").
1762N/A# You may not use this file except in compliance with the License.
1762N/A#
1762N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1762N/A# or http://www.opensolaris.org/os/licensing.
1762N/A# See the License for the specific language governing permissions
1762N/A# and limitations under the License.
1762N/A#
1762N/A# When distributing Covered Code, include this CDDL HEADER in each
1762N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1762N/A# If applicable, add the following below this CDDL HEADER, with the
1762N/A# fields enclosed by brackets "[]" replaced with your own identifying
1762N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1762N/A#
1762N/A# CDDL HEADER END
1762N/A#
3996N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1762N/A#
3996N/A
3996N/A# Preferred compiler set to gcc and not Studio as on Sparc architecture
3996N/A# some assembler code is required for locking which fails to compile on
3996N/A# solaris, when using gcc this is inlined (see jslock.c)
3996N/ACOMPILER= gcc3
3996N/A
1762N/Ainclude ../../make-rules/shared-macros.mk
1762N/A
1762N/ACOMPONENT_NAME= jsl
1762N/ACOMPONENT_VERSION= 0.3.0
1762N/ACOMPONENT_PROJECT_URL= http://www.javascriptlint.com
1762N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1762N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
1762N/ACOMPONENT_ARCHIVE_HASH= \
1762N/A sha256:86f16792d71fc59b96f65eca65b1b7466dc046efe6d5ac04c6632f1315e83cfa
1762N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
1762N/ACOMPONENT_BUGDB= utility/jsl
1762N/A
3661N/ATPNO= 10774
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1762N/A
1762N/A
1762N/ACOMPONENT_BUILD_ARGS += -f src/Makefile
1762N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
1762N/ACOMPONENT_BUILD_ARGS += COPTFLAGS="$(gcc_OPT)"
1762N/ACOMPONENT_BUILD_TARGETS += all
1762N/A
1762N/ACOMPONENT_INSTALL_ARGS += -f src/Makefile
1762N/ACOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR64)
1762N/ACOMPONENT_INSTALL_ARGS += USRSHAREDIR=$(PROTOUSRSHAREDIR)
1762N/ACOMPONENT_INSTALL_ARGS += INSTALL="$(INSTALL)"
1762N/ACOMPONENT_INSTALL_ARGS += MKDIR="$(MKDIR)"
1762N/A
1762N/Abuild: $(BUILD_64)
1762N/A
1762N/Ainstall: $(INSTALL_64)
1762N/A
1762N/Atest:
1762N/A cd $(COMPONENT_SRC)/tests; $(PERL) ./run_tests.pl $(PROTOUSRBINDIR64)/jsl
1762N/A
1762N/A
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/math