Makefile revision 206
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#
127N/Ainclude ../../../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
581N/A
99N/A# We patch auto* files, so regenerate headers and configure
118N/ACOMPONENT_PREP_ACTION = \
118N/A (cd $(@D) ; autoheader ; autoconf)
118N/A
118N/A# This seems horribly wrong, but these defines break the ability to build c99
118N/A# compliant modules or with gcc.
118N/ACOMPONENT_POST_CONFIGURE_ACTION = \
118N/A (cd $(@D) ; \
118N/A perl -pi -e 's/(^\#define _POSIX_C_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \
118N/A perl -pi -e 's/^(\#define _XOPEN_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \
118N/A perl -pi -e 's/^(\#define _XOPEN_SOURCE_EXTENDED.*)/\/* $$1 *\//' \
118N/A pyconfig.h)
118N/A
118N/A# we don't want to leak $(CC_BITS) into BASECFLAGS as it causes problems with
99N/A# python-config
99N/ACC += $(CFLAGS)
118N/A
99N/AC99MODE=
99N/ACPPFLAGS += -IPython
99N/A
99N/A# so we find the ncurses headers
118N/ACPPFLAGS += -I/usr/include/ncurses
118N/A# enable large files how they did in JDS
118N/ACPPFLAGS += -D_LARGEFILE64_SOURCE
118N/A# libffi for _ctypes
99N/ACPPFLAGS += $(shell pkg-config --cflags-only-I libffi)
99N/A
99N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
581N/ACONFIGURE_OPTIONS += --enable-shared
581N/ACONFIGURE_OPTIONS += --disable-static
581N/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 += CFLAGS="$(CFLAGS)"
99N/ACONFIGURE_OPTIONS += CCSHARED="$(CC_PIC)"
99N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
99N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
118N/ACONFIGURE_OPTIONS += DFLAGS="-$(BITS)"
118N/ACOMPONENT_BUILD_ENV += DFLAGS="-$(BITS)"
206N/A
206N/ACOMPONENT_TEST_TARGETS = test
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
181N/A
181N/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/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
99N/A
181N/Ainclude $(WS_TOP)/make-rules/depend.mk
99N/A