Skip to content

Commit

Permalink
Version 4: try to fix PPC build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Mar 23, 2011
1 parent 803a665 commit 5aaecdd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Installer/INSTALLER.txt
@@ -1,4 +1,4 @@
Thank you for installing MacGPG1 (version 1.4.11-2).
Thank you for installing MacGPG1 (version 1.4.11-4).

This will allow you to use OpenPGP on OS X.

Expand Down
2 changes: 1 addition & 1 deletion Installer/MacGPG1.pkgproj
Expand Up @@ -533,7 +533,7 @@
<key>RELOCATABLE</key>
<false/>
<key>VERSION</key>
<string>1.4.11-1</string>
<string>1.4.11-4</string>
</dict>
<key>UUID</key>
<string>5BCCF690-7295-423B-89B3-5BAC72D8B16A</string>
Expand Down
3 changes: 2 additions & 1 deletion Installer/postflight.sh
Expand Up @@ -3,6 +3,7 @@
stdDir="/usr/local";
gpgDir="/usr/local/MacGPG1";

[ -f $stdDir/bin/gpg ] || ln -s $gpgDir/bin/gpg $stdDir/bin/gpg
[ -L $stdDir/bin/gpg ] && rm $stdDir/bin/gpg
[ -f $stdDir/bin/gpg ] || ln -s $gpgDir/bin/gpg $stdDir/bin/gpg

exit 0
2 changes: 1 addition & 1 deletion Makefile.config
@@ -1,6 +1,6 @@
name="MacGPG1"
volumeName="$name"
version="1.4.11-2"
version="1.4.11-4"
appName="$name.pkg"
appPath="build/$name.pkg"
bundleName="$name.pkg"
Expand Down
9 changes: 5 additions & 4 deletions build-script.sh
Expand Up @@ -36,10 +36,11 @@ fi

tar -xzf "$version$fileExt";
cd "$version";

./configure CFLAGS="-arch ppc -arch x86_64 -arch i386" --disable-dependency-tracking --disable-asm --prefix="$target" && \
make && \
make check
export MACOSX_DEPLOYMENT_TARGET="10.5"
export CFLAGS="-mmacosx-version-min=10.5 -DUNIX -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -arch x86_64"
./configure --enable-static=yes --disable-endian-check --disable-dependency-tracking --disable-asm --enable-osx-universal-binaries --prefix="$target" && \
make -j2 && \
make -j2 check

if [ "$?" != "0" ]; then
echo "Could not compile the sources!";
Expand Down

0 comments on commit 5aaecdd

Please sign in to comment.