forked from rbouqueau/zenbuild
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gpac/master
Merge from other forks
- Loading branch information
Showing
55 changed files
with
1,095 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# ZenBuild | ||
|
||
ZenBuild is a one-shot component-level build-system, aimed at easing the build of free software projets. | ||
ZenBuild is a one-shot component-level build-system, aimed at easing the build of free software projects. | ||
It also aims at making cross-building seamless. | ||
|
||
Syntax | ||
|
@@ -48,3 +48,9 @@ Authors | |
|
||
- Sebastien Alaiwan <[email protected]> | ||
- Romain Bouqueau <[email protected]> | ||
|
||
Contributors | ||
------------ | ||
|
||
- badr-badri ( https://github.com/badr-badri ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
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" | ||
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" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) 2014 - 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 dbus_build { | ||
host=$1 | ||
pushDir $WORK/src | ||
|
||
lazy_download "dbus.tar.gz" "http://dbus.freedesktop.org/releases/dbus/dbus-1.8.8.tar.gz" | ||
lazy_extract "dbus.tar.gz" | ||
|
||
mkdir -p dbus/build/$host | ||
pushDir dbus/build/$host | ||
CFLAGS+=" -I$PREFIX/$host/include " \ | ||
LDFLAGS+=" -L$PREFIX/$host/lib " \ | ||
../../configure \ | ||
--host=$host \ | ||
--enable-static \ | ||
--enable-abstract-sockets \ | ||
--disable-shared \ | ||
--prefix=$PREFIX/$host | ||
$MAKE | ||
$MAKE install | ||
popDir | ||
|
||
popDir | ||
} | ||
|
||
function dbus_get_deps { | ||
echo "expat" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/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" | ||
|
||
CFLAGS+=" -I$PREFIX/$host/include " \ | ||
LDFLAGS+=" -L$PREFIX/$host/lib " \ | ||
autoconf_build $host "expat" \ | ||
--enable-static \ | ||
--disable-shared | ||
|
||
popDir | ||
} | ||
|
||
function expat_get_deps { | ||
local a=0 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
} |
Oops, something went wrong.