usplash theme dropped, wasn't installed anyway.

This commit is contained in:
Yves-Alexis Perez
2010-12-19 19:42:53 +00:00
parent 097812c9a6
commit fb15f95c79
10 changed files with 13 additions and 7227 deletions

View File

@@ -8,18 +8,14 @@ PIXMAPS=$(wildcard pixmaps/*.png)
DESKTOPFILES=$(wildcard *.desktop)
all:
# make -C usplash/moreblue-orbit
clean:
# make -C usplash/moreblue-orbit clean
install:
# splashy themes
mkdir -p $(DESTDIR)/usr/share/splashy/themes/spacefun
$(INSTALL) $(wildcard splashy/spacefun/*) $(DESTDIR)/usr/share/splashy/themes/spacefun
# usplash theme
# make -C usplash/moreblue-orbit install DESTDIR=$(CURDIR)/debian/usplash-theme-debian-desktop/usr/lib/usplash
# background files
mkdir -p $(DESTDIR)/usr/share/images/desktop-base
$(INSTALL) $(BACKGROUNDS) $(DESTDIR)/usr/share/images/desktop-base

3
debian/changelog vendored
View File

@@ -5,8 +5,9 @@ desktop-base (6.0.5) UNRELEASED; urgency=low
* debian/copyright updated. closes: #607458
* debian-desktop-logo.png dropped, its' not installed anywhere anyway.
* source/spacefun/splash updated to the DFSG-free version. closes: #587668
* usplash theme dropped, wasn't installed anyway.
-- Yves-Alexis Perez <corsac@debian.org> Sun, 19 Dec 2010 20:26:31 +0100
-- Yves-Alexis Perez <corsac@debian.org> Sun, 19 Dec 2010 20:35:56 +0100
desktop-base (6.0.4) unstable; urgency=low

14
debian/copyright vendored
View File

@@ -25,13 +25,16 @@ Walters <walters@debian.org>.
The gnome-debian-sid "kit" including splash/gnome-debian-sid-splash.xcf.gz,
splash/gnome-debian-sid-splash.png, wallpapers/gnome-debian-sid-wp.xcf.gz
and wallpapers/gnome-debian-sid-wp.png were made by Josselin Mouette
<joss@debian.org> and Gustavo Franco <stratus@debian.org>.
<joss@debian.org> and Gustavo Franco <stratus@debian.org>. It includes the
Debian “open use” logo.
The following files are Copyright 2006 André Luiz Rodrigues Ferreira and
licensed under the GPL.
- SVG background, backgrounds/debian-blueish-wallpaper.svg.
- PNG splash, splash/gnome-splash-curves.png.
They both includes the Debian “open use” logo.
The SpaceFun theme is © 2010 Valessio S. Brito and released under the GPLv2.
KDM and Splashy themes are © 2010 Yves-Alexis Perez using artwork from Valessio
S. Brito, and are released under GPLv2.
@@ -39,14 +42,19 @@ S. Brito, and are released under GPLv2.
Spacefun plymouth theme is © 2010 Aurelien Couderc and released under the GPLv3
license, using artwork from Valessio S. Brito.
Spacefun KDM theme is © Valessio Brito, with others authors beeing Amir
Dizdarević, Nuno Pinheiro, Riccardo Iaconelli and Marco Martin.
They both includes the Debian “open use” logo.
Nightly theme (nightly-splash.png, nightly-wallpaper.png and nightly.xml) is ©
2008 Robert Jähne and released under the GPLv2.
2008 Robert Jähne and released under the GPLv2. It includes the Debian “open
use” logo.
Moreblue Orbit theme (moreblue-orbit-splash, moreblue-orbit-grub and
moreblue-orbit-wallpaper) is © 2008 Andre Ferreira and released under the
GPLv2.
GPLv2. It includes the Debian “open use” logo. The GDM theme authors are Andre
Ferreira, Fathi Boudra and Valessio S. Brito.
The GPL license (version 2) can be found in plain text format, on Debian
systems, at /usr/share/common-licenses/GPL-2

View File

@@ -1,120 +0,0 @@
# usplash-theme-debian - Makefile
#
# Copyright © 2006 - 2007 David Härdeman <david@hardeman.nu>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# This is the list of sizes to build and include in the theme
# By convention, the sizes should go from smaller to larger
sizes = 640x480 800x600 1024x768 1280x1024
# This creates a list with entries like background_800x600.png...
backgrounds = $(addsuffix .png, $(addprefix background_, $(sizes)))
background_objs = $(backgrounds:.png=.o)
progressfgs = $(addsuffix .png, $(addprefix progressfg_, $(sizes)))
progressfg_objs = $(progressfgs:.png=.o)
progressbgs = $(addsuffix .png, $(addprefix progressbg_, $(sizes)))
progressbg_objs = $(progressbgs:.png=.o)
theme = moreblue-orbit-theme.so
CC = gcc
CFLAGS = -g -Wall -fPIC
LDFLAGS =
INCLUDES =
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS)
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_PROG = $(INSTALL) -m 755
DESTDIR = /usr/lib/usplash
# Default = silent build
V =
ifeq ($(strip $(V)),)
E = @echo
Q = @
else
E = @\#
Q =
endif
export E Q
all: $(theme)
.PHONY: all
.DEFAULT: all
$(theme): theme.o $(background_objs) $(progressfg_objs) $(progressbg_objs)
$(E) " LINK " $@
$(Q) $(COMPILE) -shared -o $@ $^
theme.h: theme.in progress.png themesetup.sh $(backgrounds) $(progressfgs) $(progressbgs)
$(E) " THMPARM " $@
$(Q) ./themesetup.sh $(sizes) > $@
theme.o: theme.c theme.h
background_%.png: background.svg cmap.gif
$(E) " BG " $@
$(Q) rsvg-convert -w `echo $* | cut -dx -f1` -h `echo $* | cut -dx -f2` -f png $< > $@
progressfg_%.png: background_%.png progress.png cmap.gif
$(E) " PROGFG " $@
$(Q) composite -compose dst_over -gravity center $< progress.png $@
progressbg_%.png: background_%.png progress.png cmap.gif
$(E) " PROGBG " $@
$(Q) composite -gravity center -dissolve 25x100 progress.png $< png:- | \
composite -gravity center -compose src_over png:- progress.png $@
%.o: %.c
$(E) " CC " $@
$(Q) $(COMPILE) -o $@ -c $<
%.c: %.png cmap.gif
$(E) " PNGSRC " $@
$(Q) convert $< +dither -map cmap.gif gif:- | \
convert gif:- $<
$(Q) pngtousplash $< > $@
#cmap.gif: background.svg progress.png
# $(E) " CMAP " $@
# $(Q) rsvg-convert -w 1024 -h 768 -f png background.svg | \
# composite -compose src_over -gravity center progress.png png:- +dither cmap.gif
install: $(theme)
$(E) " INSTALL " $<
$(Q) $(INSTALL_DATA) -D $< $(DESTDIR)/$(theme)
.PHONY: install
install-strip: $(theme)
$(MAKE) INSTALL='$(INSTALL) -s' install
.PHONY: install-strip
clean:
$(E) " CLEAN "
$(Q) - find . -type f -name '*.png.c' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name '*.cfont' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name '*.o' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name '*.so' -print0 | xargs -0r rm -f
# $(Q) - find . -type f -name 'cmap.*' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name 'background_*' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name 'progressfg_*' -print0 | xargs -0r rm -f
$(Q) - find . -type f -name 'progressbg_*' -print0 | xargs -0r rm -f
$(Q) - rm -f theme.h
.PHONY: clean
.PRECIOUS: %.c progressbg_%.png progressfg_%.png background_%.png

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,178 +0,0 @@
/* usplash
*
* theme.c - theme definition
*
* Copyright © 2006 David Härdeman <david@hardeman.nu>
* based on example-theme from usplash which is
* Copyright © 2006 Dennis Kaarsemaker <dennis@kaarsemaker.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <usplash-theme.h>
#include <usplash_backend.h>
void t_init(struct usplash_theme *theme);
void t_draw_progressbar(struct usplash_theme *theme, int percentage);
void t_clear_progressbar(struct usplash_theme *theme);
void t_clear_text(struct usplash_theme *theme);
void t_animate_step(struct usplash_theme* theme, int pulsating);
/* Auto-generated theme definitions */
#include "theme.h"
static struct private_hack *phack = NULL;
void
t_init(struct usplash_theme *theme)
{
int x, y;
/* START - HACKS R US */
phack = (struct private_hack *)theme->font;
theme->font = NULL;
/* FINISH - HACKS R US */
usplash_getdimensions(&x, &y);
theme->progressbar_x = (x - theme->pixmap->width)/2 + theme->progressbar_x;
theme->progressbar_y = (y - theme->pixmap->height)/2 + theme->progressbar_y;
}
void
t_draw_progressbar(struct usplash_theme *theme, int percentage)
{
int w = (phack->progress_bg->width * percentage / 100);
static int last_w = 0;
if (w != 0 && w == last_w)
return;
/* Check if we're changing mode between startup and shutdown */
if (last_w >= 0 && w < 0) {
usplash_put(theme->progressbar_x,
theme->progressbar_y,
phack->progress_fg);
last_w = 0;
} else if (last_w < 0 && w > 0) {
usplash_put(theme->progressbar_x,
theme->progressbar_y,
phack->progress_bg);
last_w = 0;
}
/* Draw only the part which has changed since last time */
if (percentage == 0) {
usplash_put(theme->progressbar_x,
theme->progressbar_y,
phack->progress_bg);
} else if (percentage < 0) {
usplash_put_part(theme->progressbar_x - last_w,
theme->progressbar_y,
-w + last_w,
phack->progress_bg->height,
phack->progress_bg,
-last_w, 0);
} else if (percentage > 0) {
usplash_put_part(theme->progressbar_x + last_w,
theme->progressbar_y,
w - last_w,
phack->progress_fg->height,
phack->progress_fg,
last_w, 0);
}
last_w = w;
}
void
t_clear_progressbar(struct usplash_theme *theme)
{
t_draw_progressbar(theme, 0);
}
void
t_clear_text(struct usplash_theme *theme)
{
int x, y, x1, y1, x2, y2;
usplash_getdimensions(&x, &y);
/* Draw outer border */
x1 = (x - theme->pixmap->width)/2 + theme->text_x - TEXT_EXTRA_PX;
y1 = (y - theme->pixmap->height)/2 + theme->text_y - TEXT_EXTRA_PX;
x2 = x1 + theme->text_width + 2 * TEXT_EXTRA_PX;
y2 = y1 + theme->text_height + 2 * TEXT_EXTRA_PX;
usplash_clear(x1, y1, x2, y2, theme->text_foreground);
/* Draw main text area with TEXT_BORDER_PX pixels padding */
x1 += TEXT_BORDER_PX;
y1 += TEXT_BORDER_PX;
x2 -= TEXT_BORDER_PX;
y2 -= TEXT_BORDER_PX;
usplash_clear(x1, y1, x2, y2, theme->text_background);
}
void
t_animate_step(struct usplash_theme* theme, int pulsating)
{
static int pulsate_step = 0;
static int pulse_width = 70;
static int step_width = 1;
static int prev_step = 0;
static int reset = 1;
int num_steps = (phack->progress_fg->width - pulse_width)/step_width;
int x1;
if (!pulsating) {
reset = 1;
return;
}
if (reset) {
/* Reset pulse */
t_clear_progressbar(theme);
reset = 0;
pulsate_step = 0;
usplash_put_part(theme->progressbar_x,
theme->progressbar_y,
pulse_width,
phack->progress_fg->height,
phack->progress_fg,
0, 0);
} else {
/* Remove from left hand side of pulse */
x1 = step_width * prev_step;
usplash_put_part(theme->progressbar_x + x1,
theme->progressbar_y,
step_width,
phack->progress_bg->height,
phack->progress_bg,
x1, 0);
}
/* Add to right hand side of pulse */
x1 = step_width * pulsate_step + pulse_width;
usplash_put_part(theme->progressbar_x + x1,
theme->progressbar_y,
step_width,
phack->progress_fg->height,
phack->progress_fg,
x1, 0);
/* Check for wraparound */
prev_step = pulsate_step;
pulsate_step++;
if (pulsate_step >= num_steps)
reset = 1;
}

View File

@@ -1,20 +0,0 @@
#define PALETTE_BG 0
#define PALETTE_PROGRESS_FG 0
#define PALETTE_PROGRESS_BG 0
#define PALETTE_TEXT_BG 251
#define PALETTE_TEXT_FG 0
#define PALETTE_TEXT_SUCCESS 67
#define PALETTE_TEXT_FAILURE 134
#define TEXT_BORDER_PX 1
#define TEXT_PADDING_PX 9
#define TEXT_EXTRA_PX (TEXT_BORDER_PX + TEXT_PADDING_PX)
#define TEXT_MARGIN 30
/* Horrible hack */
struct private_hack {
struct usplash_pixmap *pixmap; /* Background image */
struct usplash_pixmap *progress_fg; /* Progress bar foreground */
struct usplash_pixmap *progress_bg; /* Progress bar background */
};

View File

@@ -1,151 +0,0 @@
#!/bin/sh
#
# Sanity checks
#
if [ ! -e theme.in ]; then
exit 1
fi
if [ $# -lt 1 ]; then
exit 1
fi
#
# Helper functions
#
struct_name() {
name=${1%.*}
echo "pixmap_$name"
}
#
# Begin processing
#
echo "/*"
echo " * Part 1 - Generic header part"
echo " */"
cat theme.in
echo
echo "/*"
echo " * Part 2 - Forward theme struct declarations"
echo " */"
first=yes
for size in $@; do
if [ $first = "yes" ]; then
THEMENAME="usplash_theme"
first=no
else
THEMENAME="usplash_theme_$size"
fi
echo "struct usplash_theme $THEMENAME;"
done
echo
echo "/*"
echo " * Step 3 - Actual theme struct defs"
echo " */"
first=yes
while [ 1 ]; do
size="$1"
if [ -z "$size" ]; then
exit 0
fi
if [ $first = "yes" ]; then
THEMENAME="usplash_theme"
first=no
else
THEMENAME="usplash_theme_$size"
fi
if [ -z "$2" ]; then
THEMENEXT="NULL"
else
THEMENEXT="&usplash_theme_$2"
fi
shift
PGFG_PIX="progressfg_$size.png"
PGFG_STRUCT=$(struct_name "$PGFG_PIX")
PGBG_PIX="progressbg_$size.png"
PGBG_STRUCT=$(struct_name "$PGBG_PIX")
BG_PIX="background_$size.png"
BG_STRUCT=$(struct_name "$BG_PIX")
PROGRESS_WIDTH=$( identify "$PGFG_PIX" | cut -d' ' -f3 | cut -dx -f1)
PROGRESS_HEIGHT=$( identify "$PGFG_PIX" | cut -d' ' -f3 | cut -dx -f2)
WIDTH=${size%x*}
HEIGHT=${size#*x}
if [ $(( $WIDTH / 16 )) -eq $(( $HEIGHT / 9 )) ]; then
RATIO="USPLASH_16_9"
else
RATIO="USPLASH_4_3"
fi
cat <<EOF
/* Theme definition for $size */
extern struct usplash_pixmap $PGFG_STRUCT;
extern struct usplash_pixmap $PGBG_STRUCT;
extern struct usplash_pixmap $BG_STRUCT;
struct private_hack phack_$size = {
.progress_fg = &$PGFG_STRUCT,
.progress_bg = &$PGBG_STRUCT
};
struct usplash_theme $THEMENAME = {
.version = THEME_VERSION,
.next = $THEMENEXT,
.ratio = $RATIO,
/* Background and font */
.pixmap = &$BG_STRUCT,
.font = (struct usplash_font *)&phack_$size,
/* Palette indexes */
.background = PALETTE_BG,
.progressbar_background = PALETTE_PROGRESS_FG,
.progressbar_foreground = PALETTE_PROGRESS_BG,
.text_background = PALETTE_TEXT_BG,
.text_foreground = PALETTE_TEXT_FG,
.text_success = PALETTE_TEXT_SUCCESS,
.text_failure = PALETTE_TEXT_FAILURE,
/* Progress bar position and size in pixels */
.progressbar_x = $WIDTH/2 - $PROGRESS_WIDTH/2,
.progressbar_y = $HEIGHT/2 - $PROGRESS_HEIGHT/2,
.progressbar_width = $PROGRESS_WIDTH,
.progressbar_height = $PROGRESS_HEIGHT,
/* Text box position and size in pixels */
.text_x = TEXT_MARGIN,
.text_y = $HEIGHT/2 + $PROGRESS_HEIGHT/2 + TEXT_MARGIN,
.text_width = $WIDTH - 2 * TEXT_MARGIN,
.text_height = $HEIGHT/2 - $PROGRESS_HEIGHT/2 - 2*TEXT_MARGIN,
/* Text details */
.line_height = 15,
.line_length = 32,
.status_width = 25,
/* Functions */
.init = t_init,
.clear_progressbar = t_clear_progressbar,
.draw_progressbar = t_draw_progressbar,
.clear_text = t_clear_text,
.animate_step = t_animate_step,
};
EOF
done
exit 0