Makefile revision 3998
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# CDDL HEADER START
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# The contents of this file are subject to the terms of the
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# Common Development and Distribution License (the "License").
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# You may not use this file except in compliance with the License.
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# or http://www.opensolaris.org/os/licensing.
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# See the License for the specific language governing permissions
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# and limitations under the License.
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# When distributing Covered Code, include this CDDL HEADER in each
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# If applicable, add the following below this CDDL HEADER, with the
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# fields enclosed by brackets "[]" replaced with your own identifying
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# information: Portions Copyright [yyyy] [name of copyright owner]
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# CDDL HEADER END
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
bd670b35a010421b6e1a5536c34453a827007c81Erik Nordmark# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
c793af95640863cd29868fc7c419c5d2496b207bsangeeta#
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetainclude ../../../make-rules/shared-macros.mk
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_NAME= MySQL-python
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_VERSION= 1.2.5
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_ARCHIVE_HASH= \
c793af95640863cd29868fc7c419c5d2496b207bsangeeta sha256:811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_ARCHIVE_URL= $(call pypi_url)
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_PROJECT_URL= https://github.com/farcepest/MySQLdb1
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_BUGDB= python-mod/mysql
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetaTPNO= 21723
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# Syntax issues: not Python 3 ready.
c793af95640863cd29868fc7c419c5d2496b207bsangeetaPYTHON_VERSIONS= 2.7 2.6
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetainclude $(WS_MAKE_RULES)/prep.mk
c793af95640863cd29868fc7c419c5d2496b207bsangeetainclude $(WS_MAKE_RULES)/setup.py.mk
c793af95640863cd29868fc7c419c5d2496b207bsangeetainclude $(WS_MAKE_RULES)/ips.mk
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeeta# Remove trailing carriage returns, if present, in the files.
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_POST_UNPACK_ACTION = \
c793af95640863cd29868fc7c419c5d2496b207bsangeeta /usr/bin/find $(SOURCE_DIR) -type f -exec $(GSED) -i 's/\r//' '{}' \; ;
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetaPATH_32= /usr/mysql/5.5/bin/$(MACH32):/usr/bin:$(SPRO_VROOT)/bin
c793af95640863cd29868fc7c419c5d2496b207bsangeetaPATH_64= /usr/mysql/5.5/bin:/usr/bin:$(SPRO_VROOT)/bin
c793af95640863cd29868fc7c419c5d2496b207bsangeetaCOMPONENT_BUILD_ENV += PATH=$(PATH_$(BITS)):$(PATH)
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhCOMPONENT_INSTALL_ENV += PATH=$(PATH_$(BITS)):$(PATH)
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhCFLAGS_32= -L/usr/mysql/5.5/lib -R/usr/mysql/5.5/lib
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhCFLAGS_64= -L/usr/mysql/5.5/lib/$(MACH64) -R/usr/mysql/5.5/lib/$(MACH64)
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhCFLAGS += $(CFLAGS_$(BITS))
bd670b35a010421b6e1a5536c34453a827007c81Erik Nordmark
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhASLR_MODE = $(ASLR_NOT_APPLICABLE)
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh# common targets
c793af95640863cd29868fc7c419c5d2496b207bsangeetabuild: $(BUILD_32_and_64)
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetainstall: $(INSTALL_32_and_64)
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeetatest: $(NO_TESTS)
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
c793af95640863cd29868fc7c419c5d2496b207bsangeeta
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhREQUIRED_PACKAGES += database/mysql-55/library
c793af95640863cd29868fc7c419c5d2496b207bsangeetaREQUIRED_PACKAGES += system/library
c793af95640863cd29868fc7c419c5d2496b207bsangeeta