18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../../make-rules/shared-macros.mk |
26 include ../../../make-rules/shared-macros.mk |
27 |
27 |
28 PATH=/usr/mysql/5.1/bin:/usr/bin:/usr/gnu/bin |
28 PATH=/usr/mysql/5.1/bin:/usr/bin:/usr/gnu/bin |
29 |
29 |
30 COMPONENT_NAME= MySQL-python |
30 COMPONENT_NAME= MySQL-python |
31 COMPONENT_VERSION= 1.2.2 |
31 COMPONENT_VERSION= 1.2.5 |
32 COMPONENT_PROJECT_URL= http://sourceforge.net/projects/mysql-python |
|
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip |
35 COMPONENT_ARCHIVE_HASH= \ |
34 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:f4133b81e65c7b94a5921ff6a0e7bdbfb622f2a70473673103cb17d5a5be807a |
35 sha256:811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74 |
37 COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/mysql-python/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
|
37 COMPONENT_PROJECT_URL= https://github.com/farcepest/MySQLdb1 |
38 COMPONENT_BUGDB= python-mod/mysql |
38 COMPONENT_BUGDB= python-mod/mysql |
39 |
39 |
40 include $(WS_TOP)/make-rules/prep.mk |
40 TPNO= 21723 |
41 include $(WS_TOP)/make-rules/setup.py.mk |
|
42 include $(WS_TOP)/make-rules/ips.mk |
|
43 |
41 |
44 CFLAGS += -L/usr/mysql/5.1/lib/mysql -R/usr/mysql/5.1/lib/mysql |
42 include $(WS_MAKE_RULES)/prep.mk |
|
43 include $(WS_MAKE_RULES)/setup.py.mk |
|
44 include $(WS_MAKE_RULES)/ips.mk |
|
45 |
|
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//' '{}' \; ; |
|
49 |
|
50 PATH_32= /usr/mysql/5.5/bin/$(MACH32):/usr/bin:$(SPRO_VROOT)/bin |
|
51 PATH_64= /usr/mysql/5.5/bin:/usr/bin:$(SPRO_VROOT)/bin |
|
52 COMPONENT_BUILD_ENV += PATH=$(PATH_$(BITS)):$(PATH) |
|
53 COMPONENT_INSTALL_ENV += PATH=$(PATH_$(BITS)):$(PATH) |
|
54 |
|
55 CFLAGS_32= -L/usr/mysql/5.5/lib -R/usr/mysql/5.5/lib |
|
56 CFLAGS_64= -L/usr/mysql/5.5/lib/$(MACH64) -R/usr/mysql/5.5/lib/$(MACH64) |
|
57 CFLAGS += $(CFLAGS_$(BITS)) |
|
58 |
|
59 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
45 |
60 |
46 # common targets |
61 # common targets |
47 build: $(BUILD_32) |
62 build: $(BUILD_32_and_64) |
48 |
63 |
49 install: $(INSTALL_32) |
64 install: $(INSTALL_32_and_64) |
50 |
65 |
51 test: $(NO_TESTS) |
66 test: $(NO_TESTS) |
52 |
67 |
53 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
68 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
54 |
69 |
55 include $(WS_TOP)/make-rules/depend.mk |
70 include $(WS_TOP)/make-rules/depend.mk |