Move build dir. variables back into makemacpkg to avoid messing up the Solaris packaging system.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@804 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/release/makemacpkg.in b/release/makemacpkg.in
index 89a3fd7..6cb4069 100644
--- a/release/makemacpkg.in
+++ b/release/makemacpkg.in
@@ -25,16 +25,34 @@
VERSION=@VERSION@
BUILD=@BUILD@
SRCDIR=@abs_top_srcdir@
-BUILDDIR32=
-BUILDDIRARMV6=
-BUILDDIRARMV7=
+BUILDDIR32=@abs_top_srcdir@/osxx86
+BUILDDIRARMV6=@abs_top_srcdir@/iosarmv6
+BUILDDIRARMV7=@abs_top_srcdir@/iosarmv7
WITH_JAVA=@WITH_JAVA@
while [ $# -gt 0 ]; do
case $1 in
-h*) usage 0 ;;
- -builddir32) BUILDDIR32=$2; shift ;;
- -builddirarmv6) BUILDDIRARMV6=$2; shift ;;
- -builddirarmv7) BUILDDIRARMV7=$2; shift ;;
+ -builddir32)
+ if [ $# -gt 1 ]; then
+ if [[ ! "$2" =~ -.* ]]; then
+ BUILDDIR32=$2; shift
+ fi
+ fi
+ ;;
+ -builddirarmv6)
+ if [ $# -gt 1 ]; then
+ if [[ ! "$2" =~ -.* ]]; then
+ BUILDDIRARMV6=$2; shift
+ fi
+ fi
+ ;;
+ -builddirarmv7)
+ if [ $# -gt 1 ]; then
+ if [[ ! "$2" =~ -.* ]]; then
+ BUILDDIRARMV7=$2; shift
+ fi
+ fi
+ ;;
esac
shift
done