components/openexr/Makefile
changeset 3758 cc71a31c59be
parent 2225 f064d3d3190d
child 3817 30b42c38bbc4
equal deleted inserted replaced
3757:d594e0e76eb6 3758:cc71a31c59be
    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, 2014, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../make-rules/shared-macros.mk
    23 include ../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=         openexr
    25 COMPONENT_NAME=         openexr
    26 COMPONENT_VERSION=      1.6.1
    26 COMPONENT_VERSION=      1.6.1
    40 
    40 
    41 PATCH_LEVEL = 0
    41 PATCH_LEVEL = 0
    42 
    42 
    43 # there seems to be no other way to enable large files support
    43 # there seems to be no other way to enable large files support
    44 CXXFLAGS += $(CPP_LARGEFILES)
    44 CXXFLAGS += $(CPP_LARGEFILES)
       
    45 
    45 # it seems that --with-pic doesn't get PIC flags to the C++ compiler
    46 # it seems that --with-pic doesn't get PIC flags to the C++ compiler
    46 CXXFLAGS += $(CC_PIC)
    47 CXXFLAGS += $(CC_PIC)
       
    48 
       
    49 ifneq (, $(findstring 12.4,$(CXX)))
       
    50   CXXFLAGS += -template=extdef
       
    51 endif
       
    52 
    47 # libtools seems to be forcing -nolibs, so we have to add back libc, libm,
    53 # libtools seems to be forcing -nolibs, so we have to add back libc, libm,
    48 # libCstd and libCrun. The last two are needed because with Studio 12.2
    54 # libCstd and libCrun. The last two are needed because with Studio 12.2
    49 # (and beyond), there is a bug in the CC driver that is not correctly using
    55 # (and beyond), there is a bug in the CC driver that is not correctly using
    50 # the '-library=Cstd,Crun' we are passing to it.
    56 # the '-library=Cstd,Crun' we are passing to it.
    51 LIBS += -lc -lm -lCstd -lCrun
    57 LIBS += -lc -lm -lCstd -lCrun
       
    58 
       
    59 COMPONENT_TEST_TRANSFORMS += \
       
    60      '-e "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g"'
    52 
    61 
    53 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
    62 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
    54 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
    63 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
    55 CONFIGURE_ENV += LIBS="$(LIBS)"
    64 CONFIGURE_ENV += LIBS="$(LIBS)"
    56 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
    65 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
    57 
    66 
    58 CONFIGURE_OPTIONS  +=           --disable-static
    67 CONFIGURE_OPTIONS  +=           --disable-static
    59 CONFIGURE_OPTIONS  +=           --enable-threading
    68 CONFIGURE_OPTIONS  +=           --enable-threading
    60 CONFIGURE_OPTIONS  +=           --enable-posix-sem
    69 CONFIGURE_OPTIONS  +=           --enable-posix-sem
    61 CONFIGURE_OPTIONS  +=           --with-pic
    70 CONFIGURE_OPTIONS  +=           --with-pic
       
    71 
       
    72 PROTOPKGCONFIGDIR.32 = $(PROTOUSRLIBDIR)/pkgconfig
       
    73 PROTOPKGCONFIGDIR.64 = $(PROTOUSRLIBDIR64)/pkgconfig
       
    74 
       
    75 COMPONENT_POST_INSTALL_ACTION = \
       
    76 	( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \
       
    77 	$(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc )
    62 
    78 
    63 ASLR_MODE = $(ASLR_ENABLE)
    79 ASLR_MODE = $(ASLR_ENABLE)
    64 
    80 
    65 configure:	$(CONFIGURE_32_and_64)
    81 configure:	$(CONFIGURE_32_and_64)
    66 
    82