5357N/A#
5357N/A# CDDL HEADER START
5357N/A#
5357N/A# The contents of this file are subject to the terms of the
5357N/A# Common Development and Distribution License (the "License").
5357N/A# You may not use this file except in compliance with the License.
5357N/A#
5357N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5357N/A# or http://www.opensolaris.org/os/licensing.
5357N/A# See the License for the specific language governing permissions
5357N/A# and limitations under the License.
5357N/A#
5357N/A# When distributing Covered Code, include this CDDL HEADER in each
5357N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5357N/A# If applicable, add the following below this CDDL HEADER, with the
5357N/A# fields enclosed by brackets "[]" replaced with your own identifying
5357N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5357N/A#
5357N/A# CDDL HEADER END
5357N/A#
5680N/A
5680N/A#
5357N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5357N/A#
5680N/ABUILD_BITS= 64_and_32
5680N/ACOMPILER= gcc
5357N/Ainclude ../../make-rules/shared-macros.mk
5357N/A
5357N/ACOMPONENT_NAME= cloog
5357N/ACOMPONENT_VERSION= 0.18.3
5357N/ACOMPONENT_PROJECT_URL= http://www.cloog.org/
5357N/ACOMPONENT_ARCHIVE_HASH= \
5357N/A sha256:460c6c740acb8cdfbfbb387156b627cf731b3837605f2ec0001d079d89c69734
5357N/ACOMPONENT_ARCHIVE_URL= http://www.bastoul.net/cloog/pages/download/$(COMPONENT_ARCHIVE)
5357N/ACOMPONENT_BUGDB= library/cloog
5357N/A
5357N/ATPNO= 23800
5357N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5357N/A
5357N/APATCH_LEVEL := 0
5357N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris
5680N/APATH="$(GNUBIN):$(USRDIR)/perl5/bin:$(USRBINDIR):$(USRSBINDIR)"
5357N/A
5357N/A# Don't use SSE3 or SSSE3 on Intel, because it's not completely portable.
5357N/A# Do not tell GCC to assume strictly correct pointer aliasing. CLooG
5357N/A# employs casts from incompatible pointer types.
5357N/A# General-purpose SPARC incantations:
5357N/A# - build for UltraSPARC-III (use fp registers for int whenever possible)
5357N/A# - use VIS-2 Instructions whenever possible
5357N/A# - there are no misaligned doubles in this code
5357N/A# - don't do software float (we're not using quat-precision).
5357N/ACLOOG_GCC_ARCH_i386 = -mtune=opteron -march=opteron -mno-sse3 -mno-ssse3
5357N/ACLOOG_GCC_ARCH_i386 += -fno-omit-frame-pointer -fno-strict-aliasing
5357N/ACLOOG_GCC_ARCH_sparc = -mtune=ultrasparc3 -mcpu=ultrasparc3 -mvis2 -mhard-float
5357N/ACLOOG_GCC_ARCH_sparc += -fno-strict-aliasing -mno-unaligned-doubles
5357N/ACLOOG_GCC_ARCH = $(CLOOG_GCC_ARCH_$(MACH))
5357N/ACLOOG_GCC_ARCH += -Wall -Wextra -Wcast-qual -Wcast-align
5357N/A
5357N/ACFLAGS = $(CC_BITS)
5357N/ACFLAGS += -O2 -std=c99
5357N/ACFLAGS += -D__C99FEATURES__
5357N/ACFLAGS += -D_STDC_C99
5357N/ACFLAGS += $(CPP_XPG6MODE)
5357N/ACFLAGS += $(CLOOG_GCC_ARCH)
5357N/ACFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align
5357N/A
5357N/ACXXFLAGS = $(CC_BITS)
5357N/ACXXFLAGS += -O2 -std=c++03
5357N/ACXXFLAGS += $(CPP_XPG5MODE)
5357N/ACXXFLAGS += $(CLOOG_GCC_ARCH)
5357N/ACXXFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align
5357N/A
5357N/ACPPFLAGS += $(CPP_LARGEFILES)
5357N/ACPPFLAGS += `pkg-config --cflags libgmp`
5357N/ACPPFLAGS += `pkg-config --cflags libmpfr`
5357N/ACPPFLAGS += `pkg-config --cflags isl`
5357N/A
5357N/ACONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5357N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
5357N/ACONFIGURE_ENV += LIBS="$(LIBS)"
5357N/ACONFIGURE_ENV += PATH="$(PATH)"
5357N/A
5357N/ACOMPONENT_BUILD_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5357N/A
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
5357N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5357N/ACONFIGURE_OPTIONS += --enable-shared
5357N/ACONFIGURE_OPTIONS += --disable-silent-rules
5357N/ACONFIGURE_OPTIONS += --disable-libtool-lock
5357N/ACONFIGURE_OPTIONS += --with-gcc-arch="$(CLOOG_GCC_ARCH)"
5357N/ACONFIGURE_OPTIONS += --with-isl=system
5357N/ACONFIGURE_OPTIONS += --with-isl-prefix=$(CONFIGURE_PREFIX)
5357N/ACONFIGURE_OPTIONS += --with-gmp=system
5357N/ACONFIGURE_OPTIONS += --with-gmp-prefix=$(CONFIGURE_PREFIX)
5357N/A
5357N/ACOMPONENT_POST_INSTALL_ACTION = \
5357N/A ( cd $(PROTOUSRDIR) ; \
5357N/A $(MKDIR) $(PROTOUSRLIBDIR)/pkgconfig ; \
5357N/A $(CP) $(COMPONENT_DIR)/Solaris/cloog-isl.pc \
5357N/A $(PROTOUSRLIBDIR)/pkgconfig/ ; \
5357N/A $(GSED) -i 's^LIBDIR^$(USRLIBDIR)^g' \
5357N/A $(PROTOUSRLIBDIR)/pkgconfig/cloog-isl.pc ; \
5357N/A $(MKDIR) $(PROTOUSRLIBDIR64)/pkgconfig ; \
5357N/A $(CP) $(COMPONENT_DIR)/Solaris/cloog-isl.pc \
5357N/A $(PROTOUSRLIBDIR64)/pkgconfig/ ; \
5357N/A $(GSED) -i 's^LIBDIR^$(USRLIBDIR64)^g' \
5357N/A $(PROTOUSRLIBDIR64)/pkgconfig/cloog-isl.pc )
5357N/A
5357N/ACOMPONENT_TEST_ENV += libtool_install_magic='%%%MAGIC variable%%%'
5357N/ACOMPONENT_TEST_ENV += libtool_execute_magic='%%%MAGIC variable%%%'
5357N/ACOMPONENT_TEST_ENV += $(TEST_PATH)
5357N/ACOMPONENT_TEST_ENV += $(TARGET_ENV)
5357N/A
5357N/ACOMPONENT_TEST_MASTER = \
5357N/A $(COMPONENT_TEST_RESULTS_DIR)/results-cloog.master
5357N/A
5357N/ACOMPONENT_TEST_TRANSFORMS += \
5357N/A '-e "/libtool/d"' \
5357N/A '-e "/-m32/d"' \
5357N/A '-e "/-m64/d"' \
5357N/A '-e "/ld: warning/d"' \
5357N/A '-e "/warning/d"' \
5357N/A '-e "/prototype:/d"' \
5357N/A '-e "/argument/d"' \
5357N/A '-e "/Entering/d"' \
5357N/A '-e "/Leaving/d"' \
5357N/A '-e "/check-TESTS/d"' \
5357N/A '-e "/all-recursive/d"' \
5357N/A '-e "/Making all/d"' \
5357N/A '-e "/Making check/d"' \
5357N/A '-e "/gnu/d"' \
5357N/A '-e "/Nothing to be done/d"' \
5357N/A '-e "/is up to date/d"' \
5357N/A '-e "s/[0-9]\{1,\}\.[0-9]\{1,\} s, //g"' \
5357N/A '-e "s^[0-9]\{1,\} kB/s^^g"' \
5357N/A '-e "s^[0-9]\{1,\} kB/s^^g"' \
5357N/A '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
5357N/A '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
5357N/A '-e "s/([0-9]\{1,\} B)//g"' \
5357N/A '-e "s/([0-9]\{1,\} B)//g"' \
5357N/A '-e "s/copied,/copied/g"' \
5357N/A '-e "s/ \{1,\}copied/ copied/g"' \
5357N/A '-e "s/copied $$/copied/g"' \
5357N/A '-e "s/copied [0-9]\{1,\}\./copied/g"'
5357N/A
5357N/AREQUIRED_PACKAGES += library/gmp
5357N/AREQUIRED_PACKAGES += library/mpfr
5357N/AREQUIRED_PACKAGES += library/isl