01db152b21
For this purpose, factor the PY_PLATNAME definition out into a new lang/pythonNN/platname.mk file. It's not the same for 2.x and 3.x; perhaps we could factor it out further into a single 2.x vs 3.x conditional but this is a more mechanical change that makes it easier to audit for now.
16 lines
402 B
Makefile
16 lines
402 B
Makefile
# $NetBSD: platname.mk,v 1.1 2023/06/27 10:35:29 riastradh Exp $
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
PY_PLATNAME= ${LOWER_OPSYS}
|
|
.elif ${OPSYS} == "IRIX"
|
|
PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
|
|
.elif ${OPSYS} == "SunOS"
|
|
PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
|
|
.elif ${OPSYS} == "HPUX"
|
|
PY_PLATNAME= hp-ux11
|
|
.elif ${OPSYS} == "Linux"
|
|
PY_PLATNAME= linux
|
|
.else
|
|
PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
|
|
.endif
|