blob: ca0a3aeb437f4040e3130141baffa588acecc72c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
NAME=mageia-theme
PACKAGE=mageia-theme
VERSION=1.5.0.45
THEMES=Mageia-Default
configdir=/etc
libexecdir=/usr/libexec
sharedir=/usr/share
unitdir=/usr/lib/systemd/system
all: scripts
scripts:
@/bin/cp -f gimp/scripts/gimp-normalize-to-bootsplash.scm tmp-gimp-command
@cat gimp/scripts/gimp-convert-to-jpeg.scm >> tmp-gimp-command
@for i in */gfxboot/*.png ; do \
echo \(gimp-normalize-to-bootsplash 1.0 \"$$i\" \"`dirname $$i`/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \
done
@for i in */background/*.png ; do \
echo \(gimp-convert-to-jpeg 0.98 \"$$i\" \"`dirname $$i`/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \
done
@echo \(gimp-quit 1\) >> tmp-gimp-command
@echo running gimp to convert images
@cat tmp-gimp-command | gimp --console-messages -i -d -b -
@rm -f tmp-gimp-command
# GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "bootsplash/data/*.png") (gimp-quit 1))'
# GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "gfxboot/*.png") (gimp-quit 1))'
install:
mkdir -p $(DESTDIR)$(sharedir)/mga/screensaver
mkdir -p $(DESTDIR)$(sharedir)/mga/backgrounds
install -m 644 common/screensaver/*.jpg $(DESTDIR)$(sharedir)/mga/screensaver
install -m 644 extra-backgrounds/*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds
@for t in $(THEMES); do \
set -x; set -e; \
install -d $(DESTDIR)$(sharedir)/plymouth/themes/$$t; \
install -m644 common/plymouth/*.script $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \
install -m644 common/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \
install -m644 $$t/plymouth/*.plymouth $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \
install -m644 $$t/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \
install -m644 $$t/background/$$t-*.png $(DESTDIR)$(sharedir)/mga/backgrounds/; \
install -m644 $$t/background/$$t-*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds/; \
install -d $(DESTDIR)$(sharedir)/gfxboot/themes/$$t; \
install -m644 $$t/gfxboot/*.jpg $(DESTDIR)$(sharedir)/gfxboot/themes/$$t/; \
done
@mkdir -p $(DESTDIR)$(libexecdir)
@mkdir -p $(DESTDIR)$(unitdir)
install -m755 mga-bg-res/mga-bg-res.sh $(DESTDIR)$(libexecdir)/mga-bg-res
install -m644 mga-bg-res/mga-bg-res.service $(DESTDIR)$(unitdir)/mga-bg-res.service
dist: cleandist export
cleandist:
rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz
export:
git archive --prefix $(NAME)-$(VERSION)/ HEAD | xz -9 > $(NAME)-$(VERSION).tar.xz
|