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 1
1
** /* .tar.gz
2
2
** /* .tar.bz2
3
3
** /* .zip
4
+ ** /* .dmg
4
5
** /* .framework
5
6
* /src
6
7
* /objs
7
8
* /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
7
7
export DIRNAME=" ${PROJ} _${VERSIONDL} "
8
8
export FWKS=(libboost_system libboost_filesystem boost)
9
9
export CONFIGOPTS=" "
10
+ export LICENSE=" LICENSE_1_0.txt"
10
11
11
12
DEV=" /Applications/Xcode.app/Contents/Developer"
12
13
SDKROOT=" $DEV /Platforms/MacOSX.platform/Developer/SDKs"
@@ -36,6 +37,12 @@ case "$DLNAME" in
36
37
esac
37
38
mv " $DIRNAME " " $SRCDIR "
38
39
40
+ if [ " $LICENSE " != " " ]; then
41
+ if [ -f " $SRCDIR /$LICENSE " ]; then
42
+ cp " $SRCDIR /$LICENSE " " License.txt"
43
+ fi
44
+ fi
45
+
39
46
if [ -d " $COMPILEDIR " ]; then rm -r " $COMPILEDIR " ; fi
40
47
if [ -d " $INSTALLDIR " ]; then rm -r " $INSTALLDIR " ; fi
41
48
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ case "$DLNAME" in
31
31
esac
32
32
mv " $DIRNAME " " $SRCDIR "
33
33
34
+ if [ " $LICENSE " != " " ]; then
35
+ if [ -f " $SRCDIR /$LICENSE " ]; then
36
+ cp " $SRCDIR /$LICENSE " " License.txt"
37
+ fi
38
+ fi
39
+
34
40
if [ -d " $COMPILEDIR " ]; then rm -r " $COMPILEDIR " ; fi
35
41
if [ -d " $INSTALLDIR " ]; then rm -r " $INSTALLDIR " ; fi
36
42
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"
20
20
export DYLIBNAME_libavformat=" libavformat.58.dylib"
21
21
export DYLIBNAME_libavutil=" libavutil.56.dylib"
22
22
export DYLIBNAME_swscale=" libswscale.5.dylib"
23
+ export LICENSE=" LICENSE.md"
23
24
24
25
../build-std.sh
25
26
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export PROJ="jpeg"
4
4
export VERSION=" 9c"
5
5
export URL=" http://www.ijg.org/files/jpegsrc.v9c.tar.gz"
6
6
export CONFIGOPTS=" --disable-static"
7
+ export LICENSE=" README"
7
8
8
9
../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"
6
6
export DIRNAME=" lib$PROJ -$VERSION "
7
7
export CONFIGOPTS=" --disable-shared"
8
8
export NOPACKAGING=" 1"
9
+ export LICENSE=" COPYING"
9
10
10
11
../build-std.sh
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export VERSION="1.6.36"
5
5
export URL=" https://download.sourceforge.net/libpng/libpng-1.6.36.tar.gz"
6
6
export DIRNAME=" lib$PROJ -$VERSION "
7
7
export CONFIGOPTS=" --disable-static"
8
+ export LICENSE=" LICENSE"
8
9
9
10
../build-std.sh
10
11
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export PROJ="speex"
4
4
export VERSION=" 1.2.0"
5
5
export URL=" http://downloads.xiph.org/releases/speex/$PROJ -$VERSION .tar.gz"
6
6
export CONFIGOPTS=" --disable-static"
7
+ export LICENSE=" COPYING"
7
8
8
9
../build-std.sh
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export PROJ="speexdsp"
4
4
export VERSION=" 1.2rc3"
5
5
export URL=" http://downloads.xiph.org/releases/speex/$PROJ -$VERSION .tar.gz"
6
6
export CONFIGOPTS=" --disable-static"
7
+ export LICENSE=" COPYING"
7
8
8
9
../build-std.sh
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ export DIRNAME="lib$PROJ-$VERSION"
7
7
OGGBASE=$( cd " ../ogg/installs/x86_64" && pwd)
8
8
export CONFIGOPTS=" --disable-shared --disable-oggtest --with-ogg-libraries=$OGGBASE /lib --with-ogg-includes=$OGGBASE /include"
9
9
export NOPACKAGING=" 1"
10
+ export LICENSE=" COPYING"
10
11
11
12
../build-std.sh
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ export DIRNAME="lib$PROJ-$VERSION"
7
7
export CONFIGOPTS=" --disable-examples --disable-unit-tests --target=x86_64-darwin13-gcc"
8
8
export PATH_EXTRA=" /usr/local/bin" # for nasm
9
9
export NOPACKAGING=" 1"
10
+ export LICENSE=" LICENSE"
10
11
11
12
../build-std.sh
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ export VERSION="0.13.69"
5
5
export URL=" https://github.com/gdraheim/zziplib/archive/v0.13.69.tar.gz"
6
6
export CONFIGOPTS=" --disable-static"
7
7
export DYLIBNAME_libzziplib=" libzzip.dylib"
8
+ export LICENSE=" COPYING.LIB"
8
9
9
10
../build-std.sh
You can’t perform that action at this time.
0 commit comments