Commit daa763a0 authored by Anton V. Boyarshinov's avatar Anton V. Boyarshinov

arm buildability

parent c5fc5ff8
...@@ -15,4 +15,4 @@ all: ...@@ -15,4 +15,4 @@ all:
mv kde3-settings/apps/kdisplay/color-schemes/scheme.kcsrc "kde3-settings/apps/kdisplay/color-schemes/@BRAND_FNAME@ @NAME@.kcsrc" mv kde3-settings/apps/kdisplay/color-schemes/scheme.kcsrc "kde3-settings/apps/kdisplay/color-schemes/@BRAND_FNAME@ @NAME@.kcsrc"
include components.mk include components.mk
install: browser-qt ahttpd boot indexhtml install: browser-qt ahttpd boot-images boot-splash @X86@ indexhtml
...@@ -8,10 +8,12 @@ ...@@ -8,10 +8,12 @@
Name: branding-%brand-%theme Name: branding-%brand-%theme
Version: 6.0.0 Version: 6.0.0
Release: alt4 Release: alt4
BuildArch: noarch
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-droid BuildRequires: cpio fonts-ttf-dejavu fonts-ttf-droid
BuildRequires: design-bootloader-source >= 5.0-alt2 BuildRequires: design-bootloader-source >= 5.0-alt2
%ifnarch %arm
BuildRequires: cpio gfxboot >= 4
%endif
BuildRequires(pre): libqt4-core BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel BuildRequires: libalternatives-devel
...@@ -34,6 +36,7 @@ License: GPL ...@@ -34,6 +36,7 @@ License: GPL
%description %description
Distro-specific packages with design and texts Distro-specific packages with design and texts
%package bootloader %package bootloader
Group: System/Configuration/Boot and Init Group: System/Configuration/Boot and Init
Summary: Graphical boot logo for grub2, lilo and syslinux Summary: Graphical boot logo for grub2, lilo and syslinux
...@@ -52,6 +55,7 @@ Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "brandi ...@@ -52,6 +55,7 @@ Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "brandi
Here you find the graphical boot logo. Suitable for both lilo and syslinux. Here you find the graphical boot logo. Suitable for both lilo and syslinux.
%package bootsplash %package bootsplash
BuildArch: noarch
Summary: Theme for splash animations during bootup Summary: Theme for splash animations during bootup
License: Distributable License: Distributable
Group: System/Configuration/Boot and Init Group: System/Configuration/Boot and Init
...@@ -101,7 +105,7 @@ This package contains some graphics for ALT design. ...@@ -101,7 +105,7 @@ This package contains some graphics for ALT design.
%package release %package release
Summary: %distribution %Theme release file Summary: %distribution %Theme release file
Copyright: GPL License: GPL
Group: System/Configuration/Other Group: System/Configuration/Other
Provides: %(for n in %provide_list; do echo -n "$n-release = %version-%release "; done) altlinux-release-%theme branding-alt-%theme-release Provides: %(for n in %provide_list; do echo -n "$n-release = %version-%release "; done) altlinux-release-%theme branding-alt-%theme-release
Obsoletes: %obsolete_list branding-alt-%theme-release Obsoletes: %obsolete_list branding-alt-%theme-release
...@@ -209,10 +213,15 @@ ALT Linux index.html welcome page. ...@@ -209,10 +213,15 @@ ALT Linux index.html welcome page.
%prep %prep
%setup -n branding %setup -n branding
%ifnarch %arm
%define x86 boot
%else
%define x86 %nil
%endif
%build %build
autoconf autoconf
THEME=%theme NAME='%Theme' BRAND_FNAME='%Brand' BRAND='%brand' STATUS_EN=%status_en STATUS=%status VERSION=%version ./configure THEME=%theme NAME='%Theme' BRAND_FNAME='%Brand' BRAND='%brand' STATUS_EN=%status_en STATUS=%status VERSION=%version X86='%x86' ./configure
make make
%install %install
...@@ -326,10 +335,12 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high ...@@ -326,10 +335,12 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
%post indexhtml %post indexhtml
%_sbindir/indexhtml-update %_sbindir/indexhtml-update
%ifnarch %arm
%files bootloader %files bootloader
%_datadir/gfxboot/%theme %_datadir/gfxboot/%theme
/boot/splash/%theme /boot/splash/%theme
/boot/grub/themes/%theme /boot/grub/themes/%theme
%endif
#bootsplash #bootsplash
%post bootsplash %post bootsplash
......
...@@ -23,7 +23,7 @@ ahttpd: ...@@ -23,7 +23,7 @@ ahttpd:
# bootloader and bootsplash # bootloader and bootsplash
boot: boot-images:
cp -a /usr/src/design-bootloader-source ./ cp -a /usr/src/design-bootloader-source ./
cp -a components/bootloader/config design-bootloader-source/ cp -a components/bootloader/config design-bootloader-source/
cp -a components/bootloader/gfxboot.cfg design-bootloader-source/data-install/ cp -a components/bootloader/gfxboot.cfg design-bootloader-source/data-install/
...@@ -34,12 +34,14 @@ boot: ...@@ -34,12 +34,14 @@ boot:
cp -al boot-800x600.jpg design-bootloader-source/data-boot/back.jpg cp -al boot-800x600.jpg design-bootloader-source/data-boot/back.jpg
convert images/boot.png -resize "800x600!" -fill '#c62530' -font /usr/share/fonts/ttf/dejavu/DejaVuSansCondensed-Bold.ttf -style Normal -weight Normal -pointsize 20 -gravity northeast -draw 'text 25,25 "$(STATUS)"' design-bootloader-source/data-install/back.jpg convert images/boot.png -resize "800x600!" -fill '#c62530' -font /usr/share/fonts/ttf/dejavu/DejaVuSansCondensed-Bold.ttf -style Normal -weight Normal -pointsize 20 -gravity northeast -draw 'text 25,25 "$(STATUS)"' design-bootloader-source/data-install/back.jpg
#bootsplash #bootsplash
boot-splash: boot-images
mkdir -p $(datadir)/plymouth/themes/$(THEME) mkdir -p $(datadir)/plymouth/themes/$(THEME)
cp -al boot-800x600.jpg $(datadir)/plymouth/themes/$(THEME)/grub.jpg cp -al boot-800x600.jpg $(datadir)/plymouth/themes/$(THEME)/grub.jpg
cp -al images/background*x*.png $(datadir)/plymouth/themes/$(THEME)/ cp -al images/background*x*.png $(datadir)/plymouth/themes/$(THEME)/
cp -a components/bootsplash/* $(datadir)/plymouth/themes/$(THEME) cp -a components/bootsplash/* $(datadir)/plymouth/themes/$(THEME)
mv $(datadir)/plymouth/themes/$(THEME)/theme.plymouth $(datadir)/plymouth/themes/$(THEME)/$(THEME).plymouth mv $(datadir)/plymouth/themes/$(THEME)/theme.plymouth $(datadir)/plymouth/themes/$(THEME)/$(THEME).plymouth
#bootloader #bootloader
boot: boot-images
DEFAULT_LANG='--lang-to-subst--' PATH=$(PATH):/usr/sbin make -C design-bootloader-source DEFAULT_LANG='--lang-to-subst--' PATH=$(PATH):/usr/sbin make -C design-bootloader-source
install -d -m 755 $(sysconfdir)/../boot/splash/$(THEME) install -d -m 755 $(sysconfdir)/../boot/splash/$(THEME)
install -d -m 755 $(datadir)/gfxboot/$(THEME) install -d -m 755 $(datadir)/gfxboot/$(THEME)
......
...@@ -37,6 +37,7 @@ AC_SUBST(MIDDLE_COLOR_DEC) ...@@ -37,6 +37,7 @@ AC_SUBST(MIDDLE_COLOR_DEC)
AC_SUBST(DARK_COLOR_DEC) AC_SUBST(DARK_COLOR_DEC)
AC_SUBST(TITLE_COLOR) AC_SUBST(TITLE_COLOR)
AC_SUBST(INACTIVE_COLOR) AC_SUBST(INACTIVE_COLOR)
AC_SUBST(X86)
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment