Open Media Library Platform (Darwin)
This commit is contained in:
commit
5be0d7d916
16 changed files with 273 additions and 0 deletions
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
src/*/
|
||||||
|
dist
|
||||||
|
src/*.tar.*
|
||||||
|
*.swp
|
||||||
|
share
|
||||||
|
man
|
||||||
|
lib
|
||||||
|
include
|
||||||
|
bin
|
15
build/PIL/build.sh
Executable file
15
build/PIL/build.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=Imaging-1.1.7
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
export PATH=$prefix/bin:$PATH
|
||||||
|
python setup.py install
|
||||||
|
install_name_tool -change "$prefix/lib/libjpeg.62.dylib" "@rpath/libjpeg.62.dylib" $prefix/lib/python2.7/site-packages/PIL/_imaging.so
|
||||||
|
install_name_tool -change "$prefix/lib/libz.1.dylib" "@rpath/libz.1.dylib" $prefix/lib/python2.7/site-packages/PIL/_imaging.so
|
||||||
|
install_name_tool -change "$prefix/lib/libfreetype.6.dylib" "@rpath/libfreetype.6.dylib" $prefix/lib/python2.7/site-packages/PIL/_imagingft.so
|
||||||
|
|
14
build/Python/build.sh
Executable file
14
build/Python/build.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=Python-2.7.6
|
||||||
|
rm -rf $name
|
||||||
|
mkdir $name
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
|
||||||
|
$src/$name/configure \
|
||||||
|
--prefix=$prefix
|
||||||
|
make && make install
|
||||||
|
install_name_tool -add_rpath @loader_path/../lib $prefix/bin/python
|
5
build/PythonPackages/build.sh
Executable file
5
build/PythonPackages/build.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
$prefix/bin/pip install -r requirements.txt
|
8
build/PythonPackages/requirements.txt
Normal file
8
build/PythonPackages/requirements.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
lxml
|
||||||
|
Twisted
|
||||||
|
simplejson
|
||||||
|
Flask==0.10.1
|
||||||
|
SQLAlchemy==0.9.4
|
||||||
|
Flask-SQLAlchemy==1.0
|
||||||
|
Flask-Migrate==1.2.0
|
||||||
|
ed25519
|
14
build/boost/build.sh
Executable file
14
build/boost/build.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=boost_1_53_0
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
export PATH=$prefix/bin:$PATH
|
||||||
|
./bootstrap.sh \
|
||||||
|
--prefix=$prefix \
|
||||||
|
--with-python=$prefix/bin/python
|
||||||
|
./b2 install
|
13
build/build.sh
Executable file
13
build/build.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd `dirname $0`
|
||||||
|
./zlib/build.sh
|
||||||
|
./jpeg/build.sh
|
||||||
|
./libpng/build.sh
|
||||||
|
./freetype/build.sh
|
||||||
|
./Python/build.sh
|
||||||
|
./pip/build.sh
|
||||||
|
./PIL/build.sh
|
||||||
|
./PythonPackages/build.sh
|
||||||
|
|
||||||
|
#./boost/build.sh
|
||||||
|
#./libtorrent/build.sh
|
16
build/env
Normal file
16
build/env
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
build=`pwd`
|
||||||
|
cd ../..
|
||||||
|
base=`pwd`
|
||||||
|
dist=$base/dist
|
||||||
|
src=$base/src
|
||||||
|
prefix=$base
|
||||||
|
|
||||||
|
export PATH=$base/osx/build/bin:$PATH
|
||||||
|
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=0
|
||||||
|
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=0
|
||||||
|
export PKG_CONFIG_LIBDIR=$prefix/lib/pkgconfig
|
||||||
|
export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
|
||||||
|
#export CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5"
|
||||||
|
#export LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.5"
|
||||||
|
|
||||||
|
cd $build
|
18
build/freetype/build.sh
Executable file
18
build/freetype/build.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=freetype-2.5.0
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
export PATH=$prefix/bin:$PATH
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--without-zlib \
|
||||||
|
--prefix=$prefix
|
||||||
|
make && make install
|
||||||
|
install_name_tool -change "$prefix/lib/libz.1.dylib" "@rpath/libz.1.dylib" $prefix/lib/libfreetype.6.dylib
|
||||||
|
install_name_tool -change "$prefix/lib/libpng12.0.dylib" "@rpath/libpng12.0.dylib" $prefix/lib/libfreetype.6.dylib
|
||||||
|
|
14
build/jpeg/build.sh
Executable file
14
build/jpeg/build.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=jpeg-6b
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
mkdir -p $prefix/man/man1/
|
||||||
|
./configure \
|
||||||
|
--enable-shared \
|
||||||
|
--prefix=$prefix
|
||||||
|
make LIBTOOL=glibtool && make install LIBTOOL=glibtool
|
12
build/libpng/build.sh
Executable file
12
build/libpng/build.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=libpng-1.2.51
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=$prefix
|
||||||
|
make && make install
|
25
build/libtorrent/build.sh
Executable file
25
build/libtorrent/build.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=libtorrent-rasterbar-0.16.12
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
export PATH=$prefix/bin:$PATH
|
||||||
|
|
||||||
|
sed "s/if platform.system() != 'Darwin': //g" bindings/python/setup.py.in > setup.py.in
|
||||||
|
mv setup.py.in bindings/python/setup.py.in
|
||||||
|
|
||||||
|
#breaks boost 1.54
|
||||||
|
# --disable-encryption \
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--enable-python-binding \
|
||||||
|
--with-boost=$prefix \
|
||||||
|
--prefix=$prefix
|
||||||
|
make && make install
|
||||||
|
install_name_tool -change "$prefix/lib/libtorrent-rasterbar.7.dylib" "@rpath/libtorrent-rasterbar.7.dylib" $prefix/lib/python2.7/site-packages/libtorrent.so
|
||||||
|
install_name_tool -change "libboost_system.dylib" "@rpath/libboost_system.dylib" $prefix/lib/python2.7/site-packages/libtorrent.so
|
||||||
|
install_name_tool -change libboost_system.dylib @rpath/libboost_system.dylib $prefix/lib/libtorrent-rasterbar.7.dylib
|
6
build/pip/build.sh
Executable file
6
build/pip/build.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
$prefix/bin/python $src/ez_setup.py
|
||||||
|
$prefix/bin/easy_install pip
|
12
build/zlib/build.sh
Executable file
12
build/zlib/build.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
. ../env
|
||||||
|
|
||||||
|
name=zlib-1.2.8
|
||||||
|
rm -rf $name
|
||||||
|
tar xzf $src/$name.tar.gz
|
||||||
|
cd $name
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=$prefix
|
||||||
|
make && make install
|
42
make.sh
Executable file
42
make.sh
Executable file
|
@ -0,0 +1,42 @@
|
||||||
|
cd `dirname $0`
|
||||||
|
|
||||||
|
#./src/pull.sh
|
||||||
|
#./build/build.sh
|
||||||
|
|
||||||
|
rm -rf dist
|
||||||
|
mkdir -p dist/bin dist/lib dist/include
|
||||||
|
|
||||||
|
for bin in \
|
||||||
|
python \
|
||||||
|
python2 \
|
||||||
|
python2.7 \
|
||||||
|
; do
|
||||||
|
cp -a bin/$bin dist/bin/$bin
|
||||||
|
done
|
||||||
|
|
||||||
|
for bin in \
|
||||||
|
easy_install \
|
||||||
|
easy_install-2.7 \
|
||||||
|
pip \
|
||||||
|
pip2.7 \
|
||||||
|
; do
|
||||||
|
sed "s/#\!.*python.*/#\!\/usr\/bin\/env python/g" bin/$bin > dist/bin/$bin
|
||||||
|
done
|
||||||
|
|
||||||
|
cp -a lib/python2.7 dist/lib/python2.7
|
||||||
|
cp -a include/python2.7 dist/include/python2.7
|
||||||
|
rm -r dist/lib/python2.7/test
|
||||||
|
|
||||||
|
# libboost_system.dylib \
|
||||||
|
# libtorrent-rasterbar.7.dylib \
|
||||||
|
# libtorrent-rasterbar.dylib \
|
||||||
|
|
||||||
|
for lib in \
|
||||||
|
libfreetype.6.dylib \
|
||||||
|
libpng12.0.dylib \
|
||||||
|
libjpeg.62.dylib \
|
||||||
|
libz.1.dylib \
|
||||||
|
libz.1.2.8.dylib \
|
||||||
|
; do
|
||||||
|
cp -a lib/$lib dist/lib/$lib
|
||||||
|
done
|
50
src/pull.sh
Executable file
50
src/pull.sh
Executable file
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cd `dirname $0`
|
||||||
|
base=`pwd`
|
||||||
|
|
||||||
|
git_repository() {
|
||||||
|
name=$1
|
||||||
|
url=$2
|
||||||
|
echo get $name from $url
|
||||||
|
test -e $name || git clone $url $name
|
||||||
|
cd $name
|
||||||
|
git pull
|
||||||
|
cd $base
|
||||||
|
}
|
||||||
|
svn_repository() {
|
||||||
|
name=$1
|
||||||
|
url=$2
|
||||||
|
echo get $name from $url
|
||||||
|
test -e $name || svn co $url $name
|
||||||
|
cd $name
|
||||||
|
svn update
|
||||||
|
cd $base
|
||||||
|
}
|
||||||
|
tarball() {
|
||||||
|
name=$1
|
||||||
|
url=$2
|
||||||
|
echo get $name from $url
|
||||||
|
test -e $name || ( curl $url > $name.tar.gz && tar xzf $name.tar.gz && rm $name.tar.gz )
|
||||||
|
}
|
||||||
|
|
||||||
|
file() {
|
||||||
|
name=$1
|
||||||
|
url=$2
|
||||||
|
echo get $name from $url
|
||||||
|
test -e $name || (curl -L $url > $name)
|
||||||
|
}
|
||||||
|
|
||||||
|
tarball Python-2.7.6 http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz
|
||||||
|
file ez_setup.py https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
|
||||||
|
|
||||||
|
file zlib-1.2.8.tar.gz http://zlib.net/zlib-1.2.8.tar.gz
|
||||||
|
file jpeg-6b.tar.gz http://optimate.dl.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsrc.v6b.tar.gz
|
||||||
|
file libpng-1.2.51.tar.gz http://dfn.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.51.tar.gz
|
||||||
|
file freetype-2.5.0.tar.gz http://download.savannah.gnu.org/releases-redirect/freetype/freetype-2.5.0.tar.gz
|
||||||
|
file Imaging-1.1.7.tar.gz http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
|
||||||
|
|
||||||
|
#file boost_1_53_0.tar.gz http://optimate.dl.sourceforge.net/project/boost/boost/1.53.0/boost_1_53_0.tar.gz
|
||||||
|
|
||||||
|
#git_repository libtorrent https://code.google.com/p/libtorrent/
|
||||||
|
#file libtorrent-rasterbar-0.16.12.tar.gz https://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.12.tar.gz
|
||||||
|
|
Loading…
Reference in a new issue