diff options
Diffstat (limited to 'lang/python27/Makefile')
-rw-r--r-- | lang/python27/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index d8ee01c78ed3..9e95b226855d 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -136,8 +136,10 @@ MAKE_ENV+= UNAME_m="powerpc64" 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 @@ -193,6 +195,11 @@ post-patch: @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py .endif .endif +.if defined(WITHOUT_NIS) + ${REINPLACE_CMD} -e \ + 's/disabled_module_list =[^]]*/&, "nis"/' \ + ${PATCH_WRKSRC}/setup.py +.endif post-configure: ${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf - |