|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
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. |
|
7 # |
|
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. |
|
12 # |
|
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] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME= ilmbase |
|
26 COMPONENT_VERSION= 1.0.1 |
|
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.openexr.com/ |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0 |
|
31 COMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE) |
|
32 |
|
33 include ../../make-rules/prep.mk |
|
34 include ../../make-rules/configure.mk |
|
35 include ../../make-rules/ips.mk |
|
36 |
|
37 PKG_CONFIG_PATH_32 = /usr/lib/pkgconfig |
|
38 PKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig |
|
39 |
|
40 PATCH_LEVEL = 0 |
|
41 |
|
42 # Prevent RPATH/RUNPATH, even in ./configure. If conftest |
|
43 # can't find something in the default search RUNPATH, we'd |
|
44 # like to know why. |
|
45 CFLAGS += -Xc -xnorunpath |
|
46 CFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX) $(CPP_LARGEFILES) |
|
47 CPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES) |
|
48 CXXFLAGS += $(CC_BITS) -mt -library=Crun -library=Cstd -compat=5 |
|
49 CXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1 |
|
50 CXXFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES) |
|
51 LDFLAGS += -lpthread -lc -lm |
|
52 LD_OPTIONS += -z ignore |
|
53 |
|
54 CONFIGURE_ENV += CXX="$(CCC)" |
|
55 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
56 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
|
57 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
58 CONFIGURE_ENV += CXXLINK="$(CCC) $(CXXFLAGS) $(LDFLAGS)" |
|
59 CONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E" |
|
60 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
|
61 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))" |
|
62 |
|
63 CONFIGURE_OPTIONS += --disable-static |
|
64 CONFIGURE_OPTIONS += --enable-threading |
|
65 CONFIGURE_OPTIONS += --enable-posix-sem |
|
66 CONFIGURE_OPTIONS += --with-pic |
|
67 |
|
68 PKG_PROTO_DIRS += $(COMPONENT_SRC) |
|
69 |
|
70 build: $(BUILD_32_and_64) |
|
71 |
|
72 include ../../make-rules/shared-targets.mk |
|
73 |
|
74 install: $(INSTALL_32_and_64) |
|
75 $(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \ |
|
76 $(INSTALL) -m 0644 Solaris/libilmbase.3lib $(PROTOUSRSHAREMAN3DIR)/ |
|
77 |
|
78 test: $(BUILD_32_and_64) |
|
79 @cd $(BUILD_DIR_32); $(GMAKE) check |
|
80 @cd $(BUILD_DIR_64); $(GMAKE) check |
|
81 |
|
82 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
83 |
|
84 include ../../make-rules/depend.mk |
|
85 |