4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 PATH
=/usr
/mysql
/bin
:/usr
/bin
:/usr
/gnu
/bin
30 COMPONENT_NAME
= MySQL-python
31 COMPONENT_VERSION
= 1.2.5
32 COMPONENT_PROJECT_URL
= https
://github.com
/farcepest
/MySQLdb1
33 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).zip
35 COMPONENT_ARCHIVE_HASH
= \
36 sha256
:811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74
37 COMPONENT_ARCHIVE_URL
= $(call pypi_url
)
38 COMPONENT_BUGDB
= python-mod
/mysql
42 include $(WS_TOP
)/make-rules
/prep.mk
43 include $(WS_TOP
)/make-rules
/setup.py.mk
44 include $(WS_TOP
)/make-rules
/ips.mk
46 # Remove trailing carriage returns, if present, in the files.
47 COMPONENT_POST_UNPACK_ACTION
= \
48 /usr
/bin
/find
$(SOURCE_DIR
) -type f
-exec
$(GSED
) -i
'' 's/\r//' '{}' \
; ;
50 CFLAGS
.32 = -L
/usr
/mariadb
/5.5/lib
-R
/usr
/mariadb
/5.5/lib
51 CFLAGS
.64 = -L
/usr
/mariadb
/5.5/lib
/$(MACH64
) -R
/usr
/mariadb
/5.5/lib
/$(MACH64
)
52 CFLAGS
+= $(CFLAGS.
$(BITS
))
54 PATH.MYSQL
.32=/usr
/mariadb
/5.5/bin
55 PATH.MYSQL
.64=/usr
/mariadb
/5.5/bin
/$(MACH64
)
57 PATH
=$(PATH.MYSQL.
$(BITS
)):/usr
/bin
:/usr
/gnu
/bin
60 build
: $(BUILD_32_and_64
)
62 install: $(INSTALL_32_and_64
)
66 REQUIRED_PACKAGES
+= database
/mariadb-55
/library
67 REQUIRED_PACKAGES
+= runtime
/python-27
68 REQUIRED_PACKAGES
+= system
/library