18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64_and_32 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= flex |
28 COMPONENT_NAME= flex |
29 COMPONENT_VERSION= 2.5.35 |
29 COMPONENT_VERSION= 2.5.35 |
30 COMPONENT_PROJECT_URL= http://flex.sourceforge.net/ |
30 COMPONENT_PROJECT_URL= http://flex.sourceforge.net/ |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
33 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:0becbd4b2b36b99c67f8c22ab98f7f80c9860aec70f0350a0018f29a88704e7b |
33 sha256:0becbd4b2b36b99c67f8c22ab98f7f80c9860aec70f0350a0018f29a88704e7b |
35 COMPONENT_ARCHIVE_URL= http://softlayer.dl.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2 |
34 COMPONENT_ARCHIVE_URL= http://softlayer.dl.sourceforge.net/project/flex/flex/flex-2.5.35/flex-2.5.35.tar.bz2 |
36 COMPONENT_BUGDB= utility/flex |
|
37 |
35 |
38 TPNO= 14883 |
36 TPNO= 14883 |
39 |
37 |
40 SONAME=libfl.so.1 |
38 SONAME=libfl.so.1 |
41 LDFLAGS = $(CC_BITS) |
39 LDFLAGS += $(CC_BITS) |
42 |
40 |
43 include $(WS_MAKE_RULES)/prep.mk |
41 include $(WS_MAKE_RULES)/common.mk |
44 include $(WS_MAKE_RULES)/configure.mk |
|
45 include $(WS_MAKE_RULES)/ips.mk |
|
46 |
42 |
47 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
43 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
48 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
44 CONFIGURE_OPTIONS += M4="$(GNUBIN)/m4" |
49 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
50 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
51 CONFIGURE_OPTIONS += M4="/usr/gnu/bin/m4" |
|
52 |
45 |
53 COMPONENT_BUILD_ENV += SONAME="$(SONAME)" |
46 COMPONENT_BUILD_ENV += SONAME="$(SONAME)" |
54 COMPONENT_INSTALL_ENV += SONAME="$(SONAME)" |
47 COMPONENT_INSTALL_ENV += SONAME="$(SONAME)" |
55 |
48 |
56 COMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin |
49 COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(USRBINDIR) |
57 |
50 |
58 COMPONENT_BUILD_TARGETS += $(SONAME) |
51 COMPONENT_BUILD_TARGETS += $(SONAME) |
59 COMPONENT_INSTALL_TARGETS += $(SONAME) |
52 COMPONENT_INSTALL_TARGETS += $(SONAME) |
60 |
53 |
61 ASLR_MODE=$(ASLR_ENABLE) |
|
62 |
|
63 # common targets |
|
64 configure: $(CONFIGURE_32_and_64) |
|
65 |
|
66 build: $(BUILD_32_and_64) |
|
67 |
|
68 install: $(INSTALL_32_and_64) |
|
69 |
|
70 test: $(TEST_32_and_64) |
|
71 |
|
72 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
73 |
|
74 REQUIRED_PACKAGES += developer/macro/gnu-m4 |
54 REQUIRED_PACKAGES += developer/macro/gnu-m4 |
75 REQUIRED_PACKAGES += system/library |
|
76 REQUIRED_PACKAGES += system/library/math |
55 REQUIRED_PACKAGES += system/library/math |