From f7e778801f4982149bea966010040af37b97e998 Mon Sep 17 00:00:00 2001 From: Tibor Nagy <xnagytibor@gmail.com> Date: Fri, 23 Feb 2018 19:40:03 +0100 Subject: [PATCH] Add libpng recipe --- recipes/libpng/recipe.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 recipes/libpng/recipe.sh diff --git a/recipes/libpng/recipe.sh b/recipes/libpng/recipe.sh new file mode 100644 index 000000000..2c626c05d --- /dev/null +++ b/recipes/libpng/recipe.sh @@ -0,0 +1,40 @@ +VERSION=1.6.34 +TAR=https://download.sourceforge.net/libpng/libpng-$VERSION.tar.xz +BUILD_DEPENDS=(zlib) + +function recipe_version { + echo "$VERSION" + skip=1 +} + +function recipe_update { + echo "skipping update" + skip=1 +} + +function recipe_build { + sysroot="${PWD}/../sysroot" + export LDFLAGS="-L$sysroot/lib" + export CPPFLAGS="-I$sysroot/include" + + wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub + ./configure --host=${HOST} --prefix='/' + make + skip=1 +} + +function recipe_test { + echo "skipping test" + skip=1 +} + +function recipe_clean { + make clean + skip=1 +} + +function recipe_stage { + dest="$(realpath $1)" + make DESTDIR="$dest" install + skip=1 +} -- GitLab