python*: rework logic used to determine if PLIST.nis is used. Match the logic used by setup.py: it looks for two headers in the default include path. This helps newer glibc linux. Omit PLIST.dll on python3* because it doesn't appear in the PLIST. Make PLIST.dll true on all non-IRIX. tested: NetBSD-current, FreeBSD 11.2, Ubuntu 18.10, CentOS 6.9, Source Mage From Dr. Thomas Orgis, myself, and with pointers to a change from leot. PR pkg/53673diff -r1.78 -r1.79 pkgsrc/lang/python27/Makefile
(maya)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.78 2019/03/26 16:12:28 gdt Exp $ | 1 | # $NetBSD: Makefile,v 1.79 2019/04/03 13:17:27 maya Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python27-${PY_DISTVERSION} | 5 | PKGNAME= python27-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.python.org/ | 9 | HOMEPAGE= https://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts | 13 | DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts | |
14 | 14 | |||
@@ -93,48 +93,42 @@ PLIST.extra-so= yes | @@ -93,48 +93,42 @@ PLIST.extra-so= yes | |||
93 | .endif | 93 | .endif | |
94 | 94 | |||
95 | # For Xcode 5 we need to search the SDK path for headers, otherwise certain | 95 | # For Xcode 5 we need to search the SDK path for headers, otherwise certain | |
96 | # modules will not be built. | 96 | # modules will not be built. | |
97 | .if ${OPSYS} == "Darwin" | 97 | .if ${OPSYS} == "Darwin" | |
98 | . if exists(${OSX_SDK_PATH}/usr/include) | 98 | . if exists(${OSX_SDK_PATH}/usr/include) | |
99 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 99 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
100 | . endif | 100 | . endif | |
101 | . if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework) | 101 | . if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework) | |
102 | PLIST.qt= yes | 102 | PLIST.qt= yes | |
103 | . endif | 103 | . endif | |
104 | .endif | 104 | .endif | |
105 | 105 | |||
106 | .if ${OPSYS} == "IRIX" | 106 | .if ${OPSYS} != "IRIX" | |
107 | # Assume that IRIX (and IRIX alone) does not support a libpython.so. | |||
108 | # Assume that 32-bit IRIX has NIS and 64-bit IRIX does not. | |||
109 | . if ${ABI} == "64" | |||
110 | PLIST.no-nis= yes | |||
111 | . else | |||
112 | PLIST.nis= yes | |||
113 | . endif | |||
114 | .else | |||
115 | PLIST.dll= yes | 107 | PLIST.dll= yes | |
116 | # Determine if lib-dynload/nis.so (PLIST.nis) or | 108 | .endif | |
117 | # lib-dynload/nis-failed.so (PLIST.no-nis) will be built. | 109 | ||
118 | . if ${OPSYS} == "MirBSD" || "${OS_VARIANT}" == "chromeos" | 110 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | |
119 | # neither nis nor no-nis | 111 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | |
120 | . elif ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 112 | HAVE_RPC_H= yes | |
121 | # \todo Explain the "!= NetBSD"; that seems to declare that any | 113 | . endif | |
122 | # remaining system other than NetBSD will have NIS, even if ypcat is | 114 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | |
123 | # missing. | 115 | HAVE_YP_PROT_H= yes | |
116 | . endif | |||
117 | .endfor | |||
118 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | |||
124 | PLIST.nis= yes | 119 | PLIST.nis= yes | |
125 | . else | 120 | .else | |
126 | PLIST.no-nis= yes | 121 | PLIST.no-nis= yes | |
127 | . endif | |||
128 | .endif | 122 | .endif | |
129 | 123 | |||
130 | # configure complains about buggy getaddrinfo() | 124 | # configure complains about buggy getaddrinfo() | |
131 | CONFIGURE_ARGS.OSF1+= --disable-ipv6 | 125 | CONFIGURE_ARGS.OSF1+= --disable-ipv6 | |
132 | 126 | |||
133 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 127 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
134 | 128 | |||
135 | TEST_TARGET= test | 129 | TEST_TARGET= test | |
136 | INSTALL_TARGET= altinstall | 130 | INSTALL_TARGET= altinstall | |
137 | 131 | |||
138 | REPLACE_INTERPRETER+= py27 | 132 | REPLACE_INTERPRETER+= py27 | |
139 | REPLACE.py27.old= .*python[^ ]* | 133 | REPLACE.py27.old= .*python[^ ]* | |
140 | REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | 134 | REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.30 2019/03/20 19:29:11 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.31 2019/04/03 13:17:27 maya Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python34-${PY_DISTVERSION} | 5 | PKGNAME= python34-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.python.org/ | 9 | HOMEPAGE= https://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | CONFLICTS+= python-[0-9]* | 13 | CONFLICTS+= python-[0-9]* | |
14 | 14 | |||
@@ -65,42 +65,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -65,42 +65,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
65 | # ossaudiodev is only available on x86 for the following platforms | 65 | # ossaudiodev is only available on x86 for the following platforms | |
66 | PLIST_VARS+= oss | 66 | PLIST_VARS+= oss | |
67 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 67 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
68 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 68 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
69 | PLIST.oss= yes | 69 | PLIST.oss= yes | |
70 | .endif | 70 | .endif | |
71 | 71 | |||
72 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 72 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
73 | # certain modules will not be built. | 73 | # certain modules will not be built. | |
74 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 74 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
75 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 75 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
76 | .endif | 76 | .endif | |
77 | 77 | |||
78 | PLIST_VARS+= dll nis no-nis | 78 | PLIST_VARS+= nis no-nis | |
79 | .if ${OPSYS} == "IRIX" | 79 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | |
80 | . if ${ABI} == "64" | 80 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | |
81 | PLIST.no-nis= yes | 81 | HAVE_RPC_H= yes | |
82 | . else | |||
83 | PLIST.nis= yes | |||
84 | . endif | 82 | . endif | |
85 | .else | 83 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | |
86 | PLIST.dll= yes | 84 | HAVE_YP_PROT_H= yes | |
87 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 85 | . endif | |
88 | . if "${OS_VARIANT}" != "chromeos" | 86 | .endfor | |
87 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | |||
89 | PLIST.nis= yes | 88 | PLIST.nis= yes | |
90 | . endif | 89 | .else | |
91 | . else | |||
92 | PLIST.no-nis= yes | 90 | PLIST.no-nis= yes | |
93 | . endif | |||
94 | .endif | 91 | .endif | |
95 | 92 | |||
96 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 93 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
97 | 94 | |||
98 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 95 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
99 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 96 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
100 | "python$${PY_VER_SUFFIX}") } | 97 | "python$${PY_VER_SUFFIX}") } | |
101 | 98 | |||
102 | TEST_TARGET= test | 99 | TEST_TARGET= test | |
103 | INSTALL_TARGET= altinstall | 100 | INSTALL_TARGET= altinstall | |
104 | 101 | |||
105 | REPLACE_INTERPRETER+= python | 102 | REPLACE_INTERPRETER+= python | |
106 | REPLACE.python.old= .*python[^ ]* | 103 | REPLACE.python.old= .*python[^ ]* |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.17 2019/03/20 19:27:47 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.18 2019/04/03 13:17:27 maya Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python35-${PY_DISTVERSION} | 5 | PKGNAME= python35-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.python.org/ | 9 | HOMEPAGE= https://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | CONFLICTS+= python-[0-9]* | 13 | CONFLICTS+= python-[0-9]* | |
14 | 14 | |||
@@ -67,42 +67,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -67,42 +67,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
67 | # ossaudiodev is only available on x86 for the following platforms | 67 | # ossaudiodev is only available on x86 for the following platforms | |
68 | PLIST_VARS+= oss | 68 | PLIST_VARS+= oss | |
69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
71 | PLIST.oss= yes | 71 | PLIST.oss= yes | |
72 | .endif | 72 | .endif | |
73 | 73 | |||
74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
75 | # certain modules will not be built. | 75 | # certain modules will not be built. | |
76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | PLIST_VARS+= dll nis no-nis | 80 | PLIST_VARS+= nis no-nis | |
81 | .if ${OPSYS} == "IRIX" | 81 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | |
82 | . if ${ABI} == "64" | 82 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | |
83 | PLIST.no-nis= yes | 83 | HAVE_RPC_H= yes | |
84 | . else | |||
85 | PLIST.nis= yes | |||
86 | . endif | 84 | . endif | |
87 | .else | 85 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | |
88 | PLIST.dll= yes | 86 | HAVE_YP_PROT_H= yes | |
89 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 87 | . endif | |
90 | . if "${OS_VARIANT}" != "chromeos" | 88 | .endfor | |
89 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | |||
91 | PLIST.nis= yes | 90 | PLIST.nis= yes | |
92 | . endif | 91 | .else | |
93 | . else | |||
94 | PLIST.no-nis= yes | 92 | PLIST.no-nis= yes | |
95 | . endif | |||
96 | .endif | 93 | .endif | |
97 | 94 | |||
98 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 95 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
99 | 96 | |||
100 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 97 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
101 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 98 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
102 | "python$${PY_VER_SUFFIX}") } | 99 | "python$${PY_VER_SUFFIX}") } | |
103 | 100 | |||
104 | TEST_TARGET= test | 101 | TEST_TARGET= test | |
105 | INSTALL_TARGET= altinstall | 102 | INSTALL_TARGET= altinstall | |
106 | 103 | |||
107 | REPLACE_INTERPRETER+= python | 104 | REPLACE_INTERPRETER+= python | |
108 | REPLACE.python.old= .*python[^ ]* | 105 | REPLACE.python.old= .*python[^ ]* |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.16 2019/03/02 13:23:36 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.17 2019/04/03 13:17:27 maya Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python36-${PY_DISTVERSION} | 5 | PKGNAME= python36-${PY_DISTVERSION} | |
6 | PKGREVISION= 1 | 6 | PKGREVISION= 1 | |
7 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.python.org/ | 10 | HOMEPAGE= https://www.python.org/ | |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
@@ -68,42 +68,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -68,42 +68,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
68 | # ossaudiodev is only available on x86 for the following platforms | 68 | # ossaudiodev is only available on x86 for the following platforms | |
69 | PLIST_VARS+= oss | 69 | PLIST_VARS+= oss | |
70 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 70 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
71 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 71 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
72 | PLIST.oss= yes | 72 | PLIST.oss= yes | |
73 | .endif | 73 | .endif | |
74 | 74 | |||
75 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 75 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
76 | # certain modules will not be built. | 76 | # certain modules will not be built. | |
77 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 77 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
78 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 78 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
79 | .endif | 79 | .endif | |
80 | 80 | |||
81 | PLIST_VARS+= dll nis no-nis | 81 | PLIST_VARS+= nis no-nis | |
82 | .if ${OPSYS} == "IRIX" | 82 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | |
83 | . if ${ABI} == "64" | 83 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | |
84 | PLIST.no-nis= yes | 84 | HAVE_RPC_H= yes | |
85 | . else | |||
86 | PLIST.nis= yes | |||
87 | . endif | 85 | . endif | |
88 | .else | 86 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | |
89 | PLIST.dll= yes | 87 | HAVE_YP_PROT_H= yes | |
90 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 88 | . endif | |
91 | . if "${OS_VARIANT}" != "chromeos" | 89 | .endfor | |
90 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | |||
92 | PLIST.nis= yes | 91 | PLIST.nis= yes | |
93 | . endif | 92 | .else | |
94 | . else | |||
95 | PLIST.no-nis= yes | 93 | PLIST.no-nis= yes | |
96 | . endif | |||
97 | .endif | 94 | .endif | |
98 | 95 | |||
99 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 96 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
100 | 97 | |||
101 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 98 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
102 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 99 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
103 | "python$${PY_VER_SUFFIX}") } | 100 | "python$${PY_VER_SUFFIX}") } | |
104 | 101 | |||
105 | TEST_TARGET= test | 102 | TEST_TARGET= test | |
106 | INSTALL_TARGET= altinstall | 103 | INSTALL_TARGET= altinstall | |
107 | 104 | |||
108 | REPLACE_INTERPRETER+= python | 105 | REPLACE_INTERPRETER+= python | |
109 | REPLACE.python.old= .*python[^ ]* | 106 | REPLACE.python.old= .*python[^ ]* |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2019/03/26 20:54:55 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2019/04/03 13:17:28 maya Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python37-${PY_DISTVERSION} | 5 | PKGNAME= python37-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.python.org/ | 9 | HOMEPAGE= https://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | CONFLICTS+= python-[0-9]* | 13 | CONFLICTS+= python-[0-9]* | |
14 | 14 | |||
@@ -67,42 +67,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -67,42 +67,39 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
67 | # ossaudiodev is only available on x86 for the following platforms | 67 | # ossaudiodev is only available on x86 for the following platforms | |
68 | PLIST_VARS+= oss | 68 | PLIST_VARS+= oss | |
69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
71 | PLIST.oss= yes | 71 | PLIST.oss= yes | |
72 | .endif | 72 | .endif | |
73 | 73 | |||
74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
75 | # certain modules will not be built. | 75 | # certain modules will not be built. | |
76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | PLIST_VARS+= dll nis no-nis | 80 | PLIST_VARS+= nis no-nis | |
81 | .if ${OPSYS} == "IRIX" | 81 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | |
82 | . if ${ABI} == "64" | 82 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | |
83 | PLIST.no-nis= yes | 83 | HAVE_RPC_H= yes | |
84 | . else | |||
85 | PLIST.nis= yes | |||
86 | . endif | 84 | . endif | |
87 | .else | 85 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | |
88 | PLIST.dll= yes | 86 | HAVE_YP_PROT_H= yes | |
89 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 87 | . endif | |
90 | . if "${OS_VARIANT}" != "chromeos" | 88 | .endfor | |
89 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | |||
91 | PLIST.nis= yes | 90 | PLIST.nis= yes | |
92 | . endif | 91 | .else | |
93 | . else | |||
94 | PLIST.no-nis= yes | 92 | PLIST.no-nis= yes | |
95 | . endif | |||
96 | .endif | 93 | .endif | |
97 | 94 | |||
98 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 95 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
99 | 96 | |||
100 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 97 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
101 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 98 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
102 | "python$${PY_VER_SUFFIX}") } | 99 | "python$${PY_VER_SUFFIX}") } | |
103 | 100 | |||
104 | TEST_TARGET= test | 101 | TEST_TARGET= test | |
105 | INSTALL_TARGET= altinstall | 102 | INSTALL_TARGET= altinstall | |
106 | 103 | |||
107 | REPLACE_INTERPRETER+= python | 104 | REPLACE_INTERPRETER+= python | |
108 | REPLACE.python.old= .*python[^ ]* | 105 | REPLACE.python.old= .*python[^ ]* |