Wed Apr 3 13:17:28 2019 UTC ()
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/53673


(maya)
diff -r1.78 -r1.79 pkgsrc/lang/python27/Makefile
diff -r1.30 -r1.31 pkgsrc/lang/python34/Makefile
diff -r1.17 -r1.18 pkgsrc/lang/python35/Makefile
diff -r1.16 -r1.17 pkgsrc/lang/python36/Makefile
diff -r1.5 -r1.6 pkgsrc/lang/python37/Makefile

cvs diff -r1.78 -r1.79 pkgsrc/lang/python27/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python27/Makefile 2019/03/26 16:12:28 1.78
+++ pkgsrc/lang/python27/Makefile 2019/04/03 13:17:27 1.79
@@ -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
5PKGNAME= python27-${PY_DISTVERSION} 5PKGNAME= python27-${PY_DISTVERSION}
6CATEGORIES= lang python 6CATEGORIES= lang python
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.python.org/ 9HOMEPAGE= https://www.python.org/
10COMMENT= Interpreted, interactive, object-oriented programming language 10COMMENT= Interpreted, interactive, object-oriented programming language
11LICENSE= python-software-foundation 11LICENSE= python-software-foundation
12 12
13DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts 13DEPENDS= 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)
99CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include 99CFLAGS+= -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)
102PLIST.qt= yes 102PLIST.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" 
110PLIST.no-nis= yes 
111. else 
112PLIST.nis= yes 
113. endif 
114.else 
115PLIST.dll= yes 107PLIST.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) 112HAVE_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. 115HAVE_YP_PROT_H= yes
 116. endif
 117.endfor
 118.if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes)
124PLIST.nis= yes 119PLIST.nis= yes
125. else 120.else
126PLIST.no-nis= yes 121PLIST.no-nis= yes
127. endif 
128.endif 122.endif
129 123
130# configure complains about buggy getaddrinfo() 124# configure complains about buggy getaddrinfo()
131CONFIGURE_ARGS.OSF1+= --disable-ipv6 125CONFIGURE_ARGS.OSF1+= --disable-ipv6
132 126
133PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 127PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
134 128
135TEST_TARGET= test 129TEST_TARGET= test
136INSTALL_TARGET= altinstall 130INSTALL_TARGET= altinstall
137 131
138REPLACE_INTERPRETER+= py27 132REPLACE_INTERPRETER+= py27
139REPLACE.py27.old= .*python[^ ]* 133REPLACE.py27.old= .*python[^ ]*
140REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} 134REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}

cvs diff -r1.30 -r1.31 pkgsrc/lang/python34/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python34/Attic/Makefile 2019/03/20 19:29:11 1.30
+++ pkgsrc/lang/python34/Attic/Makefile 2019/04/03 13:17:27 1.31
@@ -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
5PKGNAME= python34-${PY_DISTVERSION} 5PKGNAME= python34-${PY_DISTVERSION}
6CATEGORIES= lang python 6CATEGORIES= lang python
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.python.org/ 9HOMEPAGE= https://www.python.org/
10COMMENT= Interpreted, interactive, object-oriented programming language 10COMMENT= Interpreted, interactive, object-oriented programming language
11LICENSE= python-software-foundation 11LICENSE= python-software-foundation
12 12
13CONFLICTS+= python-[0-9]* 13CONFLICTS+= 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
66PLIST_VARS+= oss 66PLIST_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")
69PLIST.oss= yes 69PLIST.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)
75CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include 75CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
76.endif 76.endif
77 77
78PLIST_VARS+= dll nis no-nis 78PLIST_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))
81PLIST.no-nis= yes 81HAVE_RPC_H= yes
82. else 
83PLIST.nis= yes 
84. endif 82. endif
85.else 83. if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h))
86PLIST.dll= yes 84HAVE_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)
89PLIST.nis= yes 88PLIST.nis= yes
90. endif 89.else
91. else 
92PLIST.no-nis= yes 90PLIST.no-nis= yes
93. endif 
94.endif 91.endif
95 92
96PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 93PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
97 94
98PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } 95PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
99PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ 96PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \
100 "python$${PY_VER_SUFFIX}") } 97 "python$${PY_VER_SUFFIX}") }
101 98
102TEST_TARGET= test 99TEST_TARGET= test
103INSTALL_TARGET= altinstall 100INSTALL_TARGET= altinstall
104 101
105REPLACE_INTERPRETER+= python 102REPLACE_INTERPRETER+= python
106REPLACE.python.old= .*python[^ ]* 103REPLACE.python.old= .*python[^ ]*

cvs diff -r1.17 -r1.18 pkgsrc/lang/python35/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python35/Attic/Makefile 2019/03/20 19:27:47 1.17
+++ pkgsrc/lang/python35/Attic/Makefile 2019/04/03 13:17:27 1.18
@@ -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
5PKGNAME= python35-${PY_DISTVERSION} 5PKGNAME= python35-${PY_DISTVERSION}
6CATEGORIES= lang python 6CATEGORIES= lang python
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.python.org/ 9HOMEPAGE= https://www.python.org/
10COMMENT= Interpreted, interactive, object-oriented programming language 10COMMENT= Interpreted, interactive, object-oriented programming language
11LICENSE= python-software-foundation 11LICENSE= python-software-foundation
12 12
13CONFLICTS+= python-[0-9]* 13CONFLICTS+= 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
68PLIST_VARS+= oss 68PLIST_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")
71PLIST.oss= yes 71PLIST.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)
77CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include 77CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
78.endif 78.endif
79 79
80PLIST_VARS+= dll nis no-nis 80PLIST_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))
83PLIST.no-nis= yes 83HAVE_RPC_H= yes
84. else 
85PLIST.nis= yes 
86. endif 84. endif
87.else 85. if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h))
88PLIST.dll= yes 86HAVE_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)
91PLIST.nis= yes 90PLIST.nis= yes
92. endif 91.else
93. else 
94PLIST.no-nis= yes 92PLIST.no-nis= yes
95. endif 
96.endif 93.endif
97 94
98PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 95PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
99 96
100PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } 97PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
101PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ 98PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \
102 "python$${PY_VER_SUFFIX}") } 99 "python$${PY_VER_SUFFIX}") }
103 100
104TEST_TARGET= test 101TEST_TARGET= test
105INSTALL_TARGET= altinstall 102INSTALL_TARGET= altinstall
106 103
107REPLACE_INTERPRETER+= python 104REPLACE_INTERPRETER+= python
108REPLACE.python.old= .*python[^ ]* 105REPLACE.python.old= .*python[^ ]*

cvs diff -r1.16 -r1.17 pkgsrc/lang/python36/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python36/Attic/Makefile 2019/03/02 13:23:36 1.16
+++ pkgsrc/lang/python36/Attic/Makefile 2019/04/03 13:17:27 1.17
@@ -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
5PKGNAME= python36-${PY_DISTVERSION} 5PKGNAME= python36-${PY_DISTVERSION}
6PKGREVISION= 1 6PKGREVISION= 1
7CATEGORIES= lang python 7CATEGORIES= lang python
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.python.org/ 10HOMEPAGE= https://www.python.org/
11COMMENT= Interpreted, interactive, object-oriented programming language 11COMMENT= Interpreted, interactive, object-oriented programming language
12LICENSE= python-software-foundation 12LICENSE= python-software-foundation
13 13
14CONFLICTS+= python-[0-9]* 14CONFLICTS+= 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
69PLIST_VARS+= oss 69PLIST_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")
72PLIST.oss= yes 72PLIST.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)
78CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include 78CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
79.endif 79.endif
80 80
81PLIST_VARS+= dll nis no-nis 81PLIST_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))
84PLIST.no-nis= yes 84HAVE_RPC_H= yes
85. else 
86PLIST.nis= yes 
87. endif 85. endif
88.else 86. if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h))
89PLIST.dll= yes 87HAVE_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)
92PLIST.nis= yes 91PLIST.nis= yes
93. endif 92.else
94. else 
95PLIST.no-nis= yes 93PLIST.no-nis= yes
96. endif 
97.endif 94.endif
98 95
99PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 96PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
100 97
101PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } 98PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
102PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ 99PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \
103 "python$${PY_VER_SUFFIX}") } 100 "python$${PY_VER_SUFFIX}") }
104 101
105TEST_TARGET= test 102TEST_TARGET= test
106INSTALL_TARGET= altinstall 103INSTALL_TARGET= altinstall
107 104
108REPLACE_INTERPRETER+= python 105REPLACE_INTERPRETER+= python
109REPLACE.python.old= .*python[^ ]* 106REPLACE.python.old= .*python[^ ]*

cvs diff -r1.5 -r1.6 pkgsrc/lang/python37/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python37/Makefile 2019/03/26 20:54:55 1.5
+++ pkgsrc/lang/python37/Makefile 2019/04/03 13:17:28 1.6
@@ -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
5PKGNAME= python37-${PY_DISTVERSION} 5PKGNAME= python37-${PY_DISTVERSION}
6CATEGORIES= lang python 6CATEGORIES= lang python
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.python.org/ 9HOMEPAGE= https://www.python.org/
10COMMENT= Interpreted, interactive, object-oriented programming language 10COMMENT= Interpreted, interactive, object-oriented programming language
11LICENSE= python-software-foundation 11LICENSE= python-software-foundation
12 12
13CONFLICTS+= python-[0-9]* 13CONFLICTS+= 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
68PLIST_VARS+= oss 68PLIST_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")
71PLIST.oss= yes 71PLIST.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)
77CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include 77CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
78.endif 78.endif
79 79
80PLIST_VARS+= dll nis no-nis 80PLIST_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))
83PLIST.no-nis= yes 83HAVE_RPC_H= yes
84. else 
85PLIST.nis= yes 
86. endif 84. endif
87.else 85. if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h))
88PLIST.dll= yes 86HAVE_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)
91PLIST.nis= yes 90PLIST.nis= yes
92. endif 91.else
93. else 
94PLIST.no-nis= yes 92PLIST.no-nis= yes
95. endif 
96.endif 93.endif
97 94
98PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 95PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
99 96
100PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } 97PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
101PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ 98PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \
102 "python$${PY_VER_SUFFIX}") } 99 "python$${PY_VER_SUFFIX}") }
103 100
104TEST_TARGET= test 101TEST_TARGET= test
105INSTALL_TARGET= altinstall 102INSTALL_TARGET= altinstall
106 103
107REPLACE_INTERPRETER+= python 104REPLACE_INTERPRETER+= python
108REPLACE.python.old= .*python[^ ]* 105REPLACE.python.old= .*python[^ ]*