Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francois Budin
xz
Commits
416729e2
Commit
416729e2
authored
13 years ago
by
Anders F Bjorklund
Committed by
Lasse Collin
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
move configurables into variables
parent
16581080
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macosx/build.sh
+18
-7
18 additions, 7 deletions
macosx/build.sh
with
18 additions
and
7 deletions
macosx/build.sh
+
18
−
7
View file @
416729e2
...
...
@@ -13,14 +13,23 @@ mkdir -p Resources
# Abort immediately if something goes wrong.
set
-e
GCC
=
"gcc-4.0"
SDK
=
"/Developer/SDKs/MacOSX10.4u.sdk"
MDT
=
"10.4"
GTT
=
i686-apple-darwin8
ARCHES1
=
"-arch ppc -arch ppc64 -arch i386 -arch x86_64"
ARCHES2
=
"-arch ppc -arch i386"
PKGFORMAT
=
"10.4"
# dir
# Clean up if it was already configured.
[
-f
Makefile
]
&&
make distclean
# Build the regular fat program
CC
=
"
gcc-4.0
"
\
CFLAGS
=
"-O2 -g
-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=
10.4
"
\
../configure
--disable-dependency-tracking
--disable-xzdec
--disable-lzmadec
i686-apple-darwin8
CC
=
"
$GCC
"
\
CFLAGS
=
"-O2 -g
$ARCHES1
-isysroot
$SDK
-mmacosx-version-min=
$MDT
"
\
../configure
--disable-dependency-tracking
--disable-xzdec
--disable-lzmadec
$GTT
make
...
...
@@ -32,9 +41,9 @@ make distclean
# Build the size-optimized program
CC
=
"
gcc-4.0
"
\
CFLAGS
=
"-Os -g
-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=
10.4
"
\
../configure
--disable-dependency-tracking
--disable-shared
--disable-nls
--disable-encoders
--enable-small
--disable-threads
i686-apple-darwin8
CC
=
"
$GCC
"
\
CFLAGS
=
"-Os -g
$ARCHES2
-isysroot
$SDK
-mmacosx-version-min=
$MDT
"
\
../configure
--disable-dependency-tracking
--disable-shared
--disable-nls
--disable-encoders
--enable-small
--disable-threads
$GTT
make
-C
src/liblzma
make
-C
src/xzdec
...
...
@@ -80,12 +89,14 @@ cp -p ../COPYING Resources/License.txt
ID
=
"org.tukaani.xz"
VERSION
=
`
cd
..
;
sh build-aux/version.sh
`
PACKAGEMAKER
=
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
$PACKAGEMAKER
-r
Root/usr/local
-l
/usr/local
-e
Resources
-i
$ID
-n
$VERSION
-t
XZ
-o
XZ.pkg
-g
10.4
--verbose
$PACKAGEMAKER
-r
Root/usr/local
-l
/usr/local
-e
Resources
-i
$ID
-n
$VERSION
-t
XZ
-o
XZ.pkg
-g
$PKGFORMAT
--verbose
# Put the package in a disk image
if
[
"
$PKGFORMAT
"
!=
"10.5"
]
;
then
hdiutil create
-fs
HFS+
-format
UDZO
-quiet
-srcfolder
XZ.pkg
-ov
XZ.dmg
hdiutil internet-enable
-yes
-quiet
XZ.dmg
fi
echo
echo
"Build completed successfully."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment