Makefile revision 99
99N/A#
99N/A# CDDL HEADER START
99N/A#
99N/A# The contents of this file are subject to the terms of the
99N/A# Common Development and Distribution License (the "License").
99N/A# You may not use this file except in compliance with the License.
99N/A#
99N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99N/A# or http://www.opensolaris.org/os/licensing.
99N/A# See the License for the specific language governing permissions
99N/A# and limitations under the License.
99N/A#
99N/A# When distributing Covered Code, include this CDDL HEADER in each
99N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99N/A# If applicable, add the following below this CDDL HEADER, with the
99N/A# fields enclosed by brackets "[]" replaced with your own identifying
99N/A# information: Portions Copyright [yyyy] [name of copyright owner]
99N/A#
99N/A# CDDL HEADER END
99N/A#
99N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
99N/A#
99N/Ainclude $(WS_TOP)/make-rules/shared-macros.mk
99N/A
99N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin
99N/A
99N/ACOMPONENT_NAME= Python
99N/ACOMPONENT_VERSION= 2.6.4
99N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
99N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
99N/ACOMPONENT_ARCHIVE_HASH= sha1:bee572680d1966501247cb2b26e0e51f94d1cd13
99N/ACOMPONENT_ARCHIVE_URL= http://python.org/ftp/python/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
99N/A
99N/Ainclude $(WS_TOP)/make-rules/prep.mk
99N/Ainclude $(WS_TOP)/make-rules/configure.mk
99N/Ainclude $(WS_TOP)/make-rules/ips.mk
99N/A
99N/A#
99N/A# Until the fix for "17858 pkgdepend generate hurls on some python modules" is
99N/A# generally installed on our build systems, we need to skip the dependency
99N/A# generation step. see https://defect.opensolaris.org/bz/show_bug.cgi?id=17858
99N/A# When this is fixed, we need to remove the static dependencies from the
99N/A# manifest.
99N/A#
99N/A$(MANIFEST_BASE)-python-26.depend: PKGDEPEND = /bin/true
99N/A
99N/A# we don't want to leak $(CC_BITS) into BASECFLAGS as it causes problems with
99N/A# python-config
99N/ACC += $(CC_BITS)
99N/A
99N/AC99MODE=
99N/ACPPFLAGS += -IPython
99N/A
99N/A# libffi for _ctypes
99N/ACPPFLAGS += $(shell pkg-config --cflags-only-I libffi)
99N/A
99N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
99N/ACONFIGURE_OPTIONS += --enable-shared
99N/ACONFIGURE_OPTIONS += --disable-static
99N/ACONFIGURE_OPTIONS += --with-system-ffi
99N/ACONFIGURE_OPTIONS += --without-gcc
99N/ACONFIGURE_OPTIONS += ac_cv_opt_olimit_ok=no
99N/ACONFIGURE_OPTIONS += ac_cv_olimit_ok=no
99N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
99N/ACONFIGURE_OPTIONS += DFLAGS="-$(BITS)"
99N/ACOMPONENT_BUILD_ENV += DFLAGS="-$(BITS)"
99N/A
99N/A# 64 bit shared objects need to go in a 64-bit directory
99N/ACOMPONENT_INSTALL_ARGS.64 += DESTSHARED=$(CONFIGURE_PREFIX)/lib/python2.6/lib-dynload
99N/A
99N/A# common targets
99N/Abuild: $(BUILD_32_and_64)
99N/A
99N/A$(INSTALL_32): $(INSTALL_64)
99N/A
99N/Ainstall: $(INSTALL_32_and_64)
99N/A
99N/Atest: $(TEST_32_and_64)
99N/A
99N/A$(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built
99N/A (cd $(@D) ; gmake test || exit 0)
99N/A
99N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
99N/A
99N/Ainclude $(WS_TOP)/make-rules/depend.mk