Makefile revision 147
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
727N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/Ainclude ../../make-rules/shared-macros.mk
32N/A
32N/ACOMPONENT_NAME= openexr
313N/ACOMPONENT_VERSION= 1.6.1
313N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
313N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
313N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
313N/ACOMPONENT_ARCHIVE_HASH= sha1:b3650e6542f0e09daadb2d467425530bc8eec333
313N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
313N/A
313N/Ainclude ../../make-rules/prep.mk
313N/Ainclude ../../make-rules/configure.mk
313N/Ainclude ../../make-rules/ips.mk
313N/A
313N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
313N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
313N/A
313N/APATCH_LEVEL = 0
313N/A
127N/A# Prevent RPATH/RUNPATH, even in ./configure. If conftest
127N/A# can't find something in the default search RUNPATH, we'd
127N/A# like to know why.
127N/ACFLAGS += -Xc -xnorunpath
538N/ACFLAGS += $(studio_C99_ENABLE) $(CPP_POSIX) $(CPP_LARGEFILES)
538N/ACPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
538N/ACXXFLAGS += $(CC_BITS) -mt -library=Crun -library=Cstd -compat=5
538N/ACXXFLAGS += -D_XPG5 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1
538N/ACXXFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
538N/ALDFLAGS += -lpthread -lc -lm
538N/ALD_OPTIONS += -z ignore
538N/A
327N/ACONFIGURE_ENV += CXX="$(CCC)"
327N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
327N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
327N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
327N/ACONFIGURE_ENV += CXXLINK="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
327N/ACONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
327N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
327N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
327N/A
327N/ACONFIGURE_OPTIONS += --disable-static
327N/ACONFIGURE_OPTIONS += --enable-threading
327N/ACONFIGURE_OPTIONS += --enable-posix-sem
177N/ACONFIGURE_OPTIONS += --with-pic
177N/A
2N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
145N/A
883N/Abuild: $(BUILD_32_and_64)
26N/A
38N/AMAN1LIST = exrenvmap.1 exrheader.1 exrmakepreview.1 \
38N/A exrmaketiled.1 exrstdattr.1
26N/A
26N/Ainclude ../../make-rules/shared-targets.mk
477N/A
538N/Ainstall: $(INSTALL_32_and_64)
38N/A $(MKDIR) $(PROTOUSRSHAREMAN1DIR) ; \
2N/A list1='$(MAN1LIST)'; for f in $$list1; do \
6N/A $(INSTALL) -m 0644 Solaris/$$f $(PROTOUSRSHAREMAN1DIR)/ ; \
2N/A done
727N/A $(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \
2N/A $(INSTALL) -m 0644 Solaris/libopenexr.3lib $(PROTOUSRSHAREMAN3DIR)/
34N/A
34N/Atest: $(BUILD_32_and_64)
94N/A @cd $(BUILD_DIR_32); $(GMAKE) check
94N/A @cd $(BUILD_DIR_64); $(GMAKE) check
156N/A
156N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
34N/A
59N/Ainclude ../../make-rules/depend.mk
72N/A
72N/A