16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= 64_and_32 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= libconfuse |
28 COMPONENT_NAME= libconfuse |
26 COMPONENT_VERSION= 2.6 |
29 COMPONENT_VERSION= 2.6 |
27 COMPONENT_SRC_NAME= confuse |
30 COMPONENT_SRC_NAME= confuse |
28 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_PROJECT_URL= http://www.nongnu.org/confuse/ |
31 COMPONENT_PROJECT_URL= http://www.nongnu.org/confuse/ |
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
31 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:e8d653159b152f3850a7224b3eb604955795dbd3fd6603816ee46411ea53e84a |
33 sha256:e8d653159b152f3850a7224b3eb604955795dbd3fd6603816ee46411ea53e84a |
33 COMPONENT_ARCHIVE_URL= http://bzero.se/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= http://bzero.se/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_BUGDB= library/libconfuse |
35 COMPONENT_BUGDB= library/libconfuse |
35 |
36 |
36 TPNO= 6306 |
37 TPNO= 6306 |
37 |
38 |
38 include $(WS_MAKE_RULES)/prep.mk |
39 TEST_TARGET= install $(TEST_32_and_64) |
39 include $(WS_MAKE_RULES)/configure.mk |
40 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64) |
40 include $(WS_MAKE_RULES)/ips.mk |
41 include $(WS_MAKE_RULES)/common.mk |
41 |
42 |
42 CONFIGURE_OPTIONS += --disable-static |
43 CONFIGURE_OPTIONS += --disable-static |
43 CONFIGURE_OPTIONS += --enable-shared |
44 CONFIGURE_OPTIONS += --enable-shared |
44 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
45 |
45 |
46 # This is really only needed to get the test target to pass. |
46 # This is really only needed to get the test target to pass. |
47 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
47 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
48 |
48 |
49 COMPONENT_TEST_DIR = $(@D)/tests |
49 COMPONENT_TEST_DIR = $(@D)/tests |
69 TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
69 TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
70 TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
70 TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
71 COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
71 COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
72 |
72 |
73 ASLR_MODE = $(ASLR_ENABLE) |
73 ASLR_MODE = $(ASLR_ENABLE) |
74 |
|
75 configure: $(CONFIGURE_32_and_64) |
|
76 |
|
77 build: $(BUILD_32_and_64) |
|
78 |
|
79 install: $(INSTALL_32_and_64) |
|
80 |
|
81 test: install $(TEST_32_and_64) |
|
82 |
|
83 system-test: configure $(SYSTEM_TEST_32_and_64) |
|
84 |
|
85 REQUIRED_PACKAGES += system/library |
|