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