20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 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= libspectre |
28 COMPONENT_NAME= libspectre |
29 COMPONENT_VERSION= 0.2.6 |
29 COMPONENT_VERSION= 0.2.6 |
30 COMPONENT_PROJECT_URL= http://libspectre.freedesktop.org |
30 COMPONENT_PROJECT_URL= http://libspectre.freedesktop.org |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:2f637c62322c8040514284c00f63a5c310a28801e7dcfbe2ba2791be4fac0dd3 |
32 sha256:2f637c62322c8040514284c00f63a5c310a28801e7dcfbe2ba2791be4fac0dd3 |
35 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= library/libspectre |
34 COMPONENT_BUGDB= library/libspectre |
37 |
35 |
38 TPNO= 7684 |
36 TPNO= 7684 |
39 |
37 |
40 include $(WS_MAKE_RULES)/prep.mk |
38 TEST_TARGET= $(NO_TESTS) |
41 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/common.mk |
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
40 |
44 COMPONENT_PREP_ACTION = \ |
41 COMPONENT_PREP_ACTION = \ |
45 (cd $(@D) ; \ |
42 (cd $(@D) ; \ |
46 aclocal -I . ; \ |
43 aclocal -I . ; \ |
47 libtoolize --force ; \ |
44 libtoolize --force ; \ |
48 autoheader ; \ |
45 autoheader ; \ |
49 automake -a -c -f ; \ |
46 automake -a -c -f ; \ |
50 autoconf ) |
47 autoconf ) |
51 |
48 |
52 |
|
53 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
54 CONFIGURE_OPTIONS += --disable-static |
49 CONFIGURE_OPTIONS += --disable-static |
55 CONFIGURE_OPTIONS += --enable-shared |
50 CONFIGURE_OPTIONS += --enable-shared |
56 CONFIGURE_OPTIONS += --with-pic |
51 CONFIGURE_OPTIONS += --with-pic |
57 |
52 |
58 # Always show the build and link lines for easier debugging. |
53 # Always show the build and link lines for easier debugging. |
59 COMPONENT_BUILD_ARGS += V=1 |
54 COMPONENT_BUILD_ARGS += V=1 |
60 |
55 |
61 ASLR_MODE = $(ASLR_ENABLE) |
56 ASLR_MODE = $(ASLR_ENABLE) |
62 |
57 |
63 configure: $(CONFIGURE_32_and_64) |
|
64 |
|
65 build: $(BUILD_32_and_64) |
|
66 |
|
67 install: $(INSTALL_32_and_64) |
|
68 |
|
69 test: $(NO_TESTS) |
|
70 |
|
71 system-test: $(NO_TESTS) |
|
72 |
|
73 REQUIRED_PACKAGES += print/filter/ghostscript |
58 REQUIRED_PACKAGES += print/filter/ghostscript |
74 REQUIRED_PACKAGES += system/library |
|