update mk_xfce.sh

This commit is contained in:
superconvert 2022-08-12 06:36:59 +08:00
parent 4fc2db26cb
commit 10d8d9af4a
2 changed files with 481 additions and 63 deletions

View File

@ -19,7 +19,7 @@ NC='\e[0m' # 没有颜色
core_num=`nproc`
# 是否开启 gcc
with_gcc=false
with_gcc=true
# 是否开启 xorg
with_xorg=false

View File

@ -1,14 +1,23 @@
#!/bin/sh
#set -e
# 预装工具
if [ -f "/usr/bin/apt" ]; then
apt install intltool -y
apt install cmake gperf bison flex libtool intltool python3.8-dev python3.8-dbg python3-pip python-docutils libatk1.0-dev libxrender-dev libxext-dev libpng-dev libthai-dev libxkbcommon-dev libpcre2-dev -y
# gtk+ 编译
apt install libegl1-mesa-dev libxrandr-dev libxi-dev libatk-bridge2.0-dev libxinerama-dev libvulkan-dev -y
fi
if [ -f "/usr/bin/yum" ]; then
echo "xxx"
fi
# undefined symbol: Py_InitModule4_64 需要安装高版本的 python3.8-dbg
pip3 install ninja
pip3 install meson
#-----------------------------------------------
#
# 导入公共变量
@ -16,7 +25,23 @@ fi
#-----------------------------------------------
. ./common.sh
GLIB_SRC_URL=https://download.gnome.org/sources/glib/2.72/glib-2.72.3.tar.xz
GETTEXT_SRC_URL=https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.tar.gz
LIBFFI_SRC_URL=https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
LIBMNT_SRC_URL=https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.36/util-linux-2.36.tar.xz
GLIB_SRC_URL=https://download.gnome.org/sources/glib/2.62/glib-2.62.0.tar.xz
PIXMAN_SRC_URL=https://www.cairographics.org/releases/pixman-0.40.0.tar.gz
CAIRO_SRC_URL=https://www.cairographics.org/releases/cairo-1.16.0.tar.xz
FREETYPE_SRC_URL=https://nchc.dl.sourceforge.net/project/freetype/freetype2/2.12.0/freetype-2.12.0.tar.xz
FONTCFG_SRC_URL=https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.96.tar.xz
HARFBUZZ_SRC_URL=https://github.com/harfbuzz/harfbuzz/releases/download/5.1.0/harfbuzz-5.1.0.tar.xz
FRIBIDI_SRC_URL=https://github.com/fribidi/fribidi/releases/download/v1.0.12/fribidi-1.0.12.tar.xz
PANGO_SRC_URL=https://download.gnome.org/sources/pango/1.48/pango-1.48.9.tar.xz
GDKPIXBUF_SRC_URL=https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/2.42.8/gdk-pixbuf-2.42.8.tar.gz
LIBEPOXY_SRC_URL=https://github.com/anholt/libepoxy/archive/refs/tags/1.5.10.tar.gz
GRAPHENE_SRC_URL=https://github.com/ebassi/graphene/archive/refs/tags/1.10.8.tar.gz
GOBJINTROSPE_SRC_URL=https://github.com/GNOME/gobject-introspection/archive/refs/tags/1.72.0.tar.gz
WAYLANDPROT_SRC_URL=https://gitlab.freedesktop.org/wayland/wayland-protocols/-/archive/1.25/wayland-protocols-1.25.tar.gz
GTKX_SRC_URL=https://download.gnome.org/sources/gtk%2B/3.94/gtk%2B-3.94.0.tar.xz
XFCE_SRC_URL=https://archive.xfce.org/xfce/4.16/fat_tarballs/xfce-4.16.tar.bz2
#----------------------------
@ -27,6 +52,91 @@ XFCE_SRC_URL=https://archive.xfce.org/xfce/4.16/fat_tarballs/xfce-4.16.tar.bz2
mkdir -pv source
cd source
LIBFFI_SRC_NAME=$(file_name ${LIBFFI_SRC_URL})
if [ ! -f ${LIBFFI_SRC_NAME} ]; then
wget -c -t 0 $LIBFFI_SRC_URL
fi
LIBMNT_SRC_NAME=$(file_name ${LIBMNT_SRC_URL})
if [ ! -f ${LIBMNT_SRC_NAME} ]; then
wget -c -t 0 $LIBMNT_SRC_URL
fi
GLIB_SRC_NAME=$(file_name ${GLIB_SRC_URL})
if [ ! -f ${GLIB_SRC_NAME} ]; then
wget -c -t 0 $GLIB_SRC_URL
fi
PIXMAN_SRC_NAME=$(file_name ${PIXMAN_SRC_URL})
if [ ! -f ${PIXMAN_SRC_NAME} ]; then
wget -c -t 0 $PIXMAN_SRC_URL
fi
FREETYPE_SRC_NAME=$(file_name ${FREETYPE_SRC_URL})
if [ ! -f ${FREETYPE_SRC_NAME} ]; then
wget -c -t 0 $FREETYPE_SRC_URL
fi
CAIRO_SRC_NAME=$(file_name ${CAIRO_SRC_URL})
if [ ! -f ${CAIRO_SRC_NAME} ]; then
wget -c -t 0 $CAIRO_SRC_URL
fi
FONTCFG_SRC_NAME=$(file_name ${FONTCFG_SRC_URL})
if [ ! -f ${FONTCFG_SRC_NAME} ]; then
wget -c -t 0 $FONTCFG_SRC_URL
fi
HARFBUZZ_SRC_NAME=$(file_name ${HARFBUZZ_SRC_URL})
if [ ! -f ${HARFBUZZ_SRC_NAME} ]; then
wget -c -t 0 $HARFBUZZ_SRC_URL
fi
FRIBIDI_SRC_NAME=$(file_name ${FRIBIDI_SRC_URL})
if [ ! -f ${FRIBIDI_SRC_NAME} ]; then
wget -c -t 0 $FRIBIDI_SRC_URL
fi
PANGO_SRC_NAME=$(file_name ${PANGO_SRC_URL})
if [ ! -f ${PANGO_SRC_NAME} ]; then
wget -c -t 0 $PANGO_SRC_URL
fi
GDKPIXBUF_SRC_NAME=$(file_name ${GDKPIXBUF_SRC_URL})
if [ ! -f ${GDKPIXBUF_SRC_NAME} ]; then
wget -c -t 0 $GDKPIXBUF_SRC_URL
fi
LIBEPOXY_SRC_NAME="libepoxy-"$(file_name ${LIBEPOXY_SRC_URL})
if [ ! -f ${LIBEPOXY_SRC_NAME} ]; then
wget -c -t 0 $LIBEPOXY_SRC_URL -O $LIBEPOXY_SRC_NAME
fi
GRAPHENE_SRC_NAME="graphene-"$(file_name ${GRAPHENE_SRC_URL})
if [ ! -f ${GRAPHENE_SRC_NAME} ]; then
wget -c -t 0 $GRAPHENE_SRC_URL -O $GRAPHENE_SRC_NAME
fi
GETTEXT_SRC_NAME=$(file_name ${GETTEXT_SRC_URL})
if [ ! -f ${GETTEXT_SRC_NAME} ]; then
wget -c -t 0 $GETTEXT_SRC_URL
fi
WAYLANDPROT_SRC_NAME=$(file_name ${WAYLANDPROT_SRC_URL})
if [ ! -f ${WAYLANDPROT_SRC_NAME} ]; then
wget -c -t 0 $WAYLANDPROT_SRC_URL
fi
GOBJINTROSPE_SRC_NAME="gobject-introspection-"$(file_name ${GOBJINTROSPE_SRC_URL})
if [ ! -f ${GOBJINTROSPE_SRC_NAME} ]; then
wget -c -t 0 $GOBJINTROSPE_SRC_URL -O $GOBJINTROSPE_SRC_NAME
fi
GTKX_SRC_NAME=$(echo $(file_name ${GTKX_SRC_URL}) | sed 's/%2B/+/')
if [ ! -f ${GTKX_SRC_NAME} ]; then
wget -c -t 0 $GTKX_SRC_URL
fi
XFCE_SRC_NAME=$(file_name ${XFCE_SRC_URL})
if [ ! -f ${XFCE_SRC_NAME} ]; then
wget -c -t 0 $XFCE_SRC_URL
@ -41,11 +151,94 @@ cd ..
#---------------------------
mkdir -pv ${build_dir}
LIBFFI_SRC_DIR=${build_dir}"/"$(file_dirname ${LIBFFI_SRC_NAME} .tar.gz)
if [ ! -d ${LIBFFI_SRC_DIR} ]; then
echo "unzip ${LIBFFI_SRC_NAME} source code" && tar xf source/${LIBFFI_SRC_NAME} -C ${build_dir}
fi
LIBMNT_SRC_DIR=${build_dir}"/"$(file_dirname ${LIBMNT_SRC_NAME} .tar.xz)
if [ ! -d ${LIBMNT_SRC_DIR} ]; then
echo "unzip ${LIBMNT_SRC_NAME} source code" && tar xf source/${LIBMNT_SRC_NAME} -C ${build_dir}
fi
GLIB_SRC_DIR=${build_dir}"/"$(file_dirname ${GLIB_SRC_NAME} .tar.xz)
if [ ! -d ${GLIB_SRC_DIR} ]; then
echo "unzip ${GLIB_SRC_NAME} source code" && tar xf source/${GLIB_SRC_NAME} -C ${build_dir}
fi
PIXMAN_SRC_DIR=${build_dir}"/"$(file_dirname ${PIXMAN_SRC_NAME} .tar.gz)
if [ ! -d ${PIXMAN_SRC_DIR} ]; then
echo "unzip ${PIXMAN_SRC_NAME} source code" && tar xf source/${PIXMAN_SRC_NAME} -C ${build_dir}
fi
FREETYPE_SRC_DIR=${build_dir}"/"$(file_dirname ${FREETYPE_SRC_NAME} .tar.xz)
if [ ! -d ${FREETYPE_SRC_DIR} ]; then
echo "unzip ${FREETYPE_SRC_NAME} source code" && tar xf source/${FREETYPE_SRC_NAME} -C ${build_dir}
fi
CAIRO_SRC_DIR=${build_dir}"/"$(file_dirname ${CAIRO_SRC_NAME} .tar.xz)
if [ ! -d ${CAIRO_SRC_DIR} ]; then
echo "unzip ${CAIRO_SRC_NAME} source code" && tar xf source/${CAIRO_SRC_NAME} -C ${build_dir}
fi
FONTCFG_SRC_DIR=${build_dir}"/"$(file_dirname ${FONTCFG_SRC_NAME} .tar.xz)
if [ ! -d ${FONTCFG_SRC_DIR} ]; then
echo "unzip ${FONTCFG_SRC_NAME} source code" && tar xf source/${FONTCFG_SRC_NAME} -C ${build_dir}
fi
HARFBUZZ_SRC_DIR=${build_dir}"/"$(file_dirname ${HARFBUZZ_SRC_NAME} .tar.xz)
if [ ! -d ${HARFBUZZ_SRC_DIR} ]; then
echo "unzip ${HARFBUZZ_SRC_NAME} source code" && tar xf source/${HARFBUZZ_SRC_NAME} -C ${build_dir}
fi
FRIBIDI_SRC_DIR=${build_dir}"/"$(file_dirname ${FRIBIDI_SRC_NAME} .tar.xz)
if [ ! -d ${FRIBIDI_SRC_DIR} ]; then
echo "unzip ${FRIBIDI_SRC_NAME} source code" && tar xf source/${FRIBIDI_SRC_NAME} -C ${build_dir}
fi
PANGO_SRC_DIR=${build_dir}"/"$(file_dirname ${PANGO_SRC_NAME} .tar.xz)
if [ ! -d ${PANGO_SRC_DIR} ]; then
echo "unzip ${PANGO_SRC_NAME} source code" && tar xf source/${PANGO_SRC_NAME} -C ${build_dir}
fi
GDKPIXBUF_SRC_DIR=${build_dir}"/"$(file_dirname ${GDKPIXBUF_SRC_NAME} .tar.gz)
if [ ! -d ${GDKPIXBUF_SRC_DIR} ]; then
echo "unzip ${GDKPIXBUF_SRC_NAME} source code" && tar xf source/${GDKPIXBUF_SRC_NAME} -C ${build_dir}
fi
LIBEPOXY_SRC_DIR=${build_dir}"/"$(file_dirname ${LIBEPOXY_SRC_NAME} .tar.gz)
if [ ! -d ${LIBEPOXY_SRC_DIR} ]; then
echo "unzip ${LIBEPOXY_SRC_NAME} source code" && tar xf source/${LIBEPOXY_SRC_NAME} -C ${build_dir}
fi
GRAPHENE_SRC_DIR=${build_dir}"/"$(file_dirname ${GRAPHENE_SRC_NAME} .tar.gz)
if [ ! -d ${GRAPHENE_SRC_DIR} ]; then
echo "unzip ${GRAPHENE_SRC_NAME} source code" && tar xf source/${GRAPHENE_SRC_NAME} -C ${build_dir}
fi
GETTEXT_SRC_DIR=${build_dir}"/"$(file_dirname ${GETTEXT_SRC_NAME} .tar.gz)
if [ ! -d ${GETTEXT_SRC_DIR} ]; then
echo "unzip ${GETTEXT_SRC_NAME} source code" && tar xf source/${GETTEXT_SRC_NAME} -C ${build_dir}
fi
WAYLANDPROT_SRC_DIR=${build_dir}"/"$(file_dirname ${WAYLANDPROT_SRC_NAME} .tar.gz)
if [ ! -d ${WAYLANDPROT_SRC_DIR} ]; then
echo "unzip ${WAYLANDPROT_SRC_NAME} source code" && tar xf source/${WAYLANDPROT_SRC_NAME} -C ${build_dir}
fi
GOBJINTROSPE_SRC_DIR=${build_dir}"/"$(file_dirname ${GOBJINTROSPE_SRC_NAME} .tar.gz)
if [ ! -d ${GOBJINTROSPE_SRC_DIR} ]; then
echo "unzip ${GOBJINTROSPE_SRC_NAME} source code" && tar xf source/${GOBJINTROSPE_SRC_NAME} -C ${build_dir}
fi
GTKX_SRC_DIR=${build_dir}"/"$(file_dirname ${GTKX_SRC_NAME} .tar.xz)
if [ ! -d ${GTKX_SRC_DIR} ]; then
echo "unzip ${GTKX_SRC_NAME} source code" && tar xf source/${GTKX_SRC_NAME} -C ${build_dir}
fi
XFCE_SRC_DIR=${build_dir}"/"$(file_dirname ${XFCE_SRC_NAME} .tar.bz2)
if [ ! -d ${XFCE_SRC_DIR} ]; then
echo "unzip ${XFCE_SRC_NAME} source code"
tar xf source/${XFCE_SRC_NAME} -C ${build_dir}
echo $XFCE_SRC_DIR
echo "unzip ${XFCE_SRC_NAME} source code" && tar xf source/${XFCE_SRC_NAME} -C ${build_dir}
mkdir -pv $XFCE_SRC_DIR
tar xf ${build_dir}/src/exo-4.16.0.tar.bz2 -C ${XFCE_SRC_DIR}
tar xf ${build_dir}/src/thunar-4.16.0.tar.bz2 -C ${XFCE_SRC_DIR}
@ -73,75 +266,300 @@ fi
#---------------------------------------------
cd ${build_dir}
# 编译
if [ ! -d "xfce_install" ]; then
mkdir -pv xfce_install && cd ${XFCE_SRC_DIR}
xfce_install=${build_dir}"/xfce_install"
echo $(pwd)
include_path=" \
-I${xfce_install}/usr/include \
-I${xfce_install}/usr/include/glib-2.0 \
-I${xfce_install}/usr/include/harfbuzz \
-I${xfce_install}/usr/include/libmount \
-I${xfce_install}/usr/local/include \
-I${xfce_install}/usr/local/include/cairo \
-I${xfce_install}/usr/local/include/pixman-1 \
-I${xfce_install}/usr/local/include/freetype2 \
-I${xfce_install}/usr/lib/x86_64-linux-gnu \
-I/usr/include/dbus-1.0 \
-I/usr/include/libpng16 \
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include \
-I/usr/include/python2.7"
cd exo-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
library_path=" \
-L${glibc_install}/lib64 \
-L${xfce_install}/usr/lib \
-L${xfce_install}/usr/local/lib \
-L${xfce_install}/usr/lib/x86_64-linux-gnu \
-Wl,-rpath=/usr/lib/x86_64-linux-gnu \
-Wl,-rpath=${xfce_install}/usr/local/lib"
cd thunar-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
CFGOPT="--with-sysroot=${xfce_install}"
pkgcfg1="${xfce_install}/usr/lib/pkgconfig"
pkgcfg2="${xfce_install}/usr/share/pkgconfig"
pkgcfg3="${xfce_install}/usr/local/lib/pkgconfig"
pkgcfg4="${xfce_install}/usr/lib/x86_64-linux-gnu/pkgconfig"
cd xfce4-dev-tools-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
export CFLAGS="${include_path}"
export CXXFLAGS="${include_path}"
export LDFLAGS="${library_path}"
cd xfce4-settings-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
export PKG_CONFIG_SYSROOT_DIR="${xfce_install}"
export PKG_CONFIG_TOP_BUILD_DIR="${xfce_install}"
export PKG_CONFIG_PATH="${pkgcfg1}:${pkgcfg2}:${pkgcfg3}:${pkgcfg4}"
cd garcon-0.8.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
# if [ ! -d "xfce_install" ]; then
# 编译 glib
mkdir -pv xfce_install
cd thunar-volman-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfce4-panel-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfconf-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd libxfce4ui-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd tumbler-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfce4-power-manager-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfdesktop-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd libxfce4util-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfce4-appfinder-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfce4-session-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
cd xfwm4-4.16.0 && make distclean && ./autogensh
./configure ${CFGOPT}
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${build_dir}"/xfce_install" && cd ..
# 编译 libffi
if [ ! -f .libffi ]; then
echo "${CYAN}build libffi begin${NC}" && cd ${LIBFFI_SRC_DIR} && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.libffi || exit
cd .. && echo "${GREEN}build libffi end${NC}"
fi
# 编译 util-linux ( libmount )
if [ ! -f .libmnt ]; then
echo "${CYAN}build libmount begin${NC}" && cd ${LIBMNT_SRC_DIR} && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.libmnt || exit
cd .. && echo "${GREEN}build libmount end${NC}"
fi
# 编译 glib
if [ ! -f .glib ]; then
echo "${CYAN}build glib begin${NC}" && cd ${GLIB_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.glib || exit
cd .. && echo "${GREEN}build glib end${NC}"
fi
# 编译 pixman
if [ ! -f .pixman ]; then
echo "${CYAN}build pixman begin${NC}" && cd ${PIXMAN_SRC_DIR} && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.pixman || exit
cd .. && echo "${GREEN}build pixman end${NC}"
fi
# 编译 freetype
if [ ! -f .freetype ]; then
echo "${CYAN}build freetype begin${NC}" && cd ${FREETYPE_SRC_DIR} && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.freetype || exit
cd .. && echo "${GREEN}build freetype end${NC}"
fi
# 编译 fontconfig
if [ ! -f .fontconfig ]; then
echo "${CYAN}build fontconfig begin${NC}" && cd ${FONTCFG_SRC_DIR} && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.fontconfig || exit
cd .. && echo "${GREEN}build fontconfig end${NC}"
fi
# 编译 cairo
if [ ! -f .cairo ]; then
echo "${CYAN}build cairo begin${NC}" && cd ${CAIRO_SRC_DIR}
./autogen.sh && ./configure ${CFGOPT} --with-x --enable-png=yes --enable-xlib=yes --enable-xlib-xrender=yes --enable-ft=yes --enable-fc=yes
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.cairo || exit
cd .. && echo "${GREEN}build cairo end${NC}"
fi
# 编译 harfbuzz
if [ ! -f .harfbuzz ]; then
echo "${CYAN}build harfbuzz begin${NC}" && cd ${HARFBUZZ_SRC_DIR}
rm -rf build && mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.harfbuzz || exit
cd .. && echo "${GREEN}build harfbuzz end${NC}"
fi
# 编译 fribidi
if [ ! -f .fribidi ]; then
echo "${CYAN}build fribidi begin${NC}" && cd ${FRIBIDI_SRC_DIR}
rm -rf build && mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.fribidi || exit
cd .. && echo "${GREEN}build fribidi end${NC}"
fi
# 编译 pango
if [ ! -f .pango ]; then
echo "${CYAN}build pango begin${NC}" && cd ${PANGO_SRC_DIR}
rm -rf build && mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.pango || exit
cd .. && echo "${GREEN}build pango end${NC}"
fi
# 编译 gdkpixbuf
if [ ! -f .gdkpixbuf ]; then
echo "${CYAN}build gdkpixbuf begin${NC}" && cd ${GDKPIXBUF_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.gdkpixbuf || exit
cd .. && echo "${GREEN}build gdkpixbuf end${NC}"
fi
# 编译 libepoxy
if [ ! -f .libepoxy ]; then
echo "${CYAN}build libepoxy begin${NC}" && cd ${LIBEPOXY_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.libepoxy || exit
cd .. && echo "${GREEN}build libepoxy end${NC}"
fi
# 编译 graphene
if [ ! -f .graphene ]; then
echo "${CYAN}build graphene begin${NC}" && cd ${GRAPHENE_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.graphene || exit
cd .. && echo "${GREEN}build graphene end${NC}"
fi
# 编译 wayland-protocols
if [ ! -f .wayland-protocols ]; then
echo "${CYAN}build wayland-protocols begin${NC}" && cd ${WAYLANDPROT_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.wayland-protocols || exit
cd .. && echo "${GREEN}build wayland-protocols end${NC}"
fi
# 编译 gobject-introspection
if [ ! -f .gobject-introspection ]; then
echo "${CYAN}build gobject-introspection begin${NC}" && cd ${GOBJINTROSPE_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.gobject-introspection || exit
cd .. && echo "${GREEN}build gobject-introspection end${NC}"
fi
# 编译 gettext 解决 libintl 的问题 gtk+
if [ ! -f .gettext ]; then
echo "${CYAN}build gettext begin${NC}" && cd ${GETTEXT_SRC_DIR}/gettext-runtime
./configure ${CFGOPT} --with-PACKAGE=gettext-runtime
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../../.gettext || exit
cd ../.. && echo "${GREEN}build gettext end${NC}"
fi
# 编译 gtk+
if [ ! -f .gtk+ ]; then
echo "${CYAN}build gtk+ begin${NC}" && cd ${GTKX_SRC_DIR}
mkdir -pv build
meson setup build --prefix=/usr --pkg-config-path=${PKG_CONFIG_PATH}
meson compile -C build
meson install -C build --destdir=${xfce_install} && echo "ok" > ../.gtk+ || exit
cd .. && echo "${GREEN}build gtk+ end${NC}"
fi
exit
# 编译 xfce
cd ${XFCE_SRC_DIR}
if [ ! -f .exo ]; then
echo "${CYAN}build exo begin${NC}" && cd exo-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.exo || exit
cd .. && echo "${GREEN}build exo end${NC}"
fi
if [ ! -f .thunar ]; then
echo "${CYAN}build thunar begin${NC}" && cd thunar-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.thunar || exit
cd .. && echo "${GREEN}build thunar end${NC}"
fi
if [ ! -f .xfce4-dev-tools ]; then
echo "${CYAN}build xfce4-dev-tools begin${NC}" && cd xfce4-dev-tools-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfce4-dev-tools || exit
cd .. && echo "${GREEN}build xfce4-dev-tools end${NC}"
fi
if [ ! -f .xfce4-settings ]; then
echo "${CYAN}build xfce4-settings begin${NC}" && cd xfce4-settings-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfce-settings || exit
cd .. && echo "${GREEN}build xfce4-settings end${NC}"
fi
if [ ! -f .garcon ]; then
echo "${CYAN}build garcon begin${NC}" && cd garcon-0.8.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.garcon || exit
cd .. && echo "${GREEN}build garcon end${NC}"
fi
if [ ! -f .thunar-volman ]; then
echo "${CYAN}build thunar-volman begin${NC}" && cd thunar-volman-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.thunar-volman || exit
cd .. && echo "${GREEN}build thunar-volman end${NC}"
fi
if [ ! -f .xfce4-panel ]; then
echo "${CYAN}build xfce4-panel begin${NC}" && cd xfce4-panel-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfce4-panel || exit
cd .. && echo "${GREEN}build xfce4-panel end${NC}"
fi
if [ ! -f .xfconf ]; then
echo "${CYAN}build xfconf begin${NC}" && cd xfconf-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfconf || exit
cd .. && echo "${GREEN}build xfconf end${NC}"
fi
if [ ! -f .libxfce4ui ]; then
echo "${CYAN}build libxfce4ui begin${NC}" && cd libxfce4ui-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.libxfce4ui || exit
cd .. && echo "${GREEN}build libxfce4ui end${NC}"
fi
if [ ! -f .tumbler ]; then
echo "${CYAN}build tumbler begin${NC}" && cd tumbler-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.tumbler || exit
cd .. && echo "${GREEN}build tumbler end${NC}"
fi
if [ ! -f .xfce4-power-manager ]; then
echo "${CYAN}build xfce4-power-manager begin${NC}" && cd xfce4-power-manager-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfce4-power-manager || exit
cd .. && echo "${GREEN}build xfce4-power-manager end${NC}"
fi
if [ ! -f .xfdesktop ]; then
echo "${CYAN}build xfdesktop begin${NC}" && cd xfdesktop-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfdesktop || exit
cd .. && echo "${GREEN}build xfdesktop end${NC}"
fi
if [ ! -f .xlibxfce4util ]; then
echo "${CYAN}build libxfce4util begin${NC}" && cd libxfce4util-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xlibxfce4util || exit
cd .. && echo "${GREEN}build libxfce4util end${NC}"
fi
if [ ! -f .xfce4-appfinder ]; then
echo "${CYAN}build xfce4-appfinder begin${NC}" && cd xfce4-appfinder-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfce4-appfinder || exit
cd .. && echo "${GREEN}build xfce4-appfinder end${NC}"
fi
if [ ! -f .xfce4-session ]; then
echo "${CYAN}build xfce4-session begin${NC}" && cd xfce4-session-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > .xfce4-session || exit
cd .. && echo "${GREEN}build xfce4-session end${NC}"
fi
if [ ! -f .xfwm4 ]; then
echo "${CYAN}build xfwm4 begin${NC}" && cd xfwm4-4.16.0 && ./configure ${CFGOPT}
make -j8 && make install DESTDIR=${xfce_install} && echo "ok" > ../.xfwm4 || exit
cd .. && echo "${GREEN}build xfwm4 end${NC}"
fi
# fi
cd ..