| @@ -1,250 +1,250 @@ | | | @@ -1,250 +1,250 @@ |
1 | # $NetBSD: Makefile,v 1.101 2022/05/13 18:42:05 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.102 2022/05/13 19:24:02 tnn Exp $ |
2 | | | 2 | |
3 | .include "dist.mk" | | 3 | .include "dist.mk" |
4 | | | 4 | |
5 | PKGNAME= python27-${PY_DISTVERSION} | | 5 | PKGNAME= python27-${PY_DISTVERSION} |
6 | PKGREVISION= 8 | | 6 | PKGREVISION= 8 |
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 | DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts | | 14 | DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts |
15 | | | 15 | |
16 | CONFLICTS+= python-[0-9]* | | 16 | CONFLICTS+= python-[0-9]* |
17 | | | 17 | |
18 | USE_LANGUAGES= c c++ | | 18 | USE_LANGUAGES= c c++ |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | CONFIGURE_ARGS+= --enable-shared | | 20 | CONFIGURE_ARGS+= --enable-shared |
21 | CONFIGURE_ARGS+= --with-dbmliborder=ndbm:bdb | | 21 | CONFIGURE_ARGS+= --with-dbmliborder=ndbm:bdb |
22 | CONFIGURE_ARGS+= --with-system-ffi | | 22 | CONFIGURE_ARGS+= --with-system-ffi |
23 | CONFIGURE_ARGS+= --with-threads | | 23 | CONFIGURE_ARGS+= --with-threads |
24 | CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q} | | 24 | CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q} |
25 | CONFIGURE_ENV+= OPT=${CFLAGS:M*:Q} | | 25 | CONFIGURE_ENV+= OPT=${CFLAGS:M*:Q} |
26 | PKGCONFIG_OVERRIDE+= Misc/python.pc.in | | 26 | PKGCONFIG_OVERRIDE+= Misc/python.pc.in |
27 | | | 27 | |
28 | LDFLAGS+= -L${WRKSRC} | | 28 | LDFLAGS+= -L${WRKSRC} |
29 | | | 29 | |
30 | # $RANDOM usage there is fine | | 30 | # $RANDOM usage there is fine |
31 | CHECK_PORTABILITY_SKIP= Tools/faqwiz/move-faqwiz.sh | | 31 | CHECK_PORTABILITY_SKIP= Tools/faqwiz/move-faqwiz.sh |
32 | | | 32 | |
33 | PTHREAD_OPTS+= require | | 33 | PTHREAD_OPTS+= require |
34 | PTHREAD_AUTO_VARS= yes | | 34 | PTHREAD_AUTO_VARS= yes |
35 | .include "../../mk/pthread.buildlink3.mk" | | 35 | .include "../../mk/pthread.buildlink3.mk" |
36 | .if ${PTHREAD_TYPE} == "pth" | | 36 | .if ${PTHREAD_TYPE} == "pth" |
37 | CONFIGURE_ARGS+= --with-pth | | 37 | CONFIGURE_ARGS+= --with-pth |
38 | .endif | | 38 | .endif |
39 | | | 39 | |
40 | .include "../../mk/compiler.mk" | | 40 | .include "../../mk/compiler.mk" |
41 | | | 41 | |
42 | # Clang needs -fwrapv | | 42 | # Clang needs -fwrapv |
43 | .if !empty(PKGSRC_COMPILER:Mclang) | | 43 | .if !empty(PKGSRC_COMPILER:Mclang) |
44 | CFLAGS+= -fwrapv | | 44 | CFLAGS+= -fwrapv |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
47 | .include "../../mk/bsd.prefs.mk" | | 47 | .include "../../mk/bsd.prefs.mk" |
48 | | | 48 | |
49 | # fdatasync() | | 49 | # fdatasync() |
50 | LIBS.SunOS+= -lrt | | 50 | LIBS.SunOS+= -lrt |
51 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 | | 51 | .if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} < 051100 |
52 | SUBST_CLASSES+= setup | | 52 | SUBST_CLASSES+= setup |
53 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i | | 53 | SUBST_MESSAGE.setup= Replacing crypt with crypt_i |
54 | SUBST_STAGE.setup= pre-configure | | 54 | SUBST_STAGE.setup= pre-configure |
55 | SUBST_FILES.setup= setup.py | | 55 | SUBST_FILES.setup= setup.py |
56 | SUBST_SED.setup= -e "s,\([ \[]\)'crypt',\\1'crypt_i'," | | 56 | SUBST_SED.setup= -e "s,\([ \[]\)'crypt',\\1'crypt_i'," |
57 | .endif | | 57 | .endif |
58 | | | 58 | |
59 | PY_VER_SUFFIX= 2.7 | | 59 | PY_VER_SUFFIX= 2.7 |
60 | | | 60 | |
61 | .if ${OPSYS} == "NetBSD" | | 61 | .if ${OPSYS} == "NetBSD" |
62 | # XXX work around a botched autoconf check which ignores libintl | | 62 | # XXX work around a botched autoconf check which ignores libintl |
63 | CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes | | 63 | CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes |
64 | .endif | | 64 | .endif |
65 | | | 65 | |
66 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" | | 66 | .if ${OPSYS} == "Cygwin" || ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" |
67 | PY_PLATNAME= ${LOWER_OPSYS} | | 67 | PY_PLATNAME= ${LOWER_OPSYS} |
68 | USE_TOOLS+= gmake | | 68 | USE_TOOLS+= gmake |
69 | .elif ${OPSYS} == "IRIX" | | 69 | .elif ${OPSYS} == "IRIX" |
70 | PY_PLATNAME= ${LOWER_OPSYS:C/\..*//} | | 70 | PY_PLATNAME= ${LOWER_OPSYS:C/\..*//} |
71 | .elif ${OPSYS} == "SunOS" | | 71 | .elif ${OPSYS} == "SunOS" |
72 | PY_PLATNAME= sunos${OS_VERSION:C/\..*//} | | 72 | PY_PLATNAME= sunos${OS_VERSION:C/\..*//} |
73 | .elif ${OPSYS} == "HPUX" | | 73 | .elif ${OPSYS} == "HPUX" |
74 | PY_PLATNAME= hp-ux11 | | 74 | PY_PLATNAME= hp-ux11 |
75 | .elif ${OPSYS} == "Linux" | | 75 | .elif ${OPSYS} == "Linux" |
76 | PY_PLATNAME= linux2 | | 76 | PY_PLATNAME= linux2 |
77 | .elif ${OS_VARIANT} == "SCOOSR5" | | 77 | .elif ${OS_VARIANT} == "SCOOSR5" |
78 | PY_PLATNAME= sco_sv3 | | 78 | PY_PLATNAME= sco_sv3 |
79 | .else | | 79 | .else |
80 | PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//} | | 80 | PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//} |
81 | .endif | | 81 | .endif |
82 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} | | 82 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} |
83 | | | 83 | |
84 | .if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \ | | 84 | .if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \ |
85 | (defined(ABI) && ${ABI} == "64") | | 85 | (defined(ABI) && ${ABI} == "64") |
86 | IS_64BIT_PLATFORM?= yes | | 86 | IS_64BIT_PLATFORM?= yes |
87 | .else | | 87 | .else |
88 | IS_64BIT_PLATFORM?= no | | 88 | IS_64BIT_PLATFORM?= no |
89 | .endif | | 89 | .endif |
90 | | | 90 | |
91 | PLIST_VARS+= dl dll extra-so nis qt | | 91 | PLIST_VARS+= dl dll extra-so nis qt |
92 | | | 92 | |
93 | # the dl module isn't built for 64 bit archs | | 93 | # the dl module isn't built for 64 bit archs |
94 | .if empty(IS_64BIT_PLATFORM:M[yY][eE][sS]) | | 94 | .if empty(IS_64BIT_PLATFORM:M[yY][eE][sS]) |
95 | PLIST.dl= yes | | 95 | PLIST.dl= yes |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | # setup.py causes some modules to be built if the platform is *not* 64bit. | | 98 | # setup.py causes some modules to be built if the platform is *not* 64bit. |
99 | .if !empty(IS_64BIT_PLATFORM:M[nN][oO]) | | 99 | .if !empty(IS_64BIT_PLATFORM:M[nN][oO]) |
100 | PLIST.extra-so= yes | | 100 | PLIST.extra-so= yes |
101 | .endif | | 101 | .endif |
102 | | | 102 | |
103 | # For Xcode 5 we need to search the SDK path for headers, otherwise certain | | 103 | # For Xcode 5 we need to search the SDK path for headers, otherwise certain |
104 | # modules will not be built. | | 104 | # modules will not be built. |
105 | .if ${OPSYS} == "Darwin" | | 105 | .if ${OPSYS} == "Darwin" |
106 | . if exists(${OSX_SDK_PATH}/usr/include) | | 106 | . if exists(${OSX_SDK_PATH}/usr/include) |
107 | CFLAGS+= -I${OSX_SDK_PATH:Q} | | 107 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include |
108 | SUBST_CLASSES+= sdkpath | | 108 | SUBST_CLASSES+= sdkpath |
109 | SUBST_STAGE.sdkpath= pre-configure | | 109 | SUBST_STAGE.sdkpath= pre-configure |
110 | SUBST_FILES.sdkpath= Lib/distutils/unixccompiler.py | | 110 | SUBST_FILES.sdkpath= Lib/distutils/unixccompiler.py |
111 | SUBST_VARS.sdkpath= OSX_SDK_PATH | | 111 | SUBST_VARS.sdkpath= OSX_SDK_PATH |
112 | . endif | | 112 | . endif |
113 | . if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework) | | 113 | . if exists(${OSX_SDK_PATH}/System/Library/Frameworks/QuickTime.framework) |
114 | PLIST.qt= yes | | 114 | PLIST.qt= yes |
115 | . endif | | 115 | . endif |
116 | .endif | | 116 | .endif |
117 | | | 117 | |
118 | .if ${OPSYS} != "IRIX" | | 118 | .if ${OPSYS} != "IRIX" |
119 | PLIST.dll= yes | | 119 | PLIST.dll= yes |
120 | .endif | | 120 | .endif |
121 | | | 121 | |
122 | .for incdir in ${_OPSYS_INCLUDE_DIRS} | | 122 | .for incdir in ${_OPSYS_INCLUDE_DIRS} |
123 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) | | 123 | . if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h)) |
124 | HAVE_RPC_H= yes | | 124 | HAVE_RPC_H= yes |
125 | . endif | | 125 | . endif |
126 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) | | 126 | . if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h)) |
127 | HAVE_YP_PROT_H= yes | | 127 | HAVE_YP_PROT_H= yes |
128 | . endif | | 128 | . endif |
129 | .endfor | | 129 | .endfor |
130 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) | | 130 | .if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes) |
131 | PLIST.nis= yes | | 131 | PLIST.nis= yes |
132 | .endif | | 132 | .endif |
133 | | | 133 | |
134 | # configure complains about buggy getaddrinfo() | | 134 | # configure complains about buggy getaddrinfo() |
135 | CONFIGURE_ARGS.OSF1+= --disable-ipv6 | | 135 | CONFIGURE_ARGS.OSF1+= --disable-ipv6 |
136 | | | 136 | |
137 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | | 137 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} |
138 | | | 138 | |
139 | TEST_TARGET= test | | 139 | TEST_TARGET= test |
140 | INSTALL_TARGET= altinstall | | 140 | INSTALL_TARGET= altinstall |
141 | | | 141 | |
142 | REPLACE_INTERPRETER+= py27 | | 142 | REPLACE_INTERPRETER+= py27 |
143 | REPLACE.py27.old= .*python[^ ]* | | 143 | REPLACE.py27.old= .*python[^ ]* |
144 | REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | | 144 | REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} |
145 | REPLACE_FILES.py27= Lib/UserString.py | | 145 | REPLACE_FILES.py27= Lib/UserString.py |
146 | REPLACE_FILES.py27+= Lib/base64.py | | 146 | REPLACE_FILES.py27+= Lib/base64.py |
147 | REPLACE_FILES.py27+= Lib/cProfile.py | | 147 | REPLACE_FILES.py27+= Lib/cProfile.py |
148 | REPLACE_FILES.py27+= Lib/cgi.py | | 148 | REPLACE_FILES.py27+= Lib/cgi.py |
149 | REPLACE_FILES.py27+= Lib/encodings/rot_13.py | | 149 | REPLACE_FILES.py27+= Lib/encodings/rot_13.py |
150 | REPLACE_FILES.py27+= Lib/idlelib/PyShell.py | | 150 | REPLACE_FILES.py27+= Lib/idlelib/PyShell.py |
151 | REPLACE_FILES.py27+= Lib/keyword.py | | 151 | REPLACE_FILES.py27+= Lib/keyword.py |
152 | REPLACE_FILES.py27+= Lib/lib2to3/pgen2/token.py | | 152 | REPLACE_FILES.py27+= Lib/lib2to3/pgen2/token.py |
153 | REPLACE_FILES.py27+= Lib/lib2to3/tests/data/different_encoding.py | | 153 | REPLACE_FILES.py27+= Lib/lib2to3/tests/data/different_encoding.py |
154 | REPLACE_FILES.py27+= Lib/lib2to3/tests/data/false_encoding.py | | 154 | REPLACE_FILES.py27+= Lib/lib2to3/tests/data/false_encoding.py |
155 | REPLACE_FILES.py27+= Lib/lib2to3/tests/pytree_idempotency.py | | 155 | REPLACE_FILES.py27+= Lib/lib2to3/tests/pytree_idempotency.py |
156 | REPLACE_FILES.py27+= Lib/mimify.py | | 156 | REPLACE_FILES.py27+= Lib/mimify.py |
157 | REPLACE_FILES.py27+= Lib/pdb.py | | 157 | REPLACE_FILES.py27+= Lib/pdb.py |
158 | REPLACE_FILES.py27+= Lib/plat-mac/appletrunner.py | | 158 | REPLACE_FILES.py27+= Lib/plat-mac/appletrunner.py |
159 | REPLACE_FILES.py27+= Lib/plat-mac/bundlebuilder.py | | 159 | REPLACE_FILES.py27+= Lib/plat-mac/bundlebuilder.py |
160 | REPLACE_FILES.py27+= Lib/platform.py | | 160 | REPLACE_FILES.py27+= Lib/platform.py |
161 | REPLACE_FILES.py27+= Lib/profile.py | | 161 | REPLACE_FILES.py27+= Lib/profile.py |
162 | REPLACE_FILES.py27+= Lib/pydoc.py | | 162 | REPLACE_FILES.py27+= Lib/pydoc.py |
163 | REPLACE_FILES.py27+= Lib/quopri.py | | 163 | REPLACE_FILES.py27+= Lib/quopri.py |
164 | REPLACE_FILES.py27+= Lib/smtpd.py | | 164 | REPLACE_FILES.py27+= Lib/smtpd.py |
165 | REPLACE_FILES.py27+= Lib/smtplib.py | | 165 | REPLACE_FILES.py27+= Lib/smtplib.py |
166 | REPLACE_FILES.py27+= Lib/symbol.py | | 166 | REPLACE_FILES.py27+= Lib/symbol.py |
167 | REPLACE_FILES.py27+= Lib/tabnanny.py | | 167 | REPLACE_FILES.py27+= Lib/tabnanny.py |
168 | REPLACE_FILES.py27+= Lib/test/bisect_cmd.py | | 168 | REPLACE_FILES.py27+= Lib/test/bisect_cmd.py |
169 | REPLACE_FILES.py27+= Lib/test/curses_tests.py | | 169 | REPLACE_FILES.py27+= Lib/test/curses_tests.py |
170 | REPLACE_FILES.py27+= Lib/test/re_tests.py | | 170 | REPLACE_FILES.py27+= Lib/test/re_tests.py |
171 | REPLACE_FILES.py27+= Lib/test/pystone.py | | 171 | REPLACE_FILES.py27+= Lib/test/pystone.py |
172 | REPLACE_FILES.py27+= Lib/test/regrtest.py | | 172 | REPLACE_FILES.py27+= Lib/test/regrtest.py |
173 | REPLACE_FILES.py27+= Lib/timeit.py | | 173 | REPLACE_FILES.py27+= Lib/timeit.py |
174 | REPLACE_FILES.py27+= Lib/trace.py | | 174 | REPLACE_FILES.py27+= Lib/trace.py |
175 | REPLACE_FILES.py27+= Lib/uu.py | | 175 | REPLACE_FILES.py27+= Lib/uu.py |
176 | REPLACE_FILES.py27+= Lib/webbrowser.py | | 176 | REPLACE_FILES.py27+= Lib/webbrowser.py |
177 | | | 177 | |
178 | SUBST_CLASSES+= libffi | | 178 | SUBST_CLASSES+= libffi |
179 | SUBST_MESSAGE.libffi= Fixing libffi include path on Darwin. | | 179 | SUBST_MESSAGE.libffi= Fixing libffi include path on Darwin. |
180 | SUBST_STAGE.libffi= pre-configure | | 180 | SUBST_STAGE.libffi= pre-configure |
181 | SUBST_FILES.libffi= setup.py | | 181 | SUBST_FILES.libffi= setup.py |
182 | SUBST_SED.libffi= -e 's,/usr/include/ffi,${BUILDLINK_PREFIX.libffi}/include,' | | 182 | SUBST_SED.libffi= -e 's,/usr/include/ffi,${BUILDLINK_PREFIX.libffi}/include,' |
183 | | | 183 | |
184 | # XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib | | 184 | # XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib |
185 | # Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));' | | 185 | # Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));' |
186 | SUBST_CLASSES+= findlib | | 186 | SUBST_CLASSES+= findlib |
187 | SUBST_MESSAGE.findlib= Fixing find_library(). | | 187 | SUBST_MESSAGE.findlib= Fixing find_library(). |
188 | SUBST_STAGE.findlib= pre-configure | | 188 | SUBST_STAGE.findlib= pre-configure |
189 | SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py | | 189 | SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py |
190 | SUBST_FILES.findlib+= Lib/ctypes/util.py | | 190 | SUBST_FILES.findlib+= Lib/ctypes/util.py |
191 | SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py | | 191 | SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py |
192 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' | | 192 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' |
193 | SUBST_SED.findlib+= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!' | | 193 | SUBST_SED.findlib+= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!' |
194 | SUBST_NOOP_OK.findlib= yes | | 194 | SUBST_NOOP_OK.findlib= yes |
195 | | | 195 | |
196 | SUBST_CLASSES+= pkgversion | | 196 | SUBST_CLASSES+= pkgversion |
197 | SUBST_STAGE.pkgversion= pre-configure | | 197 | SUBST_STAGE.pkgversion= pre-configure |
198 | SUBST_FILES.pkgversion= Lib/lib2to3/pgen2/driver.py | | 198 | SUBST_FILES.pkgversion= Lib/lib2to3/pgen2/driver.py |
199 | SUBST_FILES.pkgversion+=Lib/distutils/command/install_egg_info.py | | 199 | SUBST_FILES.pkgversion+=Lib/distutils/command/install_egg_info.py |
200 | SUBST_VARS.pkgversion= PKGVERSION_NOREV | | 200 | SUBST_VARS.pkgversion= PKGVERSION_NOREV |
201 | | | 201 | |
202 | SUBST_CLASSES+= urllib | | 202 | SUBST_CLASSES+= urllib |
203 | SUBST_MESSAGE.urllib= Fixing path to urllib.cfg. | | 203 | SUBST_MESSAGE.urllib= Fixing path to urllib.cfg. |
204 | SUBST_STAGE.urllib= pre-configure | | 204 | SUBST_STAGE.urllib= pre-configure |
205 | SUBST_FILES.urllib= Lib/urlparse.py | | 205 | SUBST_FILES.urllib= Lib/urlparse.py |
206 | SUBST_VARS.urllib= PKG_SYSCONFDIR | | 206 | SUBST_VARS.urllib= PKG_SYSCONFDIR |
207 | | | 207 | |
208 | .include "options.mk" | | 208 | .include "options.mk" |
209 | | | 209 | |
210 | SUBST_CLASSES+= sslbase | | 210 | SUBST_CLASSES+= sslbase |
211 | SUBST_MESSAGE.sslbase= Fixing find-file for openssl with SSLBASE. | | 211 | SUBST_MESSAGE.sslbase= Fixing find-file for openssl with SSLBASE. |
212 | SUBST_STAGE.sslbase= pre-configure | | 212 | SUBST_STAGE.sslbase= pre-configure |
213 | SUBST_FILES.sslbase= setup.py | | 213 | SUBST_FILES.sslbase= setup.py |
214 | SUBST_VARS.sslbase= SSLBASE | | 214 | SUBST_VARS.sslbase= SSLBASE |
215 | | | 215 | |
216 | SUBST_CLASSES+= cacert | | 216 | SUBST_CLASSES+= cacert |
217 | SUBST_MESSAGE.cacert= Configuring location of default CA certificate file. | | 217 | SUBST_MESSAGE.cacert= Configuring location of default CA certificate file. |
218 | SUBST_STAGE.cacert= pre-configure | | 218 | SUBST_STAGE.cacert= pre-configure |
219 | SUBST_FILES.cacert= Modules/_ssl.c | | 219 | SUBST_FILES.cacert= Modules/_ssl.c |
220 | SUBST_VARS.cacert= PREFIX | | 220 | SUBST_VARS.cacert= PREFIX |
221 | | | 221 | |
222 | post-extract: | | 222 | post-extract: |
223 | ${LN} -s ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Tools/scripts/smtpd${PY_VER_SUFFIX}.py | | 223 | ${LN} -s ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Tools/scripts/smtpd${PY_VER_SUFFIX}.py |
224 | ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} | | 224 | ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} |
225 | ${MV} ${WRKSRC}/Tools/scripts/2to3 ${WRKSRC}/Tools/scripts/2to3-${PY_VER_SUFFIX} | | 225 | ${MV} ${WRKSRC}/Tools/scripts/2to3 ${WRKSRC}/Tools/scripts/2to3-${PY_VER_SUFFIX} |
226 | | | 226 | |
227 | .if ${OPSYS} == "HPUX" | | 227 | .if ${OPSYS} == "HPUX" |
228 | post-install: | | 228 | post-install: |
229 | ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython2.7.sl \ | | 229 | ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython2.7.sl \ |
230 | ${DESTDIR}${PREFIX}/lib/libpython2.7.sl.1.0 | | 230 | ${DESTDIR}${PREFIX}/lib/libpython2.7.sl.1.0 |
231 | .endif | | 231 | .endif |
232 | | | 232 | |
233 | .if ${OS_VARIANT} == "SCOOSR5" | | 233 | .if ${OS_VARIANT} == "SCOOSR5" |
234 | # SCO OpenServer 5.0.7/3.2 has no socklen_t in system headers, but has in | | 234 | # SCO OpenServer 5.0.7/3.2 has no socklen_t in system headers, but has in |
235 | # GNU pth's header. It should be used in this case. | | 235 | # GNU pth's header. It should be used in this case. |
236 | CONFIGURE_ENV+= ac_cv_type_socklen_t=yes | | 236 | CONFIGURE_ENV+= ac_cv_type_socklen_t=yes |
237 | .endif | | 237 | .endif |
238 | | | 238 | |
239 | # needed to make devel/py-readline pick up the correct readline implementation | | 239 | # needed to make devel/py-readline pick up the correct readline implementation |
240 | BUILDLINK_DEPMETHOD.readline= build | | 240 | BUILDLINK_DEPMETHOD.readline= build |
241 | | | 241 | |
242 | .include "../../archivers/bzip2/buildlink3.mk" | | 242 | .include "../../archivers/bzip2/buildlink3.mk" |
243 | .include "../../devel/gettext-lib/buildlink3.mk" | | 243 | .include "../../devel/gettext-lib/buildlink3.mk" |
244 | .include "../../devel/libffi/buildlink3.mk" | | 244 | .include "../../devel/libffi/buildlink3.mk" |
245 | .include "../../devel/readline/buildlink3.mk" | | 245 | .include "../../devel/readline/buildlink3.mk" |
246 | .include "../../devel/zlib/buildlink3.mk" | | 246 | .include "../../devel/zlib/buildlink3.mk" |
247 | .include "../../security/openssl/buildlink3.mk" | | 247 | .include "../../security/openssl/buildlink3.mk" |
248 | .include "../../mk/bdb.buildlink3.mk" | | 248 | .include "../../mk/bdb.buildlink3.mk" |
249 | .include "../../mk/dlopen.buildlink3.mk" | | 249 | .include "../../mk/dlopen.buildlink3.mk" |
250 | .include "../../mk/bsd.pkg.mk" | | 250 | .include "../../mk/bsd.pkg.mk" |