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= openexr |
28 COMPONENT_NAME= openexr |
26 COMPONENT_VERSION= 1.6.1 |
29 COMPONENT_VERSION= 1.6.1 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.openexr.com/ |
30 COMPONENT_PROJECT_URL= http://www.openexr.com/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950 |
32 sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950 |
32 COMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= library/openexr |
34 COMPONENT_BUGDB= library/openexr |
34 |
35 |
35 TPNO= 10771 |
36 TPNO= 10771 |
36 |
37 |
37 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/common.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
|
39 include $(WS_MAKE_RULES)/ips.mk |
|
40 |
39 |
41 PATCH_LEVEL = 0 |
40 PATCH_LEVEL = 0 |
42 |
41 |
43 # there seems to be no other way to enable large files support |
42 # there seems to be no other way to enable large files support |
44 CXXFLAGS += $(CPP_LARGEFILES) |
43 CXXFLAGS += $(CPP_LARGEFILES) |
58 '-e "/libtool/d"' \ |
57 '-e "/libtool/d"' \ |
59 '-e "/-m32/d"' \ |
58 '-e "/-m32/d"' \ |
60 '-e "/-m64/d"' \ |
59 '-e "/-m64/d"' \ |
61 '-e "/DEPDIR=/d"' |
60 '-e "/DEPDIR=/d"' |
62 |
61 |
63 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
64 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
|
65 CONFIGURE_ENV += LIBS="$(LIBS)" |
62 CONFIGURE_ENV += LIBS="$(LIBS)" |
66 |
63 |
67 CONFIGURE_OPTIONS += --disable-static |
64 CONFIGURE_OPTIONS += --disable-static |
68 CONFIGURE_OPTIONS += --enable-threading |
65 CONFIGURE_OPTIONS += --enable-threading |
69 CONFIGURE_OPTIONS += --enable-posix-sem |
66 CONFIGURE_OPTIONS += --enable-posix-sem |
70 CONFIGURE_OPTIONS += --with-pic |
67 CONFIGURE_OPTIONS += --with-pic |
71 |
68 |
72 PROTOPKGCONFIGDIR.32 = $(PROTOUSRLIBDIR)/pkgconfig |
69 PROTOPKGCONFIGDIR.32 = $(PROTOPKGCONFIGDIR) |
73 PROTOPKGCONFIGDIR.64 = $(PROTOUSRLIBDIR64)/pkgconfig |
70 PROTOPKGCONFIGDIR.64 = $(PROTOPKGCONFIGDIR64) |
74 |
71 |
75 COMPONENT_POST_INSTALL_ACTION = \ |
72 COMPONENT_POST_INSTALL_ACTION = \ |
76 ( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \ |
73 ( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \ |
77 $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc ) |
74 $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc ) |
78 |
75 |
79 ASLR_MODE = $(ASLR_ENABLE) |
76 ASLR_MODE = $(ASLR_ENABLE) |
80 |
77 |
81 configure: $(CONFIGURE_32_and_64) |
|
82 |
|
83 build: $(BUILD_32_and_64) |
|
84 |
|
85 install: $(INSTALL_32_and_64) |
|
86 |
|
87 test: $(TEST_32_and_64) |
|
88 |
|
89 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
90 |
|
91 REQUIRED_PACKAGES += library/ilmbase |
78 REQUIRED_PACKAGES += library/ilmbase |
92 REQUIRED_PACKAGES += library/zlib |
79 REQUIRED_PACKAGES += library/zlib |
93 REQUIRED_PACKAGES += system/library |
|
94 REQUIRED_PACKAGES += system/library/c++-runtime |
80 REQUIRED_PACKAGES += system/library/c++-runtime |
95 REQUIRED_PACKAGES += system/library/math |
81 REQUIRED_PACKAGES += system/library/math |
96 |
|