Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
branding-etersoft-ximper
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
branding-etersoft-ximper
Commits
a220805e
Commit
a220805e
authored
Apr 29, 2019
by
Andrey Cherepanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge two parts of Makefile in one file
parent
7b4d83b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
109 deletions
+105
-109
Makefile.in
Makefile.in
+105
-3
components.mk
components.mk
+0
-106
No files found.
Makefile.in
View file @
a220805e
...
...
@@ -3,7 +3,109 @@ THEME=@THEME@
NAME
=
@NAME@
VERSION
=
@VERSION@
all
:
# graphics
include
components.mk
install
:
browser-qt ahttpd boot-images boot-splash @X86@ indexhtml
# generate derivative graphics
graphics
:
# make default wallpaper
cp
-al
images/background4x3.png
images/wallpaper.png
cp
-al
images/background16x9.png
graphics/backgrounds/default-wide.png
cp
-al
images/product-logo.png
graphics/backgrounds/product-logo.png
cp
-al
images/wallpaper.png
graphics/backgrounds/default.png
cp
-al
images/wallpaper.png
graphics/backgrounds/xdm.png
# make wallpapers for gfxboot and grub2
# convert images/background4x3.png -resize 800x600 images/small.png
# display status
# convert images/small.png images/product-logo.png -geometry +30+30 -composite images/grub.png
# cp -al images/grub.png images/boot.png
# use predefined image 800x600 with logo
cp
-al
images/boot.png
images/grub.png
# product logo for ahttpd
cp
-al
images/product-logo.png
components/ahttpd/images/product-logo.png
# product logo for indexhtml
cp
-al
images/product-logo.png
components/indexhtml/images/product-logo.png
# browser-qt
components/browser-qt/design/bg.png
:
images/installer.png
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)
"'
$@
browser-qt
:
components/browser-qt/design/bg.png
install
-d
$(datadir)
/alterator-browser-qt/design
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
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
:
for
i
in
components/ahttpd/images/
*
.svg
;
do
\
image
=
$$
{
i%.svg
}
;
\
convert
-background
none
$$
image.svg
$$
image.png
;
\
done
install
-d
$(datadir)
/alterator/design/styles
cp
-a
components/ahttpd/images
$(datadir)
/alterator/design
cp
-a
components/ahttpd/styles/
*
.css
$(datadir)
/alterator/design/styles
# bootloader and bootsplash
boot-images
:
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
\
# 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 ;
\
#done
#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 -colorspace YCbCr -sampling-factor 2x2 images/boot.png JPEG:images/boot.jpg
cp -al images/boot.jpg design-bootloader-source/data-boot/back.jpg
cp -al images/boot.jpg design-bootloader-source/data-install/back.jpg
mv design-bootloader-source/data-install/back{,.1}.jpg
convert -quality 97 -fill '#acdaf2' -draw 'rectangle 0,0,2,2' design-bootloader-source/data-install/back{.1,}.jpg
rm -f design-bootloader-source/data-install/back.*.jpg
#bootsplash
boot-splash
:
boot-images
mkdir
-p
$(datadir)
/plymouth/themes/
$(THEME)
cp
-al
images/grub.jpg
$(datadir)
/plymouth/themes/
$(THEME)
/grub.jpg
# Put logo to background*x*.png
cp
-al
images/with-logo/background
*
x
*
.png
$(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
rm
-f
$(datadir)
/plymouth/themes/
$(THEME)
/
*
.in
#bootloader
boot
:
boot-images
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)
#install -m644 components/bootloader/bootlogo
$(datadir)
/gfxboot/
$(THEME)
#grub2
convert -size 16x16 -define png
:
color-type=2 -depth 8 xc:'
#
268BD2' components/grub2/selected_blob_c.png
install
-d
-m
755
$(sysconfdir)
/../boot/grub/themes/
$(THEME)
cp
-a
components/grub2/
*
$(sysconfdir)
/../boot/grub/themes/
$(THEME)
/
install
-m
644 images/boot.png
$(sysconfdir)
/../boot/grub/themes/
$(THEME)
/boot.png
install
-m
644 images/boot.jpg
$(sysconfdir)
/../boot/grub/themes/
$(THEME)
/grub.jpg
# index html page, start page for all local browsers
components/indexhtml/index.css
:
sed
's|/design/|file:///usr/share/alterator/design/|g'
components/ahttpd/styles/alterator.css
>
components/indexhtml/index.css
INDEXHTML_DIR
=
$(datadir)
/doc/indexhtml
indexhtml
:
components/indexhtml/index.css
for
i
in
components/indexhtml/
*
.html components/indexhtml/
*
.css
;
do
\
install
-Dpm644
$$
i
$(INDEXHTML_DIR)
/
`
basename
$$
i
`
;
\
done
install
-Dpm644
/dev/null
$(INDEXHTML_DIR)
/index.html
cp
-a
components/indexhtml/images
$(INDEXHTML_DIR)
for
i
in
alt-docs documentation
;
do
\
ln
-s
/usr/share/doc/
$$
i
$(INDEXHTML_DIR)
/
$$
i
;
\
done
install
-Dpm644
components/indexhtml/indexhtml.desktop
$(datadir)
/applications/indexhtml.desktop
install
-Dpm755
components/indexhtml/indexhtml.desktop
$(datadir)
/kde4/apps/kio_desktop/DesktopLinks/indexhtml.desktop
all
:
graphics
install
:
all browser-qt ahttpd boot-images boot-splash @X86@ indexhtml
components.mk
deleted
100644 → 0
View file @
7b4d83b6
# graphics
graphics:
# generate derivative graphics
# make default wallpaper
cp -al images/background4x3.png images/wallpaper.png
cp -al images/background16x9.png graphics/backgrounds/default-wide.png
cp -al images/product-logo.png graphics/backgrounds/product-logo.png
cp -al images/wallpaper.png graphics/backgrounds/default.png
cp -al images/wallpaper.png graphics/backgrounds/xdm.png
# make wallpapers for gfxboot and grub2
# convert images/background4x3.png -resize 800x600 images/small.png
# display status
# convert images/small.png images/product-logo.png -geometry +30+30 -composite images/grub.png
# cp -al images/grub.png images/boot.png
# use predefined image 800x600 with logo
cp -al images/boot.png images/grub.png
# product logo for ahttpd
cp -al images/product-logo.png components/ahttpd/images/product-logo.png
# product logo for indexhtml
cp -al images/product-logo.png components/indexhtml/images/product-logo.png
# browser-qt
components/browser-qt/design/bg.png: images/installer.png
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)"' $@
browser-qt:components/browser-qt/design/bg.png
install -d $(datadir)/alterator-browser-qt/design
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
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:
for i in components/ahttpd/images/*.svg; do \
image=$${i%.svg}; \
convert -background none $$image.svg $$image.png ; \
done
install -d $(datadir)/alterator/design/styles
cp -a components/ahttpd/images $(datadir)/alterator/design
cp -a components/ahttpd/styles/*.css $(datadir)/alterator/design/styles
# bootloader and bootsplash
boot-images:
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 \
# 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 ;\
#done
#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 -colorspace YCbCr -sampling-factor 2x2 images/boot.png JPEG:images/boot.jpg
cp -al images/boot.jpg design-bootloader-source/data-boot/back.jpg
cp -al images/boot.jpg design-bootloader-source/data-install/back.jpg
mv design-bootloader-source/data-install/back{,.1}.jpg
convert -quality 97 -fill '#acdaf2' -draw 'rectangle 0,0,2,2' design-bootloader-source/data-install/back{.1,}.jpg
rm -f design-bootloader-source/data-install/back.*.jpg
#bootsplash
boot-splash: boot-images
mkdir -p $(datadir)/plymouth/themes/$(THEME)
cp -al images/grub.jpg $(datadir)/plymouth/themes/$(THEME)/grub.jpg
# Put logo to background*x*.png
cp -al images/with-logo/background*x*.png $(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
rm -f $(datadir)/plymouth/themes/$(THEME)/*.in
#bootloader
boot: boot-images
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)
#install -m644 components/bootloader/bootlogo $(datadir)/gfxboot/$(THEME)
#grub2
convert -size 16x16 -define png:color-type=2 -depth 8 xc:'#268BD2' components/grub2/selected_blob_c.png
install -d -m 755 $(sysconfdir)/../boot/grub/themes/$(THEME)
cp -a components/grub2/* $(sysconfdir)/../boot/grub/themes/$(THEME)/
install -m 644 images/boot.png $(sysconfdir)/../boot/grub/themes/$(THEME)/boot.png
install -m 644 images/boot.jpg $(sysconfdir)/../boot/grub/themes/$(THEME)/grub.jpg
# index html page, start page for all local browsers
components/indexhtml/index.css:
sed 's|/design/|file:///usr/share/alterator/design/|g' components/ahttpd/styles/alterator.css > components/indexhtml/index.css
INDEXHTML_DIR=$(datadir)/doc/indexhtml
indexhtml: components/indexhtml/index.css
for i in components/indexhtml/*.html components/indexhtml/*.css;do \
install -Dpm644 $$i $(INDEXHTML_DIR)/`basename $$i`; \
done
install -Dpm644 /dev/null $(INDEXHTML_DIR)/index.html
cp -a components/indexhtml/images $(INDEXHTML_DIR)
for i in alt-docs documentation;do \
ln -s /usr/share/doc/$$i $(INDEXHTML_DIR)/$$i; \
done
install -Dpm644 components/indexhtml/indexhtml.desktop $(datadir)/applications/indexhtml.desktop
install -Dpm755 components/indexhtml/indexhtml.desktop $(datadir)/kde4/apps/kio_desktop/DesktopLinks/indexhtml.desktop
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment