Makefile revision 501
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# CDDL HEADER START
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# The contents of this file are subject to the terms of the
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# Common Development and Distribution License (the "License").
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# You may not use this file except in compliance with the License.
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# or http://www.opensolaris.org/os/licensing.
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# See the License for the specific language governing permissions
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# and limitations under the License.
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# When distributing Covered Code, include this CDDL HEADER in each
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# If applicable, add the following below this CDDL HEADER, with the
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# fields enclosed by brackets "[]" replaced with your own identifying
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# information: Portions Copyright [yyyy] [name of copyright owner]
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# CDDL HEADER END
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi#
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomiinclude ../../make-rules/shared-macros.mk
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_NAME= swig
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_VERSION= 1.3.35
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_ARCHIVE_HASH= sha1:f5d61ba31f440846b5e2a4077da26dd5d347fa61
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_ARCHIVE_URL= http://iweb.dl.sourceforge.net/project/swig/swig/swig-1.3.35/$(COMPONENT_ARCHIVE)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomiinclude ../../make-rules/prep.mk
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomiinclude ../../make-rules/configure.mk
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomiinclude ../../make-rules/ips.mk
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# This is needed because the community provided 'check' target is not viewpath aware
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
beec8b0a6a3ece557c9acec524e82542a9641662Aki TuomiCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
beec8b0a6a3ece557c9acec524e82542a9641662Aki Tuomi
beec8b0a6a3ece557c9acec524e82542a9641662Aki Tuomi# common targets
beec8b0a6a3ece557c9acec524e82542a9641662Aki Tuomibuild: $(BUILD_32)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomiinstall: $(INSTALL_32)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi# Fails due to deprecated OCAML example and boost library problems
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomitest: $(TEST_32)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki TuomiBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi
c147bff818798a979d93537f72f5c1f68f5d5ba8Aki Tuomiinclude ../../make-rules/depend.mk
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi