| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.64 2016/07/23 18:28:26 kamil Exp $ | | 1 | # $NetBSD: Makefile,v 1.65 2016/07/23 21:12:48 kamil 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= 3 | | 6 | PKGREVISION= 3 |
7 | CATEGORIES= lang python | | 7 | CATEGORIES= lang python |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.python.org/ | | 10 | HOMEPAGE= http://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 |
| @@ -176,26 +176,29 @@ SUBST_SED.findlib= -e 's,/usr/local,${PR | | | @@ -176,26 +176,29 @@ SUBST_SED.findlib= -e 's,/usr/local,${PR |
176 | | | 176 | |
177 | SUBST_CLASSES+= pfindlib | | 177 | SUBST_CLASSES+= pfindlib |
178 | SUBST_MESSAGE.pfindlib= Fixing find_library() on POSIX-like (excluding Darwin) systems. | | 178 | SUBST_MESSAGE.pfindlib= Fixing find_library() on POSIX-like (excluding Darwin) systems. |
179 | SUBST_STAGE.pfindlib= pre-configure | | 179 | SUBST_STAGE.pfindlib= pre-configure |
180 | SUBST_FILES.pfindlib= Lib/ctypes/util.py | | 180 | SUBST_FILES.pfindlib= Lib/ctypes/util.py |
181 | SUBST_SED.pfindlib= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!' | | 181 | SUBST_SED.pfindlib= -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \1!' |
182 | | | 182 | |
183 | SUBST_CLASSES+= cdlopen | | 183 | SUBST_CLASSES+= cdlopen |
184 | SUBST_MESSAGE.cdlopen= Handle X11BASE paths in dlopen(3) calls of _ctypes.so | | 184 | SUBST_MESSAGE.cdlopen= Handle X11BASE paths in dlopen(3) calls of _ctypes.so |
185 | SUBST_STAGE.cdlopen= pre-configure | | 185 | SUBST_STAGE.cdlopen= pre-configure |
186 | SUBST_FILES.cdlopen= setup.py | | 186 | SUBST_FILES.cdlopen= setup.py |
187 | SUBST_VARS.cdlopen= X11BASE | | 187 | SUBST_VARS.cdlopen= X11BASE |
188 | | | 188 | |
| | | 189 | # Required to detect X11BASE paths in dlopen(3) calls of _ctypes.so |
| | | 190 | USE_X11= yes |
| | | 191 | |
189 | SUBST_CLASSES+= sslbase | | 192 | SUBST_CLASSES+= sslbase |
190 | SUBST_MESSAGE.sslbase= Fixing find-file for openssl with SSLBASE. | | 193 | SUBST_MESSAGE.sslbase= Fixing find-file for openssl with SSLBASE. |
191 | SUBST_STAGE.sslbase= pre-configure | | 194 | SUBST_STAGE.sslbase= pre-configure |
192 | SUBST_FILES.sslbase= setup.py | | 195 | SUBST_FILES.sslbase= setup.py |
193 | SUBST_VARS.sslbase= SSLBASE | | 196 | SUBST_VARS.sslbase= SSLBASE |
194 | | | 197 | |
195 | SUBST_CLASSES+= cacert | | 198 | SUBST_CLASSES+= cacert |
196 | SUBST_MESSAGE.cacert= Configuring location of default CA certificate file. | | 199 | SUBST_MESSAGE.cacert= Configuring location of default CA certificate file. |
197 | SUBST_STAGE.cacert= pre-configure | | 200 | SUBST_STAGE.cacert= pre-configure |
198 | SUBST_FILES.cacert= Modules/_ssl.c | | 201 | SUBST_FILES.cacert= Modules/_ssl.c |
199 | SUBST_SED.cacert= -e 's,@PREFIX@,${PREFIX},' | | 202 | SUBST_SED.cacert= -e 's,@PREFIX@,${PREFIX},' |
200 | | | 203 | |
201 | post-extract: | | 204 | post-extract: |
| @@ -214,16 +217,14 @@ post-install: | | | @@ -214,16 +217,14 @@ post-install: |
214 | # GNU pth's header. It should be used in this case. | | 217 | # GNU pth's header. It should be used in this case. |
215 | CONFIGURE_ENV+= ac_cv_type_socklen_t=yes | | 218 | CONFIGURE_ENV+= ac_cv_type_socklen_t=yes |
216 | .endif | | 219 | .endif |
217 | | | 220 | |
218 | BUILDLINK_DEPMETHOD.readline= build | | 221 | BUILDLINK_DEPMETHOD.readline= build |
219 | | | 222 | |
220 | .include "../../archivers/bzip2/buildlink3.mk" | | 223 | .include "../../archivers/bzip2/buildlink3.mk" |
221 | .include "../../devel/gettext-lib/buildlink3.mk" | | 224 | .include "../../devel/gettext-lib/buildlink3.mk" |
222 | .include "../../devel/libffi/buildlink3.mk" | | 225 | .include "../../devel/libffi/buildlink3.mk" |
223 | .include "../../devel/readline/buildlink3.mk" | | 226 | .include "../../devel/readline/buildlink3.mk" |
224 | .include "../../devel/zlib/buildlink3.mk" | | 227 | .include "../../devel/zlib/buildlink3.mk" |
225 | .include "../../security/openssl/buildlink3.mk" | | 228 | .include "../../security/openssl/buildlink3.mk" |
226 | .include "../../mk/dlopen.buildlink3.mk" | | 229 | .include "../../mk/dlopen.buildlink3.mk" |
227 | # Required to detect X11BASE paths in dlopen(3) calls of _ctypes.so | | | |
228 | .include "../../mk/x11.buildlink3.mk" | | | |
229 | .include "../../mk/bsd.pkg.mk" | | 230 | .include "../../mk/bsd.pkg.mk" |