Partial hack to cross-compile lang/python27. XXX unfinished XXX We really need a tool dependency on Python, and some patches to make the Python build system use the native Python. See openwrt's Python package for more information, although I think we can do it more easily because we already have infrastructure for building native packages. Index: lang/python27/Makefile =================================================================== RCS file: /cvsroot/pkgsrc/lang/python27/Makefile,v retrieving revision 1.25 diff -p -u -r1.25 Makefile --- lang/python27/Makefile 17 Apr 2013 10:00:57 -0000 1.25 +++ lang/python27/Makefile 23 Apr 2013 13:29:18 -0000 @@ -174,7 +174,18 @@ post-install: .endif USE_GNU_READLINE= yes -BUILDLINK_DEPMETHOD.readline= build +# [TRC 20130326: Hack for cross-compilation. bl3 build dependencies +# don't seem to work. But I'm not sure what this is here for anyway, +# so...] +#BUILDLINK_DEPMETHOD.readline= build + +# [TRC 20130326: Hack for cross-compilation.] +.if ${OPSYS} == "NetBSD" +CONFIGURE_ENV+= ac_cv_have_long_long_format=yes +CONFIGURE_ENV+= ac_cv_have_long_long_format=yes +CONFIGURE_ENV+= ac_cv_func_tempnam=no +CONFIGURE_ENV+= ac_cv_func_tmpnam=no +.endif .include "../../archivers/bzip2/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk"