Makefile revision 7008
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews# CDDL HEADER START
0283e511317cae3785a9d48e236289a234a25368Mark Andrews# The contents of this file are subject to the terms of the
016c4317500eb565b82b27d00ba6b621c6e29110Mark Andrews# Common Development and Distribution License (the "License").
ce9c1558a6c81b49a5cedf55d168f889aeb5d310Mark Andrews# You may not use this file except in compliance with the License.
ce9c1558a6c81b49a5cedf55d168f889aeb5d310Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f3264c8d1b66de8dedd137d53615b8a8556adfaMark Andrews# See the License for the specific language governing permissions
0f3264c8d1b66de8dedd137d53615b8a8556adfaMark Andrews# and limitations under the License.
0e30609d7b3e31e3ff249d185041b9140b5410baMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
0e30609d7b3e31e3ff249d185041b9140b5410baMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0e30609d7b3e31e3ff249d185041b9140b5410baMark Andrews# If applicable, add the following below this CDDL HEADER, with the
9e8947d9e606b967d0792d0ab1ee7afac5e5f39dMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
9e8947d9e606b967d0792d0ab1ee7afac5e5f39dMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
3cff31d890bf0815b6b2c7603d1e5c37dc3f26b7Mark Andrews# CDDL HEADER END
c09c2bf800ba0f5e6efe6b47ba72f43e4a61ca7dMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
9a7d202077fae00fbdca610d8a8d90689e30f331Mark Andrews# Can't use the Studio compilers as they don't support the GNU
9a7d202077fae00fbdca610d8a8d90689e30f331Mark Andrews# __attribute__ extension
f1d6c77eccf502398ae5954fb884bde70764a047Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7adca0ea2fcd44641861523b718d6980c0666103Mark Andrews sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
7adca0ea2fcd44641861523b718d6980c0666103Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
dc2a0aa7aaa8b85398ae183c7274c0eeec5009afMark Andrews# pyobject-27and pygtk2-27 are only available on S11.3 and later
fc7043d7d1294478c9988c10af9a7fb8fd810338Evan HuntCONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
262c39b2366bf79062f7f86b218947523dd1cbacEvan Hunt# pkgdepend doesn't like the first line of a Python script to be:
262c39b2366bf79062f7f86b218947523dd1cbacEvan Hunt# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
1ff207c2fa4182156932f3f5c982170385a19225Mark Andrews $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
1aba9fe67899522364a9dbc3ee5a14da081f0314Evan Hunt# common targets
fcc2a57e13fbecf085e9d11702709b3d5a49b043Mark AndrewsREQUIRED_PACKAGES += library/python/pygobject-27