Obsolete golang-120
[oi-userland.git] / components / developer / jsl / Makefile
blob5c5e02c938b9f4d78201b5809e5be34d1a4a3497
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
21 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= jsl
26 COMPONENT_VERSION= 0.3.0
27 COMPONENT_REVISION= 1
28 COMPONENT_FMRI= developer/javascript/jsl
29 COMPONENT_SUMMARY= jsl - JavaScript code linter
30 COMPONENT_CLASSIFICATION= Development/Other Languages
31 COMPONENT_PROJECT_URL= http://www.javascriptlint.com
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:86f16792d71fc59b96f65eca65b1b7466dc046efe6d5ac04c6632f1315e83cfa
36 COMPONENT_ARCHIVE_URL= \
37 $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
38 COMPONENT_LICENSE= MPLv1.1, GPLv2, LGPLv2.1
40 include $(WS_MAKE_RULES)/prep.mk
41 include $(WS_MAKE_RULES)/justmake.mk
42 include $(WS_MAKE_RULES)/ips.mk
44 COMPONENT_BUILD_ARGS = -f src/Makefile
45 COMPONENT_BUILD_ARGS += CC="$(CC)"
46 COMPONENT_BUILD_ARGS += COPTFLAGS="$(gcc_OPT)"
47 COMPONENT_BUILD_TARGETS += all
49 COMPONENT_INSTALL_ARGS += -f src/Makefile
50 COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
51 COMPONENT_INSTALL_ARGS += USRSHAREDIR=$(PROTOUSRSHAREDIR)
52 COMPONENT_INSTALL_ARGS += INSTALL="$(INSTALL)"
53 COMPONENT_INSTALL_ARGS += MKDIR="$(MKDIR)"
55 COMPONENT_TEST_DIR = $(COMPONENT_SRC)/tests
56 COMPONENT_TEST_CMD = $(PERL) ./run_tests.pl
57 COMPONENT_TEST_TARGETS = $(PROTOUSRBINDIR)/jsl
59 # Enable ASLR for this component
60 ASLR_MODE = $(ASLR_ENABLE)
62 build: $(BUILD_64)
64 install: $(INSTALL_64)
66 test: install $(TEST_64)
68 # Auto-generated dependencies
69 REQUIRED_PACKAGES += system/library
70 REQUIRED_PACKAGES += system/library/math