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]
21 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/make-rules
/shared-macros.mk
26 COMPONENT_VERSION
= 0.3.0
27 COMPONENT_PROJECT_URL
= http
://www.javascriptlint.com
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-src.
tar.gz
30 COMPONENT_ARCHIVE_HASH
= \
31 sha256
:86f16792d71fc59b96f65eca65b1b7466dc046efe6d5ac04c6632f1315e83cfa
32 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/download
/$(COMPONENT_ARCHIVE
)
33 COMPONENT_BUGDB
= utility
/jsl
37 include ..
/..
/make-rules
/prep.mk
38 include ..
/..
/make-rules
/justmake.mk
39 include ..
/..
/make-rules
/ips.mk
41 COMPONENT_BUILD_ARGS
= -f src
/Makefile
42 COMPONENT_BUILD_ARGS
+= CC
="$(CC)"
43 COMPONENT_BUILD_ARGS
+= COPTFLAGS
="$(gcc_OPT)"
44 COMPONENT_BUILD_TARGETS
+= all
46 COMPONENT_INSTALL_ARGS
+= -f src
/Makefile
47 COMPONENT_INSTALL_ARGS
+= BINDIR
=$(PROTOUSRBINDIR
)
48 COMPONENT_INSTALL_ARGS
+= USRSHAREDIR
=$(PROTOUSRSHAREDIR
)
49 COMPONENT_INSTALL_ARGS
+= INSTALL
="$(INSTALL)"
50 COMPONENT_INSTALL_ARGS
+= MKDIR
="$(MKDIR)"
52 COMPONENT_TEST_DIR
= $(COMPONENT_SRC
)/tests
53 COMPONENT_TEST_CMD
= $(PERL
) .
/run_tests.pl
54 COMPONENT_TEST_TARGETS
= $(PROTOUSRBINDIR
)/jsl
56 # Enable ASLR for this component
57 ASLR_MODE
= $(ASLR_ENABLE
)
61 install: $(INSTALL_32
)
63 test: install $(TEST_32
)
65 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
67 include ..
/..
/make-rules
/depend.mk