4944N/A#
4944N/A# CDDL HEADER START
4944N/A#
4944N/A# The contents of this file are subject to the terms of the
4944N/A# Common Development and Distribution License (the "License").
4944N/A# You may not use this file except in compliance with the License.
4944N/A#
4944N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4944N/A# or http://www.opensolaris.org/os/licensing.
4944N/A# See the License for the specific language governing permissions
4944N/A# and limitations under the License.
4944N/A#
4944N/A# When distributing Covered Code, include this CDDL HEADER in each
4944N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4944N/A# If applicable, add the following below this CDDL HEADER, with the
4944N/A# fields enclosed by brackets "[]" replaced with your own identifying
4944N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4944N/A#
4944N/A# CDDL HEADER END
4944N/A#
4944N/A
4944N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4944N/A#
6931N/ACOMPILER= gcc
5680N/ABUILD_BITS= 64_and_32
4944N/Ainclude ../../make-rules/shared-macros.mk
4944N/A
4944N/ACOMPONENT_NAME= openjade
4944N/ACOMPONENT_VERSION= 1.3.2
4944N/ACOMPONENT_PROJECT_URL= http://openjade.sourceforge.net/
4944N/ACOMPONENT_ARCHIVE_HASH= \
4944N/A sha256:1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
4944N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/openjade/$(COMPONENT_ARCHIVE)
4944N/A
4944N/ATPNO= 9620
4944N/A
4944N/A# Added to find the header files since they are not installed in build/*
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/style
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/groveoa
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/grove
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/spgrove
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/generic
4944N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/dsssl
4944N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5680N/A
5680N/ACOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D))
4944N/A
5680N/A# Prevent libtool from embedding runpath (via -R).
5680N/ACOMPONENT_POST_CONFIGURE_ACTION += \
5680N/A $(GSED) -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' $(@D)/libtool; \
5680N/A $(GSED) -i -e 's/hardcode_libdir_flag_spec=.*/hardcode_libdir_flag_spec=""/' $(@D)/libtool;
5680N/A
4944N/ACONFIGURE_SCRIPT = $(@D)/configure
4944N/A
5680N/A# Expects GNU install.
5680N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
4944N/A
6931N/A# Get opensp header files and libraries out of the opensp build prototype area.
6931N/AOPENSP_BASE = $(WS_COMPONENTS)/opensp/build/prototype/$(MACH)
6931N/A
6931N/ACONFIGURE_OPTIONS += --enable-spincludedir=$(OPENSP_BASE)/$(USRINCDIR)/OpenSP
6931N/ACONFIGURE_OPTIONS += --enable-splibdir=$(OPENSP_BASE)/$(USRLIB.$(BITS))
4944N/ACONFIGURE_OPTIONS += --enable-mif
4944N/ACONFIGURE_OPTIONS += --disable-http
5680N/ACONFIGURE_OPTIONS += --enable-default-catalog="CATALOG:/etc/sgml/catalog:/usr/share/sgml/CATALOG"
5680N/ACONFIGURE_OPTIONS += --datadir=$(USRSHAREDIR)/sgml/$(COMPONENT_NAME)
4944N/A
4944N/ACOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/testsuite
4944N/ACOMPONENT_TEST_ARGS = -k -i
4944N/ACOMPONENT_TEST_TARGETS =all
4944N/A
4944N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4944N/A
5795N/ACOMPONENT_TEST_TRANSFORMS += \
5795N/A '-e "/^[mM]ake/d" '
5795N/A
5680N/ACOMPONENT_INSTALL_TARGETS += install-man
4944N/A
5680N/A# Workaround broken install targets.
5680N/ACOMPONENT_PRE_INSTALL_ACTION.32 += \
5680N/A $(MKDIR) $(PROTOUSRBINDIR)/$(MACH32);
4944N/A
4944N/AREQUIRED_PACKAGES += developer/documentation-tool/opensp
6931N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6931N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
4944N/AREQUIRED_PACKAGES += system/library/math