diff options
author | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:46:53 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:46:53 +0000 |
commit | 1fa7ba38f5d100eb7c49a6684a36b183fafab072 (patch) | |
tree | 2c2ab8d33041d40214bd614981d6f1ecb81a7f9a /net | |
parent | 6155860d6c15ce9c049f050048676ddc907881c1 (diff) | |
download | pkgsrc-1fa7ba38f5d100eb7c49a6684a36b183fafab072.tar.gz |
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...
ok agc
Diffstat (limited to 'net')
-rw-r--r-- | net/socat/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile index b94d35ec578..1b890429d02 100644 --- a/net/socat/Makefile +++ b/net/socat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2013/04/11 09:38:09 khorben Exp $ +# $NetBSD: Makefile,v 1.28 2013/05/10 00:46:53 riastradh Exp $ DISTNAME= socat-1.7.2.1 CATEGORIES= net @@ -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} +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD" +# XXX Kludge -- the right fix is to make socat not depend on these constants. +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 |