comparison Makefile @ 63:87850df999db

Make compilation for Python 3.10 work: Refactor SHEBANG_FILES
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 11 Jan 2024 01:14:40 +0100
parents 4a2bf3c9eb24
children 4f846c664620
comparison
equal deleted inserted replaced
62:3ff956f569d6 63:87850df999db
53 ALL_TARGET= ${PYPY_EXECUTABLE} 53 ALL_TARGET= ${PYPY_EXECUTABLE}
54 BUILD_WRKSRC?= ${WRKDIR}/build/usession-${PORTNAME}-0/testing_1 54 BUILD_WRKSRC?= ${WRKDIR}/build/usession-${PORTNAME}-0/testing_1
55 MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared" 55 MAKE_ENV+= PYPY_LOCALBASE=${LOCALBASE} LDSHARED="${CC} -shared"
56 PACKAGE_ARGS?= --without-gdbm --without-sqlite3 --without-_tkinter 56 PACKAGE_ARGS?= --without-gdbm --without-sqlite3 --without-_tkinter
57 LLD_UNSAFE= yes 57 LLD_UNSAFE= yes
58 SHEBANG_FILES?= lib-python/2.7/plat-mac/appletrunner.py \ 58
59 python_OLD_CMD= ${LOCALBASE}/bin/python
60 python_CMD= ${PREFIX}/bin/${PORTNAME}
61
62 .if ${PORTNAME} != pypy
63 PYPY_BUILD_DEPENDS= pypy:lang/pypy
64 PYPY_MINMEM_BUILD_DEPENDS= pypy:lang/pypy
65 .endif
66 PYPY_VARS= PYTHON_CMD=${LOCALBASE}/bin/pypy
67 PYPY_MINMEM_VARS= PYTHON_CMD="${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_longevity=300"
68 PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser@${PY_FLAVOR}
69 PYTHON_USES= python:2.7,build
70
71 DESCR= ${.CURDIR}/pkg-descr
72 PATCHDIR= ${.CURDIR}/files
73
74 .include "bsd.pypy.mk"
75 #.include <bsd.port.pre.mk>
76
77 DISTINFO_FILE?= ${.CURDIR}/distinfo
78 PLIST?= ${.CURDIR}/pkg-plist
79
80 .if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64
81 PYPY_ARGS= --withoutmod-_vmprof
82 .else
83 LIB_DEPENDS+= libunwind.so:devel/libunwind
84 .endif
85
86 .if ${PORTNAME} == pypy
87 SHEBANG_FILES= lib-python/2.7/plat-mac/appletrunner.py \
59 lib-python/2.7/plat-mac/bundlebuilder.py \ 88 lib-python/2.7/plat-mac/bundlebuilder.py \
60 lib-python/2.7/keyword.py \ 89 lib-python/2.7/keyword.py \
61 lib-python/2.7/test/regrtest.py \ 90 lib-python/2.7/test/regrtest.py \
62 lib-python/2.7/test/pystone.py \ 91 lib-python/2.7/test/pystone.py \
63 lib-python/2.7/test/curses_tests.py \ 92 lib-python/2.7/test/curses_tests.py \
88 lib-python/2.7/quopri.py \ 117 lib-python/2.7/quopri.py \
89 lib-python/2.7/timeit.py \ 118 lib-python/2.7/timeit.py \
90 lib-python/2.7/smtplib.py \ 119 lib-python/2.7/smtplib.py \
91 lib_pypy/_cffi_ssl/tools/make_ssl_data.py 120 lib_pypy/_cffi_ssl/tools/make_ssl_data.py
92 121
93 python_OLD_CMD= ${LOCALBASE}/bin/python 122 .else
94 python_CMD= ${PREFIX}/bin/${PORTNAME} 123 .if ${PORT_OPTIONS:MFORPYIMPL37}
95 124 SHEBANG_FILES= \
96 .if ${PORTNAME} != pypy 125 lib-python/3/base64.py \
97 PYPY_BUILD_DEPENDS= pypy:lang/pypy 126 lib-python/3/cProfile.py \
98 PYPY_MINMEM_BUILD_DEPENDS= pypy:lang/pypy 127 lib-python/3/cgi.py \
99 .endif 128 lib-python/3/encodings/rot_13.py \
100 PYPY_VARS= PYTHON_CMD=${LOCALBASE}/bin/pypy 129 lib-python/3/keyword.py \
101 PYPY_MINMEM_VARS= PYTHON_CMD="${SETENV} PYPY_GC_MAX_DELTA=200MB ${LOCALBASE}/bin/pypy --jit loop_longevity=300" 130 lib-python/3/idlelib/pyshell.py \
102 PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser@${PY_FLAVOR} 131 lib-python/3/lib2to3/pgen2/token.py \
103 PYTHON_USES= python:2.7,build 132 lib-python/3/lib2to3/tests/data/different_encoding.py \
104 133 lib-python/3/lib2to3/tests/data/false_encoding.py \
105 DESCR= ${.CURDIR}/pkg-descr 134 lib-python/3/lib2to3/tests/pytree_idempotency.py \
106 PATCHDIR= ${.CURDIR}/files 135 lib-python/3/pdb.py \
107 136 lib-python/3/platform.py \
108 .include "bsd.pypy.mk" 137 lib-python/3/profile.py \
109 #.include <bsd.port.pre.mk> 138 lib-python/3/pydoc.py \
110 139 lib-python/3/quopri.py \
111 DISTINFO_FILE?= ${.CURDIR}/distinfo 140 lib-python/3/smtpd.py \
112 PLIST?= ${.CURDIR}/pkg-plist 141 lib-python/3/smtplib.py \
113 142 lib-python/3/symbol.py \
114 .if ${OPSYS} == FreeBSD && ${ARCH} != i386 && ${ARCH} != amd64 143 lib-python/3/tabnanny.py \
115 PYPY_ARGS= --withoutmod-_vmprof 144 lib-python/3/tarfile.py \
116 .else 145 lib-python/3/test/bisect_cmd.py \
117 LIB_DEPENDS+= libunwind.so:devel/libunwind 146 lib-python/3/test/crashers/recursive_call.py \
147 lib-python/3/test/curses_tests.py \
148 lib-python/3/test/pystone.py \
149 lib-python/3/test/re_tests.py \
150 lib-python/3/test/regrtest.py \
151 lib-python/3/timeit.py \
152 lib-python/3/trace.py \
153 lib-python/3/turtledemo/bytedesign.py \
154 lib-python/3/turtledemo/clock.py \
155 lib-python/3/turtledemo/forest.py \
156 lib-python/3/turtledemo/fractalcurves.py \
157 lib-python/3/turtledemo/lindenmayer.py \
158 lib-python/3/turtledemo/minimal_hanoi.py \
159 lib-python/3/turtledemo/paint.py \
160 lib-python/3/turtledemo/peace.py \
161 lib-python/3/turtledemo/penrose.py \
162 lib-python/3/turtledemo/planet_and_moon.py \
163 lib-python/3/turtledemo/tree.py \
164 lib-python/3/turtledemo/yinyang.py \
165 lib-python/3/uu.py \
166 lib-python/3/webbrowser.py \
167 lib_pypy/_cffi_ssl/tools/make_ssl_data.py
168 .elif ${PORT_OPTIONS:MFORPYIMPL38}
169 SHEBANG_FILES= \
170 lib-python/3/base64.py \
171 lib-python/3/cProfile.py \
172 lib-python/3/cgi.py \
173 lib-python/3/encodings/rot_13.py \
174 lib-python/3/keyword.py \
175 lib-python/3/idlelib/pyshell.py \
176 lib-python/3/lib2to3/pgen2/token.py \
177 lib-python/3/lib2to3/tests/data/different_encoding.py \
178 lib-python/3/lib2to3/tests/data/false_encoding.py \
179 lib-python/3/lib2to3/tests/pytree_idempotency.py \
180 lib-python/3/pdb.py \
181 lib-python/3/platform.py \
182 lib-python/3/profile.py \
183 lib-python/3/pydoc.py \
184 lib-python/3/quopri.py \
185 lib-python/3/smtpd.py \
186 lib-python/3/smtplib.py \
187 lib-python/3/symbol.py \
188 lib-python/3/tabnanny.py \
189 lib-python/3/tarfile.py \
190 lib-python/3/test/bisect_cmd.py \
191 lib-python/3/test/crashers/recursive_call.py \
192 lib-python/3/test/curses_tests.py \
193 lib-python/3/test/pystone.py \
194 lib-python/3/test/re_tests.py \
195 lib-python/3/test/regrtest.py \
196 lib-python/3/timeit.py \
197 lib-python/3/trace.py \
198 lib-python/3/turtledemo/bytedesign.py \
199 lib-python/3/turtledemo/clock.py \
200 lib-python/3/turtledemo/forest.py \
201 lib-python/3/turtledemo/fractalcurves.py \
202 lib-python/3/turtledemo/lindenmayer.py \
203 lib-python/3/turtledemo/minimal_hanoi.py \
204 lib-python/3/turtledemo/paint.py \
205 lib-python/3/turtledemo/peace.py \
206 lib-python/3/turtledemo/penrose.py \
207 lib-python/3/turtledemo/planet_and_moon.py \
208 lib-python/3/turtledemo/tree.py \
209 lib-python/3/turtledemo/yinyang.py \
210 lib-python/3/uu.py \
211 lib-python/3/webbrowser.py \
212 lib-python/3/test/ziptestdata/header.sh \
213 lib-python/3/test/ziptestdata/exe_with_z64 \
214 lib-python/3/test/ziptestdata/exe_with_zip \
215 lib_pypy/_cffi_ssl/tools/make_ssl_data.py
216 .elif ${PORT_OPTIONS:MFORPYIMPL39}
217 SHEBANG_FILES= \
218 lib-python/3/base64.py \
219 lib-python/3/cProfile.py \
220 lib-python/3/cgi.py \
221 lib-python/3/encodings/rot_13.py \
222 lib-python/3/keyword.py \
223 lib-python/3/idlelib/pyshell.py \
224 lib-python/3/lib2to3/pgen2/token.py \
225 lib-python/3/lib2to3/tests/data/different_encoding.py \
226 lib-python/3/lib2to3/tests/data/false_encoding.py \
227 lib-python/3/lib2to3/tests/pytree_idempotency.py \
228 lib-python/3/pdb.py \
229 lib-python/3/platform.py \
230 lib-python/3/profile.py \
231 lib-python/3/pydoc.py \
232 lib-python/3/quopri.py \
233 lib-python/3/smtpd.py \
234 lib-python/3/smtplib.py \
235 lib-python/3/symbol.py \
236 lib-python/3/tabnanny.py \
237 lib-python/3/tarfile.py \
238 lib-python/3/test/bisect_cmd.py \
239 lib-python/3/test/crashers/recursive_call.py \
240 lib-python/3/test/curses_tests.py \
241 lib-python/3/test/pystone.py \
242 lib-python/3/test/re_tests.py \
243 lib-python/3/test/regrtest.py \
244 lib-python/3/timeit.py \
245 lib-python/3/trace.py \
246 lib-python/3/turtledemo/bytedesign.py \
247 lib-python/3/turtledemo/clock.py \
248 lib-python/3/turtledemo/forest.py \
249 lib-python/3/turtledemo/fractalcurves.py \
250 lib-python/3/turtledemo/lindenmayer.py \
251 lib-python/3/turtledemo/minimal_hanoi.py \
252 lib-python/3/turtledemo/paint.py \
253 lib-python/3/turtledemo/peace.py \
254 lib-python/3/turtledemo/penrose.py \
255 lib-python/3/turtledemo/planet_and_moon.py \
256 lib-python/3/turtledemo/sorting_animate.py \
257 lib-python/3/turtledemo/tree.py \
258 lib-python/3/turtledemo/yinyang.py \
259 lib-python/3/turtledemo/__main__.py \
260 lib-python/3/uu.py \
261 lib-python/3/webbrowser.py \
262 lib_pypy/_cffi_ssl/tools/make_ssl_data.py \
263 lib-python/3/test/ziptestdata/header.sh
264 lib-python/3/test/ziptestdata/exe_with_z64 \
265 lib-python/3/test/ziptestdata/exe_with_zip
266 .elif ${PORT_OPTIONS:MFORPYIMPL310}
267 SHEBANG_FILES= \
268 lib-python/3/base64.py \
269 lib-python/3/cProfile.py \
270 lib-python/3/cgi.py \
271 lib-python/3/encodings/rot_13.py \
272 lib-python/3/keyword.py \
273 lib-python/3/idlelib/pyshell.py \
274 lib-python/3/lib2to3/pgen2/token.py \
275 lib-python/3/lib2to3/tests/data/different_encoding.py \
276 lib-python/3/lib2to3/tests/data/false_encoding.py \
277 lib-python/3/lib2to3/tests/pytree_idempotency.py \
278 lib-python/3/pdb.py \
279 lib-python/3/platform.py \
280 lib-python/3/profile.py \
281 lib-python/3/pydoc.py \
282 lib-python/3/quopri.py \
283 lib-python/3/smtpd.py \
284 lib-python/3/smtplib.py \
285 lib-python/3/tabnanny.py \
286 lib-python/3/tarfile.py \
287 lib-python/3/test/bisect_cmd.py \
288 lib-python/3/test/crashers/recursive_call.py \
289 lib-python/3/test/curses_tests.py \
290 lib-python/3/test/pystone.py \
291 lib-python/3/test/re_tests.py \
292 lib-python/3/test/regrtest.py \
293 lib-python/3/timeit.py \
294 lib-python/3/trace.py \
295 lib-python/3/turtledemo/bytedesign.py \
296 lib-python/3/turtledemo/clock.py \
297 lib-python/3/turtledemo/forest.py \
298 lib-python/3/turtledemo/fractalcurves.py \
299 lib-python/3/turtledemo/lindenmayer.py \
300 lib-python/3/turtledemo/minimal_hanoi.py \
301 lib-python/3/turtledemo/paint.py \
302 lib-python/3/turtledemo/peace.py \
303 lib-python/3/turtledemo/penrose.py \
304 lib-python/3/turtledemo/planet_and_moon.py \
305 lib-python/3/turtledemo/sorting_animate.py \
306 lib-python/3/turtledemo/tree.py \
307 lib-python/3/turtledemo/yinyang.py \
308 lib-python/3/turtledemo/__main__.py \
309 lib-python/3/uu.py \
310 lib-python/3/webbrowser.py \
311 lib_pypy/_cffi_ssl/tools/make_ssl_data.py \
312 lib-python/3/test/ziptestdata/header.sh \
313 lib-python/3/test/ziptestdata/exe_with_z64 \
314 lib-python/3/test/ziptestdata/exe_with_zip
315 .endif
118 .endif 316 .endif
119 317
120 pre-build: 318 pre-build:
121 if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \ 319 if [ ! -f ${BUILD_WRKSRC}/Makefile ]; then \
122 ${RM} -r ${WRKDIR}/build; \ 320 ${RM} -r ${WRKDIR}/build; \