ksplash-theme-openmamba/Makefile

97 lines
2.9 KiB
Makefile

# Makefile for ksplash-theme-openmamba
# Copyright (C) 2013 by Silvan Calarco <silvan.calarco@mambasoft.it>
include VERSION
PACKAGE = ksplash-theme-openmamba
DISTROID = openmamba
RPM_VENDOR = openmamba
RPM_DISTRIBUTION = openmamba
RPM_DISTROEXT = mamba
DISTROid = $(shell echo $(DISTROID) | tr A-Z a-z)
DISTROICON = $(DISTROid)
DESTDIR =
prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc
sbindir = ${exec_prefix}/sbin
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
initrddir = ${sysconfdir}/rc.d/init.d
mandir = ${prefix}/usr/share/man
sysconfigdir= ${sysconfdir}/sysconfig
xprofiledir = ${sysconfdir}/xprofile.d
mambabasedatadir = ${datadir}/openmamba/mambabase
mambawelcomedatadir = ${datadir}/openmamba/mambawelcome
bootrecoverdatadir = ${datadir}/openmamba/bootrecover
iconsdir = ${datadir}/icons/hicolor
kdeprefixdir = $(shell kde4-config --prefix)
kdedatadir = $(kdeprefixdir)/share
kdebindir = $(kdeprefixdir)/bin
kdeautostartdir = ${kdedatadir}/autostart
kdeconfigdir = ${kdedatadir}/config
kdewallpapersdir = ${kdedatadir}/wallpapers
kdeappsdir = ${kdedatadir}/apps
kdeplasmadesktopupdatesdir = ${kdeappsdir}/plasma-desktop/updates
localesdir = ${kdedatadir}/locale
xdg_appsdir = ${datadir}/applications
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
xdg_mergedmenudir = $(xdg_menudir)/applications-merged
distrorootdir = ${datadir}/$(DISTROid)
distrobindir = ${distrorootdir}/bin
distrosrpmsdir = ${distrorootdir}/SRPMS
distrokdedir = ${distrorootdir}/kde
srcdir = .
distdir = $(PACKAGE)-$(VERSION)
dist_archive = $(distdir).tar.bz2
INSTALL = /usr/bin/install
INSTALL_PROGRAM = ${INSTALL} -m 755
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DIR = ${INSTALL} -d -m 755
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
all: wallpapers
wallpapers:
@echo "Converting background images..."
@for s in 1280x800 1440x900 1920x1200; do \
mkdir -p ksplash-theme-openmamba/$${s}; \
convert openmamba_Circles-ksplash.svg +repage -gravity NorthWest -resize $${s/x*} -crop $${s}+0+0 +repage ksplash-theme-openmamba/$${s}/background.png; \
done
@for s in 1024x768 1280x1024 1600x1200; do \
mkdir -p ksplash-theme-openmamba/$${s}; \
convert openmamba_Circles-ksplash.svg +repage -gravity NorthWest -resize x$${s/*x} -crop $${s}+0+0 +repage ksplash-theme-openmamba/$${s}/background.png; \
done
install:
$(INSTALL_DIR) $(DESTDIR)$(kdedatadir)/apps/ksplash/Themes/openmamba
cp -a ksplash-theme-openmamba/* $(DESTDIR)$(kdedatadir)/apps/ksplash/Themes/openmamba/
dist: clean
@git log > ChangeLog.git
@mkdir /tmp/$(distdir)
@cp -a * /tmp/$(distdir)/
@rm -f $(dist_archive);\
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
@rm -rf /tmp/$(distdir)
@echo "file \`$(dist_archive)' created"
dist-rpm: dist
@rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\
mv -f $(dist_archive) $$rpm_sourcedir;\
echo "and saved as \`$$rpm_sourcedir/$(dist_archive)'"
clean:
rm -f $(dist_archive)
rm -f ksplash-theme-openmamba/*/background.png