From 3ed8c4c0e4389aa6e4db8dfb8d4768906b0444f3 Mon Sep 17 00:00:00 2001 From: ryoon Date: Sun, 8 Sep 2013 16:32:14 +0000 Subject: Add FreeMiNT support. --- devel/bmake/files/Makefile.in | 8 ++++++-- devel/bmake/files/machine.sh | 5 ++++- devel/bmake/files/os.sh | 5 ++++- devel/bmake/files/util.c | 15 +++++++++++---- 4 files changed, 25 insertions(+), 8 deletions(-) (limited to 'devel') diff --git a/devel/bmake/files/Makefile.in b/devel/bmake/files/Makefile.in index ed1d0526e88..7775edc021f 100644 --- a/devel/bmake/files/Makefile.in +++ b/devel/bmake/files/Makefile.in @@ -1,7 +1,7 @@ -# $NetBSD: Makefile.in,v 1.20 2011/06/18 22:39:46 bsiegert Exp $ +# $NetBSD: Makefile.in,v 1.21 2013/09/08 16:32:14 ryoon Exp $ # @(#)Makefile 5.2 (Berkeley) 12/28/90 -# $Id: Makefile.in,v 1.20 2011/06/18 22:39:46 bsiegert Exp $ +# $Id: Makefile.in,v 1.21 2013/09/08 16:32:14 ryoon Exp $ PROG= bmake SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \ @@ -142,4 +142,8 @@ DPADD+=${LIBUTIL} # A simple unit-test driver to help catch regressions accept test: +.if ${OS} != "FreeMiNT" cd ${.CURDIR}/unit-tests && ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} +.else + true +.endif diff --git a/devel/bmake/files/machine.sh b/devel/bmake/files/machine.sh index 9ad8203499e..fdd577ce161 100755 --- a/devel/bmake/files/machine.sh +++ b/devel/bmake/files/machine.sh @@ -2,7 +2,7 @@ # derrived from /etc/rc_d/os.sh # RCSid: -# $Id: machine.sh,v 1.8 2013/07/26 09:38:15 ryoon Exp $ +# $Id: machine.sh,v 1.9 2013/09/08 16:32:14 ryoon Exp $ # # @(#) Copyright (c) 1994-2002 Simon J. Gerraty # @@ -90,6 +90,9 @@ CYGWIN_*) GNU/kFreeBSD) MACHINE_ARCH=$MACHINE ;; +FreeMiNT) + MACHINE_ARCH=m68k + ;; esac MACHINE=${MACHINE:-$OS$OSMAJOR} diff --git a/devel/bmake/files/os.sh b/devel/bmake/files/os.sh index ee37aaffa15..4cfb463e8a2 100644 --- a/devel/bmake/files/os.sh +++ b/devel/bmake/files/os.sh @@ -17,7 +17,7 @@ # Simon J. Gerraty # RCSid: -# $Id: os.sh,v 1.8 2013/07/30 12:27:20 ryoon Exp $ +# $Id: os.sh,v 1.9 2013/09/08 16:32:14 ryoon Exp $ # # @(#) Copyright (c) 1994 Simon J. Gerraty # @@ -198,6 +198,9 @@ CYGWIN_*) GNU/kFreeBSD) MACHINE_ARCH=$MACHINE ;; +FreeMiNT) + MACHINE_ARCH=m68k + ;; esac HOSTNAME=${HOSTNAME:-`( hostname ) 2>/dev/null`} diff --git a/devel/bmake/files/util.c b/devel/bmake/files/util.c index 6b298c6abc6..39f656aef06 100644 --- a/devel/bmake/files/util.c +++ b/devel/bmake/files/util.c @@ -1,24 +1,31 @@ -/* $NetBSD: util.c,v 1.10 2011/06/18 22:39:46 bsiegert Exp $ */ +/* $NetBSD: util.c,v 1.11 2013/09/08 16:32:14 ryoon Exp $ */ /* * Missing stuff from OS's * - * $Id: util.c,v 1.10 2011/06/18 22:39:46 bsiegert Exp $ + * $Id: util.c,v 1.11 2013/09/08 16:32:14 ryoon Exp $ */ +/* workaround for EasyMiNT 1.70 and 1.83 */ +#if defined(__MINT__) +#include +#endif #include "make.h" #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: util.c,v 1.10 2011/06/18 22:39:46 bsiegert Exp $"; +static char rcsid[] = "$NetBSD: util.c,v 1.11 2013/09/08 16:32:14 ryoon Exp $"; #else #ifndef lint -__RCSID("$NetBSD: util.c,v 1.10 2011/06/18 22:39:46 bsiegert Exp $"); +__RCSID("$NetBSD: util.c,v 1.11 2013/09/08 16:32:14 ryoon Exp $"); #endif #endif #include #include +/* workaround for EasyMiNT 1.70 and 1.83 */ +#if !defined(__MINT__) #include +#endif #if !defined(HAVE_STRERROR) extern int errno, sys_nerr; -- cgit v1.2.3