summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorriastradh <riastradh>2013-05-10 00:46:53 +0000
committerriastradh <riastradh>2013-05-10 00:46:53 +0000
commitfd16ac49bf9532b91da1700d0bcdc50e25a0358e (patch)
tree2c2ab8d33041d40214bd614981d6f1ecb81a7f9a /net
parent87e2e7425c6e5fa522577e6ffacb88be26310e0c (diff)
downloadpkgsrc-fd16ac49bf9532b91da1700d0bcdc50e25a0358e.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/Makefile12
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