Skip to content

Commit 9e3fd32

Browse files
committed
Package frameworks for release
1 parent a408edd commit 9e3fd32

File tree

18 files changed

+128
-0
lines changed

18 files changed

+128
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
**/*.tar.gz
22
**/*.tar.bz2
33
**/*.zip
4+
**/*.dmg
45
**/*.framework
56
*/src
67
*/objs
78
*/installs
9+
*/License.txt

boost/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export URL="https://dl.bintray.com/boostorg/release/$VERSION/source/boost_$VERSI
77
export DIRNAME="${PROJ}_${VERSIONDL}"
88
export FWKS=(libboost_system libboost_filesystem boost)
99
export CONFIGOPTS=""
10+
export LICENSE="LICENSE_1_0.txt"
1011

1112
DEV="/Applications/Xcode.app/Contents/Developer"
1213
SDKROOT="$DEV/Platforms/MacOSX.platform/Developer/SDKs"
@@ -36,6 +37,12 @@ case "$DLNAME" in
3637
esac
3738
mv "$DIRNAME" "$SRCDIR"
3839

40+
if [ "$LICENSE" != "" ]; then
41+
if [ -f "$SRCDIR/$LICENSE" ]; then
42+
cp "$SRCDIR/$LICENSE" "License.txt"
43+
fi
44+
fi
45+
3946
if [ -d "$COMPILEDIR" ]; then rm -r "$COMPILEDIR"; fi
4047
if [ -d "$INSTALLDIR" ]; then rm -r "$INSTALLDIR"; fi
4148

build-std.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ case "$DLNAME" in
3131
esac
3232
mv "$DIRNAME" "$SRCDIR"
3333

34+
if [ "$LICENSE" != "" ]; then
35+
if [ -f "$SRCDIR/$LICENSE" ]; then
36+
cp "$SRCDIR/$LICENSE" "License.txt"
37+
fi
38+
fi
39+
3440
if [ -d "$COMPILEDIR" ]; then rm -r "$COMPILEDIR"; fi
3541
if [ -d "$INSTALLDIR" ]; then rm -r "$INSTALLDIR"; fi
3642

