Skip to content

Commit

Permalink
Merge pull request #8 from badr-badri/master
Browse files Browse the repository at this point in the history
lib xcb and its dependencies
  • Loading branch information
rbouqueau committed Mar 21, 2015
2 parents c7fd2ce + 3ffb814 commit 1e8ee37
Show file tree
Hide file tree
Showing 53 changed files with 829 additions and 111 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ Authors

- Sebastien Alaiwan <[email protected]>
- Romain Bouqueau <[email protected]>

Contributors
------------

- badr-badri ( https://github.com/badr-badri )

12 changes: 12 additions & 0 deletions check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -euo pipefail

readonly JOBS=$(nproc)
export MAKE="make -j$JOBS"

rm -f "/tmp/test-zenbuild/flags/x86_64-linux-gnu/all.built"
./zenbuild.sh "/tmp/test-zenbuild" all x86_64-linux-gnu

rm -f "/tmp/test-zenbuild/flags/x86_64-w64-mingw32/all.built"
./zenbuild.sh "/tmp/test-zenbuild" all x86_64-w64-mingw32

75 changes: 75 additions & 0 deletions zen-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

# Copyright (C) 2015 - Sebastien Alaiwan
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

function all_build {
echo "Done"
}

function all_get_deps {
# echo "dbus"
echo "expat"
# echo "faad2" # error: "two or more data types in declaration specifiers"
# echo "ffmpeg"
echo "fontconfig"
echo "freetype2"
echo "fribidi"
echo "gmplib"
# echo "gnutls"
# #echo "gpac" requires ffmpeg -fPIC
# echo "jack"
echo "liba52"
# echo "libalsa"
echo "libass"
# echo "libav"
echo "libfdk-aac"
echo "libgcrypt"
echo "libgpg-error"
echo "libjpeg"
echo "libmad"
echo "libnettle"
echo "libogg"
echo "libopenjpeg"
echo "libpng"
# echo "libpthread"
# echo "librtmp" # link errors: "undefined reference to `__imp_htons'"
echo "libsamplerate"
echo "libsdl"
echo "libsndfile"
echo "libtheora"
echo "libvorbis"
echo "libvpx"
# echo "libxau"
# echo "libxcb"
# echo "libxvidcore"
echo "opencore-amr"
# echo "openh264"
# echo "openhevc"
echo "opus"
echo "portaudio"
# #echo "pthreads" can only be built for windows
echo "sodium"
echo "toxcore"
echo "tre"
# #echo "utox" depends on xrender and other missing stuff, causing pkg-config to return nothing
# #echo "vlc" requires ffmpeg -fPIC
echo "x264"
echo "x265"
# echo "xcb-proto"
# echo "xcbproto"
# echo "xcbpthreadstubs"
# echo "xproto"
echo "zlib"
}

44 changes: 44 additions & 0 deletions zen-expat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

# Copyright (C) 2015 - Sebastien Alaiwan
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


function expat_build {
local host=$1
pushDir $WORK/src

lazy_download "expat.tar.xz" "http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download"
lazy_extract "expat.tar.xz"
mkgit "expat"

mkdir -p expat/build/$host
pushDir expat/build/$host
CFLAGS+=" -I$PREFIX/$host/include " \
LDFLAGS+=" -L$PREFIX/$host/lib " \
../../configure \
--host=$host \
--prefix=$PREFIX/$host
$MAKE
$MAKE install

popDir
popDir
}

function expat_get_deps {
local a=0
}

2 changes: 1 addition & 1 deletion zen-faad2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

function build_faad2 {
function faad2_build {
host=$1
pushDir $WORK/src

Expand Down
4 changes: 2 additions & 2 deletions zen-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

function build_ffmpeg {
function ffmpeg_build {
host=$1
pushDir $WORK/src

Expand Down Expand Up @@ -66,9 +66,9 @@ function build_ffmpeg {
}

function ffmpeg_get_deps {
echo libass
echo fontconfig
echo librtmp
echo libass
echo libfdk-aac
echo x264
echo x265
Expand Down
20 changes: 16 additions & 4 deletions zen-fontconfig.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,24 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


function build_fontconfig {
function fontconfig_build {
host=$1
pushDir $WORK/src
pushDir $WORK/src

lazy_git_clone "git://anongit.freedesktop.org/fontconfig" fontconfig "tags/2.11.1"
lazy_download "fontconfig.tar.bz2" "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.92.tar.bz2"
lazy_extract "fontconfig.tar.bz2"
mkgit "fontconfig"

autoconf_build $host "fontconfig"
LDFLAGS+=" -L$WORK/release/$host/lib" \
autoconf_build $host "fontconfig" \
--enable-static \
--disable-shared
popDir
}

function fontconfig_get_deps {
echo "expat"
echo "freetype2"
echo "libpng"
}

2 changes: 1 addition & 1 deletion zen-freetype2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

function build_freetype2 {
function freetype2_build {
host=$1
pushDir $WORK/src

Expand Down
68 changes: 34 additions & 34 deletions zen-fribidi.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#!/bin/bash

# Copyright (C) 2014 - Romain Bouqueau
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


function build_fribidi {
host=$1
pushDir $WORK/src

lazy_download "fribidi.tar.xz" "http://fribidi.org/download/fribidi-0.19.6.tar.bz2"
lazy_extract "fribidi.tar.xz"

mkgit "fribidi"

autoconf_build $host "fribidi" --disable-shared
popDir
}

function fribidi_get_deps {
local a=0;
}
#!/bin/bash

# Copyright (C) 2014 - Romain Bouqueau
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


function fribidi_build {
host=$1
pushDir $WORK/src

lazy_download "fribidi.tar.xz" "http://fribidi.org/download/fribidi-0.19.6.tar.bz2"
lazy_extract "fribidi.tar.xz"

mkgit "fribidi"

autoconf_build $host "fribidi" --disable-shared
popDir
}

function fribidi_get_deps {
local a=0
}
35 changes: 35 additions & 0 deletions zen-gmplib.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

# Copyright (C) 2014 - Badr BADRI
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

function gmplib_get_deps {
local a=0
}

function gmplib_build {

local host=$1
pushDir $WORK/src

lazy_download "gmplib.tar.lz" "https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz"

lazy_extract "gmplib.tar.lz"

autoconf_build $host "gmplib.tar.lz"

popDir

}
39 changes: 39 additions & 0 deletions zen-gnutls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# Copyright (C) 2014 - Badr BADRI
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


function gnutls_get_deps {
echo "gmplib"
echo "libnettle"
}

function gnutls_build {

local host=$1
pushDir $WORK/src

lazy_download "gnutls.tar.lz" "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.12.tar.lz"

lazy_extract "gnutls.tar.lz"

autoconf_build $host "gnutls.tar.lz"

popDir

}


11 changes: 7 additions & 4 deletions zen-gpac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

function build_gpac {
function gpac_build {
host=$1
pushDir $WORK/src

svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac -r 5244
svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac -r 5600
pushDir gpac
svn revert -R .
popDir
Expand All @@ -39,18 +39,21 @@ function build_gpac {
--extra-cflags="-I$PREFIX/$host/include -w -fPIC" \
--extra-ldflags="-L$PREFIX/$host/lib" \
--disable-jack \
--enable-amr \
--cross-prefix="$crossPrefix"

$MAKE
$MAKE install-lib
$MAKE install
popDir

popDir
}

function gpac_get_deps {
echo opencore-amr
echo zlib
#echo freetype2
echo libsdl
echo freetype2
echo libvorbis
echo libogg
}
Expand Down
Loading

0 comments on commit 1e8ee37

Please sign in to comment.