author | John Beck <John.Beck@Oracle.COM> |
Wed, 29 Jan 2014 13:44:48 -0800 | |
branch | s11-update |
changeset 3794 | 4c9c1c3e5031 |
parent 3789 | 137fdcb27c8e |
child 3996 | 20c0f21bbe1e |
permissions | -rw-r--r-- |
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
21 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
3789
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
25 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
26 |
include ../../../make-rules/shared-macros.mk |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
27 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= MySQL-python |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 1.2.2 |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://sourceforge.net/projects/mysql-python |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
34 |
sha256:f4133b81e65c7b94a5921ff6a0e7bdbfb622f2a70473673103cb17d5a5be807a |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/mysql-python/$(COMPONENT_ARCHIVE) |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= python-mod/mysql |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
37 |
|
3661
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2890
diff
changeset
|
38 |
TPNO= 9533 |
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2890
diff
changeset
|
39 |
|
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
40 |
# Syntax issues: not Python 3 ready. |
3794
4c9c1c3e5031
18125113 mysql Python module needs updates for MySQL 5.5 and 64-bit
John Beck <John.Beck@Oracle.COM>
parents:
3789
diff
changeset
|
41 |
PYTHON_VERSIONS= 2.7 2.6 |
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
42 |
|
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
43 |
include $(WS_TOP)/make-rules/prep.mk |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
44 |
include $(WS_TOP)/make-rules/setup.py.mk |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
45 |
include $(WS_TOP)/make-rules/ips.mk |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
46 |
|
3789
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
47 |
PATH_32=/usr/mysql/5.5/bin/$(MACH32):/usr/bin:$(SPRO_VROOT)/bin |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
48 |
PATH_64=/usr/mysql/5.5/bin:/usr/bin:$(SPRO_VROOT)/bin |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
49 |
COMPONENT_BUILD_ENV += PATH=$(PATH_$(BITS)):$(PATH) |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
50 |
COMPONENT_INSTALL_ENV += PATH=$(PATH_$(BITS)):$(PATH) |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
51 |
|
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
52 |
CFLAGS_32= -L/usr/mysql/5.5/lib -R/usr/mysql/5.5/lib |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
53 |
CFLAGS_64= -L/usr/mysql/5.5/lib/$(MACH64) -R/usr/mysql/5.5/lib/$(MACH64) |
137fdcb27c8e
16837431 /usr/lib/python2.7/config/Makefile is incorrect
John Beck <John.Beck@Oracle.COM>
parents:
3778
diff
changeset
|
54 |
CFLAGS += $(CFLAGS_$(BITS)) |
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
55 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
56 |
# common targets |
3794
4c9c1c3e5031
18125113 mysql Python module needs updates for MySQL 5.5 and 64-bit
John Beck <John.Beck@Oracle.COM>
parents:
3789
diff
changeset
|
57 |
build: $(BUILD_32_and_64) |
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
58 |
|
3794
4c9c1c3e5031
18125113 mysql Python module needs updates for MySQL 5.5 and 64-bit
John Beck <John.Beck@Oracle.COM>
parents:
3789
diff
changeset
|
59 |
install: $(INSTALL_32_and_64) |
2699
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
60 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
61 |
test: $(NO_TESTS) |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
62 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
63 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
64 |
|
62ad843cf9dd
15820219 SUNBT7202659 Move python/mysql from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
65 |
include $(WS_TOP)/make-rules/depend.mk |