=> Bootstrap dependency digest>=20010302: found digest-20190127
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for stratagus-2.1-src.tar.gz
=> Checksum RMD160 OK for stratagus-2.1-src.tar.gz
=> Checksum SHA512 OK for stratagus-2.1-src.tar.gz
===> Installing dependencies for stratagus-2.1nb21
==========================================================================
The following variables will affect the build process of this package,
stratagus-2.1nb21.  Their current value is shown below:

        * LUA_VERSION_DEFAULT = 53
        * READLINE_DEFAULT = editline

Based on these variables, the following variables have been set:

        * LUA_PACKAGE = lua51
        * READLINE_TYPE = editline
        * TERMCAP_TYPE = termcap

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2020.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.14
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency flac>=1.1.3nb1: found flac-1.3.3
=> Full dependency libogg>=1.1.2nb1: found libogg-1.3.4nb1
=> Full dependency libmad>=0.15.1bnb1: found libmad-0.15.1bnb2
=> Full dependency libmikmod>=3.2.0: found libmikmod-3.3.11.1nb2
=> Full dependency libvorbis>=1.1.0nb1: found libvorbis-1.3.6nb1
=> Full dependency SDL>=1.2.15nb17: found SDL-1.2.15nb30
=> Full dependency png>=1.6.0nb1: found png-1.6.37
=> Full dependency lua51>=5.1.1<5.2: found lua51-5.1.5nb3
===> Overriding tools for stratagus-2.1nb21
===> Extracting for stratagus-2.1nb21
===> Patching for stratagus-2.1nb21
=> Applying pkgsrc patches for stratagus-2.1nb21
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-Rules.make.in
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-Rules.make.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Rules.make.in,v 1.1 2014/08/19 13:33:30 joerg Exp $
|
|--- Rules.make.in.orig	2014-08-19 09:06:12.000000000 +0000
|+++ Rules.make.in
--------------------------
Patching file Rules.make.in using Plan A...
Hunk #1 succeeded at 29.
Hunk #2 succeeded at 49.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.1.1.1 2004/08/17 12:29:14 wiz Exp $
|
|--- src/stratagus/stratagus.c.orig	2004-06-26 01:22:34.000000000 +0200
|+++ src/stratagus/stratagus.c
--------------------------
Patching file src/stratagus/stratagus.c using Plan A...
Hunk #1 succeeded at 341.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.2 2006/08/14 22:37:57 wiz Exp $
|
|--- configure.orig	2004-07-02 01:46:35.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 3050.
Hunk #2 succeeded at 5548.
Hunk #3 succeeded at 5760.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-ac
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ac,v 1.1 2006/08/14 22:37:57 wiz Exp $
|
|--- src/stratagus/script.c.orig	2004-06-26 22:38:18.000000000 +0000
|+++ src/stratagus/script.c
--------------------------
Patching file src/stratagus/script.c using Plan A...
Hunk #1 succeeded at 325.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-ad
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-ad
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ad,v 1.1 2006/09/20 15:05:57 joerg Exp $
|
|--- Makefile.orig	2006-09-19 21:32:43.000000000 +0200
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 115.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-af
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-af
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-af,v 1.1 2007/01/12 20:32:48 wiz Exp $
|
|--- src/sound/flac.c.orig	2004-06-25 23:22:33.000000000 +0000
|+++ src/sound/flac.c
--------------------------
Patching file src/sound/flac.c using Plan A...
Hunk #1 succeeded at 47.
Hunk #2 succeeded at 95.
Hunk #3 succeeded at 351.
done
=> Verifying /data/pkgsrc/games/stratagus/patches/patch-src_video_png.c
=> Applying pkgsrc patch /data/pkgsrc/games/stratagus/patches/patch-src_video_png.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_video_png.c,v 1.2 2011/08/05 00:56:37 wiz Exp $
|
|Fix build with png-1.5.
|https://bugs.launchpad.net/stratagus/+bug/821210
|
|--- src/video/png.c.orig	2004-06-26 22:38:20.000000000 +0000
|+++ src/video/png.c
--------------------------
Patching file src/video/png.c using Plan A...
Hunk #1 succeeded at 133.
Hunk #2 succeeded at 212.
Hunk #3 succeeded at 224.
Hunk #4 succeeded at 270.
Hunk #5 succeeded at 336.
done
===> Creating toolchain wrappers for stratagus-2.1nb21
/bin/ln -s /data/scratch/games/stratagus/work/.buildlink/lib/pkgconfig/lua-5.1.pc /data/scratch/games/stratagus/work/.buildlink/lib/pkgconfig/lua.pc
===> Configuring for stratagus-2.1nb21
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Fixing locale directory references.
=> Checking for portability problems in extracted files
ERROR: [check-portability.awk] => Found test ... == ...:
ERROR: [check-portability.awk] Makefile:145: 	[ $(OBJDIR) == "." ] || $(RM) -rf $$i/$(OBJDIR); \

Explanation:
===========================================================================
The "test" command, as well as the "[" command, are not required to know
the "==" operator. Only a few implementations like bash and some
versions of ksh support it.

When you run "test foo == foo" on a platform that does not support the
"==" operator, the result will be "false" instead of "true". This can
lead to unexpected behavior.

There are two ways to fix this error message. If the file that contains
the "test ==" is needed for building the package, you should create a
patch for it, replacing the "==" operator with "=". If the file is not
needed, add its name to the CHECK_PORTABILITY_SKIP variable in the
package Makefile.
===========================================================================

*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/games/stratagus
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/games/stratagus