$NetBSD: patch-av,v 1.2 2011/11/14 02:00:20 marino Exp $

--- ../FreeBSD/lib/makemake	2011-10-16 00:52:55.000000000 +0000
+++ lib/makemake
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/pkg/bin/perl
 #-
 # Copyright (c) 2004-2005 FreeBSD GNOME Team <freebsd-gnome@FreeBSD.org>
 # All rights reserved.
@@ -139,7 +139,7 @@ my (
 );
 
 $portbase  = $ENV{'PORTSDIR'};
-$makecache = new Tinderbox::MakeCache($portbase, $ENV{'PKGSUFFIX'});
+$makecache = new Tinderbox::MakeCache($portbase, $ENV{'OPTNFILE'});
 
 while (scalar(@PORTS)) {
         my $port    = shift @PORTS;
@@ -162,7 +162,7 @@ while (scalar(@PORTS)) {
         $pkgname = $makecache->PkgName($portdir);
 
         # Create a list of duds (ports that will not be attempted because they
-        # are marked IGNORE or FORBIDDEN).
+        # are marked _CBBH (aka not for this platform) ).
         if (!$noduds) {
                 my $dudpkg = $makecache->IgnoreList($portdir);
                 push @duds, $dudpkg if ($dudpkg);
@@ -229,9 +229,9 @@ foreach my $key (keys %pkgdir) {
         printf MK "\t@%s %s %s %s %s %s ",
             tinderLoc($pb, 'scripts', 'lib/portbuild'), $BUILD_NAME, $JAIL_NAME,
             $PORTSTREE_NAME, $ENV{'PORTBUILD_ARGS'};
-        printf MK "\"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" ", $edeplst, $pdeplst,
-            $fdeplst, $bdeplst, $rdeplst, $tdeplst;
-        printf MK "%s /usr/ports/%s\n", $pname, $key;
+        printf MK "\"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" ",
+            $edeplst, $pdeplst, $fdeplst, $bdeplst, $rdeplst, $tdeplst;
+        printf MK "%s /usr/pkgsrc/%s\n", $pname, $key;
 }
 
 close(MK);
