summaryrefslogtreecommitdiff
path: root/devel/bmake
diff options
context:
space:
mode:
authorryoon <ryoon>2013-09-08 16:32:14 +0000
committerryoon <ryoon>2013-09-08 16:32:14 +0000
commitde62e9a6642809610d399d1a295110aa88e75faa (patch)
treee503cf7b854c1bf70debd357a7095bebc6a28c7a /devel/bmake
parentfed4f5afb975bf89071da9bccc86faa5c4e198d7 (diff)
downloadpkgsrc-de62e9a6642809610d399d1a295110aa88e75faa.tar.gz
Add FreeMiNT support.
Diffstat (limited to 'devel/bmake')
-rw-r--r--devel/bmake/files/Makefile.in8
-rwxr-xr-xdevel/bmake/files/machine.sh5
-rw-r--r--devel/bmake/files/os.sh5
-rw-r--r--devel/bmake/files/util.c15
4 files changed, 25 insertions, 8 deletions
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 <sjg@crufty.net>
# 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 <signal.h>
+#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 <errno.h>
#include <time.h>
+/* workaround for EasyMiNT 1.70 and 1.83 */
+#if !defined(__MINT__)
#include <signal.h>
+#endif
#if !defined(HAVE_STRERROR)
extern int errno, sys_nerr;