Kludgily fix cross-build of net/socat on NetBSD. The right fix is to thwap socat over the head for worrying about the values of these constants at compile-time, but that's inexpedient... Index: net/socat/Makefile =================================================================== RCS file: /cvsroot/pkgsrc/net/socat/Makefile,v retrieving revision 1.27 diff -p -u -r1.27 Makefile --- net/socat/Makefile 11 Apr 2013 09:38:09 -0000 1.27 +++ net/socat/Makefile 23 Apr 2013 13:29:20 -0000 @@ -13,9 +13,19 @@ GNU_CONFIGURE= YES USE_GNU_READLINE= YES ONLY_FOR_COMPILER= gcc # uses -Werror in the configure script +.include "../../mk/bsd.prefs.mk" + CONFIGURE_ARGS+= --disable-libwrap CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} +# [TRC 20130325: Kludge for cross-builds! This is nonsense...] +.if ${OPSYS} == "NetBSD" +CONFIGURE_ENV+= sc_cv_sys_crdly_shift=-1 +CONFIGURE_ENV+= sc_cv_sys_tabdly_shift=-1 +CONFIGURE_ENV+= sc_cv_sys_csize_shift=8 +CONFIGURE_ENV+= ac_cv_ispeed_offset=9 +.endif + SUBST_CLASSES+= paths SUBST_MESSAGE.paths= Fixing hardcoded paths. SUBST_STAGE.paths= post-patch