summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2008-04-30 03:14:55 +0000
committerminskim <minskim@pkgsrc.org>2008-04-30 03:14:55 +0000
commit83e7b318fb66dc3f89e6bf06a0b071e2c1557c47 (patch)
tree411c058ba7d40e0f4f9d1dd130358054bc8e1791 /bootstrap
parente166682a0e905c84564b35904a0da22bc3174f09 (diff)
downloadpkgsrc-83e7b318fb66dc3f89e6bf06a0b071e2c1557c47.tar.gz
Set packagemaker so that the .pkg is built on Darwin.
This functionality disappeared when mkbinarykit was merged into bootstrap. Still need to revive support for universal binary.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap13
1 files changed, 12 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 276c952e1f3..21595192f94 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.122 2008/04/29 22:03:19 minskim Exp $
+# $NetBSD: bootstrap,v 1.123 2008/04/30 03:14:55 minskim Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -445,6 +445,17 @@ Darwin)
set_opsys=no
machine_arch=`uname -p`
CC="gcc -isystem /usr/include"; export CC
+ osrev=`uname -r`
+ macosx_version=`echo $osrev | awk -F . '{ print "10."$1-4; }'`
+ case "$macosx_version" in
+ 10.[0-4])
+ packagemaker=/Developer/Tools/packagemaker
+ ;;
+ *)
+ packagemaker=/Developer/usr/bin/packagemaker
+ ;;
+ esac
+ unset osrev macosx_version
;;
DragonFly)
root_group=wheel