copy-prebuilt.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
if [ "$DLNAME" == "" ]; then DLNAME="${URL##*/}"; fi
4+
5+
# grab dmg
6+
if [ ! -f "$DLNAME" ]; then
7+
curl -L -o "$DLNAME" "$URL"
8+
fi
9+
10+
# mount dmg
11+
DMGROOT=`hdiutil attach "$DLNAME" | tail -1 | cut -f 3 -d $'\t'`
12+
13+
# copy files
14+
rsync -rlt "$DMGROOT"/*.framework ./
15+
16+
if [ "$LICENSE" != "" ]; then
17+
if [ -f "$DMGROOT/$LICENSE" ]; then
18+
cp "$DMGROOT/$LICENSE" "License.txt"
19+
fi
20+
fi
21+
22+
# unmount dmg
23+
diskutil unmount "$DMGROOT"

ffmpeg/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export DYLIBNAME_libavcodec="libavcodec.58.dylib"
2020
export DYLIBNAME_libavformat="libavformat.58.dylib"
2121
export DYLIBNAME_libavutil="libavutil.56.dylib"
2222
export DYLIBNAME_swscale="libswscale.5.dylib"
23+
export LICENSE="LICENSE.md"
2324

2425
../build-std.sh
2526

jpeg/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export PROJ="jpeg"
44
export VERSION="9c"
55
export URL="http://www.ijg.org/files/jpegsrc.v9c.tar.gz"
66
export CONFIGOPTS="--disable-static"
7+
export LICENSE="README"
78

89
../build-std.sh

ogg/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export URL="http://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.gz"
66
export DIRNAME="lib$PROJ-$VERSION"
77
export CONFIGOPTS="--disable-shared"
88
export NOPACKAGING="1"
9+
export LICENSE="COPYING"
910

1011
../build-std.sh

png/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export VERSION="1.6.36"
55
export URL="https://download.sourceforge.net/libpng/libpng-1.6.36.tar.gz"
66
export DIRNAME="lib$PROJ-$VERSION"
77
export CONFIGOPTS="--disable-static"
8+
export LICENSE="LICENSE"
89

910
../build-std.sh
1011

release/build-all.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/bash
2+
3+
SIGNATURE="$1"
4+
5+
RELDIR=`pwd`
6+
PKGDIR="$RELDIR/objs"
7+
if [ -d "$PKGDIR" ]; then rm -r "$PKGDIR"; fi
8+
mkdir "$PKGDIR"
9+
LICDIR="$PKGDIR/Licenses"
10+
mkdir "$LICDIR"
11+
ln -s /Library/Frameworks "$PKGDIR/Install to Frameworks"
12+
13+
# Static libraries
14+
for DIR in ogg vorbis vpx; do
15+
cd ../$DIR
16+
./build.sh
17+
if [ -f "License.txt" ]; then
18+
cp "License.txt" "$LICDIR/$DIR License.txt"
19+
fi
20+
cd "$RELDIR"
21+
done
22+
23+
# Frameworks (binary and source)
24+
for DIR in sdl2 sdl2_image sdl2_net sdl2_ttf \
25+
boost ffmpeg jpeg png speex speexdsp zziplib; do
26+
cd ../$DIR
27+
./build.sh
28+
for FWK in *.framework; do
29+
rsync -rlt "$FWK" "$PKGDIR/"
30+
if [ -f "License.txt" ]; then
31+
cp "License.txt" "$LICDIR/${FWK%.framework} License.txt"
32+
fi
33+
done
34+
cd "$RELDIR"
35+
done
36+
37+
# create dmg
38+
VERSION=`date +'%Y%m%d'`
39+
DMGPATH="aleph-mac-frameworks-$VERSION.dmg"
40+
if [ -f "$DMGPATH" ]; then rm "$DMGPATH"; fi
41+
hdiutil create -ov -fs HFS+ -format UDBZ -layout GPTSPUD -srcfolder "$PKGDIR" -volname "Aleph One Frameworks $VERSION" "$DMGPATH"
42+
if [ "$SIGNATURE" == "" ]; then
43+
echo "No signature provided. Disk image is unsigned."
44+
else
45+
codesign -s "$SIGNATURE" "$DMGPATH"
46+
spctl -a -t open --context context:primary-signature -v "$DMGPATH"
47+
fi
48+
49+
rm -r "$PKGDIR"

sdl2/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
export PROJ="SDL2"
4+
export VERSION="2.0.9"
5+
export URL="https://www.libsdl.org/release/$PROJ-$VERSION.dmg"
6+
export LICENSE="License.txt"
7+
8+
../copy-prebuilt.sh

sdl2_image/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
export PROJ="SDL2_image"
4+
export VERSION="2.0.4"
5+
export URL="https://www.libsdl.org/projects/SDL_image/release/$PROJ-$VERSION.dmg"
6+
export LICENSE="ReadMe.txt"
7+
8+
../copy-prebuilt.sh

sdl2_net/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
export PROJ="SDL2_net"
4+
export VERSION="2.0.1"
5+
export URL="https://www.libsdl.org/projects/SDL_net/release/$PROJ-$VERSION.dmg"
6+
export LICENSE="ReadMe.txt"
7+
8+
../copy-prebuilt.sh

sdl2_ttf/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
export PROJ="SDL2_ttf"
4+
export VERSION="2.0.15"
5+
export URL="https://www.libsdl.org/projects/SDL_ttf/release/$PROJ-$VERSION.dmg"
6+
export LICENSE="ReadMe.txt"
7+
8+
../copy-prebuilt.sh

speex/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export PROJ="speex"
44
export VERSION="1.2.0"
55
export URL="http://downloads.xiph.org/releases/speex/$PROJ-$VERSION.tar.gz"
66
export CONFIGOPTS="--disable-static"
7+
export LICENSE="COPYING"
78

89
../build-std.sh

speexdsp/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export PROJ="speexdsp"
44
export VERSION="1.2rc3"
55
export URL="http://downloads.xiph.org/releases/speex/$PROJ-$VERSION.tar.gz"
66
export CONFIGOPTS="--disable-static"
7+
export LICENSE="COPYING"
78

89
../build-std.sh

vorbis/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export DIRNAME="lib$PROJ-$VERSION"
77
OGGBASE=$(cd "../ogg/installs/x86_64" && pwd)
88
export CONFIGOPTS="--disable-shared --disable-oggtest --with-ogg-libraries=$OGGBASE/lib --with-ogg-includes=$OGGBASE/include"
99
export NOPACKAGING="1"
10+
export LICENSE="COPYING"
1011

1112
../build-std.sh

vpx/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export DIRNAME="lib$PROJ-$VERSION"
77
export CONFIGOPTS="--disable-examples --disable-unit-tests --target=x86_64-darwin13-gcc"
88
export PATH_EXTRA="/usr/local/bin" # for nasm
99
export NOPACKAGING="1"
10+
export LICENSE="LICENSE"
1011

1112
../build-std.sh

zziplib/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export VERSION="0.13.69"
55
export URL="https://github.com/gdraheim/zziplib/archive/v0.13.69.tar.gz"
66
export CONFIGOPTS="--disable-static"
77
export DYLIBNAME_libzziplib="libzzip.dylib"
8+
export LICENSE="COPYING.LIB"
89

910
../build-std.sh

0 commit comments

Comments
 (0)