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]
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 2.6.4
30 COMPONENT_PROJECT_URL
= https
://github.com
/westes
/flex
/releases
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
35 COMPONENT_ARCHIVE_URL
= https
://github.com
/westes
/flex
/releases
/download
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
39 include $(WS_MAKE_RULES
)/prep.mk
40 include $(WS_MAKE_RULES
)/configure.mk
41 include $(WS_MAKE_RULES
)/ips.mk
43 COMPONENT_PRE_CONFIGURE_ACTION
+= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
45 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
46 CONFIGURE_OPTIONS
+= M4
="$(GNUBIN)/m4"
48 COMPONENT_TEST_ENV
+= PATH
=$(GNUBIN
):$(USRBINDIR
)
49 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-all.master
51 COMPONENT_TEST_TRANSFORMS
+= \
61 build
: $(BUILD_32_and_64
)
63 install: $(INSTALL_32_and_64
)
65 test: $(TEST_32_and_64
)
67 REQUIRED_PACKAGES
+= developer
/macro
/gnu-m4
68 REQUIRED_PACKAGES
+= developer
/build
/help2man
69 REQUIRED_PACKAGES
+= system
/library
70 REQUIRED_PACKAGES
+= system
/library
/math