42 lines
1 KiB
Makefile
42 lines
1 KiB
Makefile
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
PKG_NAME="splash"
|
|
PKG_VERSION="$(date +%Y%m%d)"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="apache2"
|
|
PKG_SITE=""
|
|
PKG_URL=""
|
|
PKG_DEPENDS_TARGET="toolchain imagemagick"
|
|
PKG_LONGDESC="Boot splash screens"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
make_init() {
|
|
:
|
|
}
|
|
|
|
make_target() {
|
|
:
|
|
}
|
|
|
|
mksplash() {
|
|
SPLASH="${ROOT}/distributions/JELOS/splash/splash.png"
|
|
if [ -n "${DISPLAY_RESOLUTION}" ]
|
|
then
|
|
convert ${SPLASH} -background none -resize ${DISPLAY_RESOLUTION} -gravity center -extent ${DISPLAY_RESOLUTION} ${1}/splash.png
|
|
convert ${SPLASH} -rotate 270 -background none -resize ${DISPLAY_RESOLUTION} -gravity center -extent ${DISPLAY_RESOLUTION} ${1}/splashl.png
|
|
else
|
|
cp ${SPLASH} ${INSTALL}/splash
|
|
convert ${SPLASH} -rotate 270 -background none ${INSTALL}/splash/splashl.png
|
|
fi
|
|
}
|
|
|
|
makeinstall_init() {
|
|
mkdir -p ${INSTALL}/splash
|
|
mksplash ${INSTALL}/splash
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/config/splash
|
|
mksplash ${INSTALL}/usr/config/splash
|
|
}
|