-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
**/*.tar.gz | ||
**/*.tar.bz2 | ||
**/*.zip | ||
**/*.dmg | ||
**/*.framework | ||
*/src | ||
*/objs | ||
*/installs | ||
*/License.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [ "$DLNAME" == "" ]; then DLNAME="${URL##*/}"; fi | ||
|
||
# grab dmg | ||
if [ ! -f "$DLNAME" ]; then | ||
curl -L -o "$DLNAME" "$URL" | ||
fi | ||
|
||
# mount dmg | ||
DMGROOT=`hdiutil attach "$DLNAME" | tail -1 | cut -f 3 -d $'\t'` | ||
|
||
# copy files | ||
rsync -rlt "$DMGROOT"/*.framework ./ | ||
|
||
if [ "$LICENSE" != "" ]; then | ||
if [ -f "$DMGROOT/$LICENSE" ]; then | ||
cp "$DMGROOT/$LICENSE" "License.txt" | ||
fi | ||
fi | ||
|
||
# unmount dmg | ||
diskutil unmount "$DMGROOT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
SIGNATURE="$1" | ||
|
||
RELDIR=`pwd` | ||
PKGDIR="$RELDIR/objs" | ||
if [ -d "$PKGDIR" ]; then rm -r "$PKGDIR"; fi | ||
mkdir "$PKGDIR" | ||
LICDIR="$PKGDIR/Licenses" | ||
mkdir "$LICDIR" | ||
ln -s /Library/Frameworks "$PKGDIR/Install to Frameworks" | ||
|
||
# Static libraries | ||
for DIR in ogg vorbis vpx; do | ||
cd ../$DIR | ||
./build.sh | ||
if [ -f "License.txt" ]; then | ||
cp "License.txt" "$LICDIR/$DIR License.txt" | ||
fi | ||
cd "$RELDIR" | ||
done | ||
|
||
# Frameworks (binary and source) | ||
for DIR in sdl2 sdl2_image sdl2_net sdl2_ttf \ | ||
boost ffmpeg jpeg png speex speexdsp zziplib; do | ||
cd ../$DIR | ||
./build.sh | ||
for FWK in *.framework; do | ||
rsync -rlt "$FWK" "$PKGDIR/" | ||
if [ -f "License.txt" ]; then | ||
cp "License.txt" "$LICDIR/${FWK%.framework} License.txt" | ||
fi | ||
done | ||
cd "$RELDIR" | ||
done | ||
|
||
# create dmg | ||
VERSION=`date +'%Y%m%d'` | ||
DMGPATH="aleph-mac-frameworks-$VERSION.dmg" | ||
if [ -f "$DMGPATH" ]; then rm "$DMGPATH"; fi | ||
hdiutil create -ov -fs HFS+ -format UDBZ -layout GPTSPUD -srcfolder "$PKGDIR" -volname "Aleph One Frameworks $VERSION" "$DMGPATH" | ||
if [ "$SIGNATURE" == "" ]; then | ||
echo "No signature provided. Disk image is unsigned." | ||
else | ||
codesign -s "$SIGNATURE" "$DMGPATH" | ||
spctl -a -t open --context context:primary-signature -v "$DMGPATH" | ||
fi | ||
|
||
rm -r "$PKGDIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export PROJ="SDL2" | ||
export VERSION="2.0.9" | ||
export URL="https://www.libsdl.org/release/$PROJ-$VERSION.dmg" | ||
export LICENSE="License.txt" | ||
|
||
../copy-prebuilt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export PROJ="SDL2_image" | ||
export VERSION="2.0.4" | ||
export URL="https://www.libsdl.org/projects/SDL_image/release/$PROJ-$VERSION.dmg" | ||
export LICENSE="ReadMe.txt" | ||
|
||
../copy-prebuilt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export PROJ="SDL2_net" | ||
export VERSION="2.0.1" | ||
export URL="https://www.libsdl.org/projects/SDL_net/release/$PROJ-$VERSION.dmg" | ||
export LICENSE="ReadMe.txt" | ||
|
||
../copy-prebuilt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export PROJ="SDL2_ttf" | ||
export VERSION="2.0.15" | ||
export URL="https://www.libsdl.org/projects/SDL_ttf/release/$PROJ-$VERSION.dmg" | ||
export LICENSE="ReadMe.txt" | ||
|
||
../copy-prebuilt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters