File tree Expand file tree Collapse file tree 18 files changed +128
-0
lines changed
Expand file tree Collapse file tree 18 files changed +128
-0
lines changed Original file line number Diff line number Diff line change 11** /* .tar.gz
22** /* .tar.bz2
33** /* .zip
4+ ** /* .dmg
45** /* .framework
56* /src
67* /objs
78* /installs
9+ * /License.txt
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export URL="https://dl.bintray.com/boostorg/release/$VERSION/source/boost_$VERSI
77export DIRNAME=" ${PROJ} _${VERSIONDL} "
88export FWKS=(libboost_system libboost_filesystem boost)
99export CONFIGOPTS=" "
10+ export LICENSE=" LICENSE_1_0.txt"
1011
1112DEV=" /Applications/Xcode.app/Contents/Developer"
1213SDKROOT=" $DEV /Platforms/MacOSX.platform/Developer/SDKs"
@@ -36,6 +37,12 @@ case "$DLNAME" in
3637esac
3738mv " $DIRNAME " " $SRCDIR "
3839
40+ if [ " $LICENSE " != " " ]; then
41+ if [ -f " $SRCDIR /$LICENSE " ]; then
42+ cp " $SRCDIR /$LICENSE " " License.txt"
43+ fi
44+ fi
45+
3946if [ -d " $COMPILEDIR " ]; then rm -r " $COMPILEDIR " ; fi
4047if [ -d " $INSTALLDIR " ]; then rm -r " $INSTALLDIR " ; fi
4148
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ case "$DLNAME" in
3131esac
3232mv " $DIRNAME " " $SRCDIR "
3333
34+ if [ " $LICENSE " != " " ]; then
35+ if [ -f " $SRCDIR /$LICENSE " ]; then
36+ cp " $SRCDIR /$LICENSE " " License.txt"
37+ fi
38+ fi
39+
3440if [ -d " $COMPILEDIR " ]; then rm -r " $COMPILEDIR " ; fi
3541if [ -d " $INSTALLDIR " ]; then rm -r " $INSTALLDIR " ; fi
3642
Original file line number Diff line number Diff line change 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 "
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export DYLIBNAME_libavcodec="libavcodec.58.dylib"
2020export DYLIBNAME_libavformat=" libavformat.58.dylib"
2121export DYLIBNAME_libavutil=" libavutil.56.dylib"
2222export DYLIBNAME_swscale=" libswscale.5.dylib"
23+ export LICENSE=" LICENSE.md"
2324
2425../build-std.sh
2526
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export PROJ="jpeg"
44export VERSION=" 9c"
55export URL=" http://www.ijg.org/files/jpegsrc.v9c.tar.gz"
66export CONFIGOPTS=" --disable-static"
7+ export LICENSE=" README"
78
89../build-std.sh
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ export URL="http://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.gz"
66export DIRNAME=" lib$PROJ -$VERSION "
77export CONFIGOPTS=" --disable-shared"
88export NOPACKAGING=" 1"
9+ export LICENSE=" COPYING"
910
1011../build-std.sh
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export VERSION="1.6.36"
55export URL=" https://download.sourceforge.net/libpng/libpng-1.6.36.tar.gz"
66export DIRNAME=" lib$PROJ -$VERSION "
77export CONFIGOPTS=" --disable-static"
8+ export LICENSE=" LICENSE"
89
910../build-std.sh
1011
Original file line number Diff line number Diff line change 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 "
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments