diff options
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r-- | lang/python24/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 628d1fde5451..a9754b9a700b 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -99,8 +99,10 @@ PLIST_SUB+= 32BIT_ONLY="" CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 .endif -.if !exists(/usr/bin/ypcat) # the world with NO_NIS +# See http://bugs.freebsd.org/115940 +.if !exists(/usr/bin/ypcat) || defined(WITHOUT_NIS) # the world with NO_NIS PLIST_SUB+= NO_NIS="@comment " +WITHOUT_NIS?= detected .else PLIST_SUB+= NO_NIS="" .endif @@ -134,6 +136,13 @@ pre-patch: ${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist .endif +post-patch: +.if defined(WITHOUT_NIS) + ${REINPLACE_CMD} -e \ + 's/disabled_module_list =[^]]*/&, "nis"/' \ + ${PATCH_WRKSRC}/setup.py +.endif + post-configure: @# prepare a subdir for shared build .for subdir in Modules Parser Python Objects |