| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.14 2024/02/07 08:06:57 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.15 2024/04/01 23:38:27 charlotte Exp $ |
2 | | | 2 | |
3 | .include "dist.mk" | | 3 | .include "dist.mk" |
4 | | | 4 | |
5 | PKGNAME= python312-${PY_DISTVERSION} | | 5 | PKGNAME= python312-${PY_DISTVERSION} |
6 | CATEGORIES= lang python | | 6 | CATEGORIES= lang python |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.python.org/ | | 9 | HOMEPAGE= https://www.python.org/ |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | | 10 | COMMENT= Interpreted, interactive, object-oriented programming language |
11 | LICENSE= python-software-foundation | | 11 | LICENSE= python-software-foundation |
12 | | | 12 | |
13 | CONFLICTS+= python-[0-9]* | | 13 | CONFLICTS+= python-[0-9]* |
14 | CONFLICTS+= py312-cElementTree-[0-9]* | | 14 | CONFLICTS+= py312-cElementTree-[0-9]* |
| @@ -80,26 +80,27 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ | | | @@ -80,26 +80,27 @@ CONFIGURE_ARGS.NetBSD+= ac_cv_file__dev_ |
80 | .endif | | 80 | .endif |
81 | | | 81 | |
82 | # http://bugs.python.org/issue13241 | | 82 | # http://bugs.python.org/issue13241 |
83 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} | | 83 | .if ${MACHINE_PLATFORM:MDarwin-1[12].*} |
84 | PKGSRC_COMPILER= clang | | 84 | PKGSRC_COMPILER= clang |
85 | PKG_CC= clang | | 85 | PKG_CC= clang |
86 | PKG_CXX= clang++ | | 86 | PKG_CXX= clang++ |
87 | .endif | | 87 | .endif |
88 | | | 88 | |
89 | # Used in socketmodule.c to determine if a sethostname declaration is required | | 89 | # Used in socketmodule.c to determine if a sethostname declaration is required |
90 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} | | 90 | CFLAGS.SunOS+= -DPKGSRC_OPSYS_VERSION=${OPSYS_VERSION} |
91 | LIBS.SunOS+= -lrt # fdatasync() | | 91 | LIBS.SunOS+= -lrt # fdatasync() |
92 | | | 92 | |
| | | 93 | LIBS.DragonFly+= -lcrypt |
93 | LIBS.NetBSD+= -lcrypt | | 94 | LIBS.NetBSD+= -lcrypt |
94 | | | 95 | |
95 | PY_VER_SUFFIX= 3.12 | | 96 | PY_VER_SUFFIX= 3.12 |
96 | | | 97 | |
97 | .if ${OPSYS} == "Darwin" | | 98 | .if ${OPSYS} == "Darwin" |
98 | USE_TOOLS+= gmake | | 99 | USE_TOOLS+= gmake |
99 | .endif | | 100 | .endif |
100 | | | 101 | |
101 | .include "platname.mk" | | 102 | .include "platname.mk" |
102 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} | | 103 | PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} |
103 | | | 104 | |
104 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | | 105 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise |
105 | # certain modules will not be built. | | 106 | # certain modules will not be built. |