Skip to content
Snippets Groups Projects
Verified Commit d3225d91 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Update glib and harfbuzz to use new recipe format

parent fd40e845
No related branches found
No related tags found
No related merge requests found
VERSION=2.59.0
TAR=https://download.gnome.org/sources/glib/${VERSION%.*}/glib-$VERSION.tar.xz
BUILD_DEPENDS=(gettext libffi libiconv pcre zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib --static"
glib_cv_stack_grows=no glib_cv_uscore=no ./autogen.sh \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-shared \
--enable-static
sed -i 's/#define HAVE_SYS_RESOURCE_H 1/#undef HAVE_SYS_RESOURCE_H/' config.h
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}
[source]
tar = "https://download.gnome.org/sources/glib/2.59/glib-2.59.0.tar.xz"
patches = [
"redox.patch"
]
[build]
template = "custom"
dependencies = [
"gettext",
"libffi",
"libiconv",
"pcre",
"zlib",
]
script = """
"${COOKBOOK_SOURCE}/autogen.sh" \
"${COOKBOOK_CONFIGURE_FLAGS[@]}" \
glib_cv_stack_grows=no \
glib_cv_uscore=no
sed -i 's/#define HAVE_SYS_RESOURCE_H 1/#undef HAVE_SYS_RESOURCE_H/' config.h
COOKBOOK_CONFIGURE="true"
cookbook_configure
"""
VERSION=2.3.0
TAR=https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$VERSION.tar.bz2
BUILD_DEPENDS=(freetype gettext glib libiconv libpng pcre zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib --static"
#wget -O build-aux/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
FREETYPE_CFLAGS="$("${PKG_CONFIG}" --cflags freetype2)"
FREETYPE_LIBS="$("${PKG_CONFIG}" --libs freetype2)"
./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-shared \
--enable-static \
--with-glib=yes \
--with-freetype=yes \
--with-icu=no
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}
[source]
tar = "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.3.0.tar.bz2"
[build]
template = "custom"
dependencies = [
"freetype",
"gettext",
"glib",
"libiconv",
"libpng",
"pcre",
"zlib"
]
script = """
COOKBOOK_CONFIGURE_FLAGS+=(
--with-glib=yes
--with-freetype=yes
--with-icu=no
)
cookbook_configure
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment