$OpenBSD: patch-scripts_pkg_pkg_m,v 1.4 2008/10/05 16:22:04 steven Exp $
--- scripts/pkg/pkg.m.orig	Fri Aug  1 08:50:56 2008
+++ scripts/pkg/pkg.m	Wed Oct  1 22:13:29 2008
@@ -1242,7 +1242,7 @@ function configure_make (desc, packdir, verbose)   
     ## make
     if (exist (fullfile (src, "Makefile"), "file"))
       [status, output] = shell (strcat ("export INSTALLDIR=\"", desc.dir,
-					 "\"; make -C ", src));
+					 "\"; gmake -C ", src));
       if (status != 0)
 	rm_rf (desc.dir);
 	error ("'make' returned the following error: %s", output);
