2009-06-23 11:30:07 +04:00
# browser-qt
2009-06-23 13:22:46 +04:00
components/browser-qt/design/bg.png : images /installer .png
2013-09-09 23:33:38 +04:00
convert $< -fill '#c62530' -font /usr/share/fonts/ttf/dejavu/DejaVuSansCondensed-Bold.ttf -style Normal -weight Normal -pointsize 20 -gravity northeast -draw 'text 25,25 "$(STATUS)"' $@
2009-06-23 11:30:07 +04:00
2009-06-23 13:22:46 +04:00
browser-qt : components /browser -qt /design /bg .png
2009-06-23 11:30:07 +04:00
install -d $( datadir) /alterator-browser-qt/design
2013-09-09 23:33:38 +04:00
rcc-qt4 -binary components/browser-qt/theme.qrc -o $( datadir) /alterator-browser-qt/design/$( THEME) .rcc
#cp -f components/browser-qt/design/design-live.qss components/browser-qt/design/design.qss
rcc-qt4 -binary components/browser-qt/theme.qrc -o $( datadir) /alterator-browser-qt/design/$( THEME) -live.rcc
2009-06-23 11:30:07 +04:00
install -d $( sysconfdir) /alternatives/packages.d
printf '/etc/alterator/design-browser-qt\t/usr/share/alterator-browser-qt/design/$(THEME).rcc\t50\n' >$( sysconfdir) /alternatives/packages.d/$( THEME) .rcc
# ahttpd
ahttpd :
2009-09-29 15:58:37 +04:00
for i in components/ahttpd/images/*.svg; do \
image = $$ { i%.svg} ; \
convert -background none $$ image.svg $$ image.png ; \
done
2009-06-23 11:30:07 +04:00
install -d $( datadir) /alterator/design/styles
2009-06-23 13:22:46 +04:00
cp -a components/ahttpd/images $( datadir) /alterator/design
cp -a components/ahttpd/styles/*.css $( datadir) /alterator/design/styles
2009-06-23 17:26:22 +04:00
2009-09-29 15:58:37 +04:00
2009-06-23 17:26:22 +04:00
# bootloader and bootsplash
2011-04-26 10:12:11 +04:00
boot-images :
2009-06-23 17:26:22 +04:00
cp -a /usr/src/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-boot/
for size in 1024x768 800x600 640x480; do \
2010-09-21 10:43:54 +04:00
convert images/boot.jpg -quality 97 -resize " $$ size! " -fill '#c62530' -font /usr/share/fonts/ttf/dejavu/DejaVuSansCondensed-Bold.ttf -style Normal -weight Normal -pointsize 20 -gravity northeast -draw 'text 25,25 "$(STATUS)"' boot-$$ size.jpg ; \
2009-06-23 17:26:22 +04:00
done
cp -al boot-800x600.jpg design-bootloader-source/data-boot/back.jpg
2010-09-21 10:43:54 +04:00
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
2009-06-23 17:26:22 +04:00
#bootsplash
2011-04-26 10:12:11 +04:00
boot-splash : boot -images
2010-11-12 16:21:50 +03:00
mkdir -p $( datadir) /plymouth/themes/$( THEME)
2012-08-15 15:59:33 +04:00
#cp -al boot-800x600.jpg $(datadir)/plymouth/themes/$(THEME)/grub.jpg
2010-11-12 17:09:39 +03:00
cp -al images/background*x*.png $( datadir) /plymouth/themes/$( THEME) /
2010-11-12 16:21:50 +03:00
cp -a components/bootsplash/* $( datadir) /plymouth/themes/$( THEME)
mv $( datadir) /plymouth/themes/$( THEME) /theme.plymouth $( datadir) /plymouth/themes/$( THEME) /$( THEME) .plymouth
2009-06-23 17:26:22 +04:00
#bootloader
2011-04-26 10:12:11 +04:00
boot : boot -images
2009-06-23 17:26:22 +04:00
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 $( datadir) /gfxboot/$( THEME)
install -m 644 design-bootloader-source/message $( sysconfdir) /../boot/splash/$( THEME)
install -m 644 design-bootloader-source/bootlogo $( datadir) /gfxboot/$( THEME)
2011-01-31 12:37:18 +03:00
#grub2
install -d -m 755 $( sysconfdir) /../boot/grub/themes/$( THEME)
cp -a components/grub2/* $( sysconfdir) /../boot/grub/themes/$( THEME) /
2013-09-09 23:33:38 +04:00
install -m 644 images/grub.png $( sysconfdir) /../boot/grub/themes/$( THEME) /boot.png
install -m 644 boot-800x600.jpg $( sysconfdir) /../boot/grub/themes/$( THEME) /grub.jpg
2009-10-23 18:06:35 +04:00
# index html page, start page for all local browsers
2011-08-22 16:23:07 +04:00
components/indexhtml/index.css :
sed 's|/design/|file:///usr/share/alterator/design/|g' components/ahttpd/styles/alterator.css > components/indexhtml/index.css
2009-10-23 16:59:56 +04:00
INDEXHTML_DIR = $( datadir) /doc/indexhtml
2011-08-22 16:23:07 +04:00
indexhtml : components /indexhtml /index .css
2011-09-19 16:55:12 +04:00
for i in components/indexhtml/*.html components/indexhtml/*.css; do \
2009-10-23 18:06:35 +04:00
install -Dpm644 $$ i $( INDEXHTML_DIR) /` basename $$ i` ; \
done
install -Dpm644 /dev/null $( INDEXHTML_DIR) /index.html
2011-09-19 16:55:12 +04:00
cp -a components/indexhtml/images $( INDEXHTML_DIR)
2012-04-05 16:49:47 +04:00
for i in alt-docs documentation; do \
ln -s /usr/share/doc/$$ i $( INDEXHTML_DIR) /$$ i; \
done
2009-10-23 18:06:35 +04:00
install -Dpm644 components/indexhtml/indexhtml.desktop $( datadir) /applications/indexhtml.desktop
2013-10-25 16:05:20 +04:00
install -Dpm755 components/indexhtml/indexhtml.desktop $( datadir) /kde4/apps/kio_desktop/DesktopLinks/indexhtml.desktop