2017-12-17 17:11:39 +01:00
|
|
|
# Makefile for desktop-base-kde
|
|
|
|
# Copyright (C) 2004-2017 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
2011-04-27 22:05:26 +02:00
|
|
|
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
|
|
|
|
include VERSION
|
|
|
|
|
2017-12-17 17:11:39 +01:00
|
|
|
PACKAGE = desktop-base-kde
|
2011-04-27 22:05:26 +02:00
|
|
|
|
|
|
|
DISTROID = openmamba
|
|
|
|
|
|
|
|
RPM_VENDOR = openmamba
|
|
|
|
RPM_DISTRIBUTION = openmamba
|
|
|
|
RPM_DISTROEXT = mamba
|
|
|
|
|
|
|
|
SYSCONFIGFILE = netsrpminstall
|
|
|
|
|
2013-08-25 16:36:08 +02:00
|
|
|
WALLPAPERS = openmamba_Bamboo,openmamba_Circles
|
|
|
|
DEFAULT_WALLPAPER = openmamba_Circles
|
2013-08-25 18:00:25 +02:00
|
|
|
DESKTOP_DESKTOPTHEME = openmamba
|
2011-04-27 22:05:26 +02:00
|
|
|
|
|
|
|
#SCREENSAVER = $(DISTROid).desktop
|
|
|
|
SCREENSAVER =
|
|
|
|
|
|
|
|
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
|
|
|
|
mambabasedatadir = ${datadir}/openmamba/mambabase
|
|
|
|
mambawelcomedatadir = ${datadir}/openmamba/mambawelcome
|
|
|
|
bootrecoverdatadir = ${datadir}/openmamba/bootrecover
|
|
|
|
iconsdir = ${datadir}/icons/hicolor
|
|
|
|
kdeprefixdir = $(shell kde4-config --prefix)
|
2016-07-02 17:16:05 +02:00
|
|
|
kdedatadir = ${kdeprefixdir}/share
|
|
|
|
kde5datadir = ${prefix}/share
|
|
|
|
kdebindir = ${kdeprefixdir}/bin
|
2011-04-27 22:05:26 +02:00
|
|
|
kdeautostartdir = ${kdedatadir}/autostart
|
|
|
|
kdeconfigdir = ${kdedatadir}/config
|
2016-02-19 23:30:26 +01:00
|
|
|
kde5configdir = ${sysconfdir}/xdg
|
2017-12-17 17:11:39 +01:00
|
|
|
kde5wallpapersdir = ${datadir}/wallpapers
|
2012-01-30 02:40:56 +01:00
|
|
|
kdeappsdir = ${kdedatadir}/apps
|
2016-07-02 17:16:05 +02:00
|
|
|
kde5appsdir = ${prefix}/share
|
2011-04-27 22:05:26 +02:00
|
|
|
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 = .
|
|
|
|
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
INSTALL_PROGRAM = ${INSTALL} -m 755
|
|
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
|
|
INSTALL_DIR = ${INSTALL} -d -m 755
|
|
|
|
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
|
|
|
|
|
|
|
#pck_srpms = flashplugin jre msttcorefonts win32codecs
|
|
|
|
pck_srpms = flashplugin msttcorefonts win32codecs skype
|
|
|
|
|
|
|
|
pck_infiles := $(wildcard kde/config/*.in \
|
|
|
|
kde/scripts/*.in \
|
|
|
|
kde/wallpapers/*.in \
|
2013-08-25 18:00:25 +02:00
|
|
|
kde/apps/plasma-desktop/updates/*.in \
|
2011-04-27 22:05:26 +02:00
|
|
|
SRPMS/*/*.in)
|
|
|
|
pck_sysconfigfile := distroutils.sysconfig
|
|
|
|
|
|
|
|
distdir = $(PACKAGE)-$(VERSION)
|
|
|
|
dist_archive = $(distdir).tar.bz2
|
|
|
|
|
|
|
|
pck_catalogs := $(wildcard mambabase/po/*.po)
|
|
|
|
pck_catalogs1 := $(wildcard mambawelcome/po/*.po)
|
|
|
|
pck_catalogs2 := $(wildcard bootrecover/po/*.po)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .in .po .mo
|
|
|
|
|
|
|
|
.in:; @echo "generating $@..."; \
|
|
|
|
sed "s,@distroID@,$(DISTROID),g;\
|
|
|
|
s,@distroid@,$(DISTROid),g;\
|
|
|
|
s,@distroicon@,$(DISTROICON),g;\
|
|
|
|
s,@distribution@,$(RPM_DISTRIBUTION),g;\
|
|
|
|
s,@distroext@,$(RPM_DISTROEXT),g;\
|
|
|
|
s,@vendor@,$(RPM_VENDOR),g;\
|
|
|
|
s,@sysconfigfile@,$(SYSCONFIGFILE),g;\
|
|
|
|
s,@datadir@,${datadir},g;\
|
|
|
|
s,@distrobindir@,$(distrobindir),g;\
|
|
|
|
s,@distrokdedir@,$(distrokdedir),g;\
|
|
|
|
s,@distrosrpmsdir@,$(distrosrpmsdir),g;\
|
|
|
|
s,@wallpaper@,$(DEFAULT_WALLPAPER),g;\
|
2013-08-25 18:00:25 +02:00
|
|
|
s,@desktoptheme@,$(DEFAULT_DESKTOPTHEME),g;\
|
2011-04-27 22:05:26 +02:00
|
|
|
s,@screensaver@,${SCREENSAVER},g;" $< > $@
|
|
|
|
|
2013-08-25 16:36:08 +02:00
|
|
|
all: dist-update locales wallpapers
|
2011-04-27 22:05:26 +02:00
|
|
|
|
|
|
|
dist-update: $(pck_infiles:.in=)
|
|
|
|
|
|
|
|
.po.mo:; msgfmt $< -o $@
|
|
|
|
|
|
|
|
locales: $(pck_catalogs:.po=.mo) $(pck_catalogs1:.po=.mo) $(pck_catalogs2:.po=.mo)
|
|
|
|
|
2013-08-25 16:36:08 +02:00
|
|
|
wallpapers:
|
|
|
|
@for w in openmamba_Circles; do \
|
|
|
|
mkdir -p kde/wallpapers/$${w}/contents/images; \
|
2013-08-30 16:06:19 +02:00
|
|
|
convert src/wallpapers/$${w}.png +repage -gravity SouthEast -resize 400 -crop 400x250+0+0 +repage kde/wallpapers/$${w}/contents/screenshot.png; \
|
|
|
|
for s in 1280x800 1440x900 1920x1200; do \
|
|
|
|
convert src/wallpapers/$${w}.png +repage -gravity SouthEast -resize $${s/x*} \
|
|
|
|
-crop $${s}+0+0 +repage kde/wallpapers/$${w}/contents/images/$${s}.png; \
|
|
|
|
done; \
|
|
|
|
for s in 1024x768 1280x1024 1600x1200; do \
|
|
|
|
convert src/wallpapers/$${w}.png +repage -gravity SouthEast -resize x$${s/*x} \
|
|
|
|
-crop $${s}+0+0 +repage kde/wallpapers/$${w}/contents/images/$${s}.png; \
|
2013-08-25 16:36:08 +02:00
|
|
|
done; done
|
|
|
|
|
2011-04-27 22:05:26 +02:00
|
|
|
install-kde-distro-addons: dist-update
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/pam.d
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/sudoers.d/
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
2016-07-02 17:16:05 +02:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5datadir)
|
2011-04-27 22:05:26 +02:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeautostartdir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdebindir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeconfigdir)
|
2016-02-19 23:30:26 +01:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5configdir)
|
2017-12-17 17:11:39 +01:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5wallpapersdir)
|
2016-07-02 17:16:05 +02:00
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)/color-schemes
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/color-schemes
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)/konqueror/profiles
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/konqueror/profiles
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)/konsole
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/konsole
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)/plasma-desktop/init
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(kdeappsdir)/plasma-desktop/updates
|
2011-04-27 22:05:26 +02:00
|
|
|
$(INSTALL_DATA) etc/pam.d/kde $(DESTDIR)$(sysconfdir)/pam.d/
|
|
|
|
$(INSTALL_DATA) etc/pam.d/kde-np $(DESTDIR)$(sysconfdir)/pam.d/
|
|
|
|
$(INSTALL_DATA) etc/sudoers.d/kde4 $(DESTDIR)$(sysconfdir)/sudoers.d/kde4
|
2016-07-02 17:16:05 +02:00
|
|
|
$(INSTALL_DATA) kde/apps/color-schemes/OpenmambaGreen.colors $(DESTDIR)$(kde5appsdir)/color-schemes/OpenmambaGreen.colors
|
|
|
|
$(INSTALL_DATA) kde/apps/color-schemes/OpenmambaGreen.colors $(DESTDIR)$(kdeappsdir)/color-schemes/OpenmambaGreen.colors
|
|
|
|
$(INSTALL_DATA) kde/apps/konqueror/profiles/resourcesbrowsing $(DESTDIR)$(kde5appsdir)/konqueror/profiles/resourcesbrowsing
|
|
|
|
$(INSTALL_DATA) kde/apps/konqueror/profiles/resourcesbrowsing $(DESTDIR)$(kdeappsdir)/konqueror/profiles/resourcesbrowsing
|
|
|
|
$(INSTALL_DATA) kde/apps/konsole/openmamba.profile $(DESTDIR)$(kde5appsdir)/konsole/openmamba.profile
|
|
|
|
$(INSTALL_DATA) kde/apps/konsole/openmamba.profile $(DESTDIR)$(kdeappsdir)/konsole/openmamba.profile
|
|
|
|
$(INSTALL_DATA) kde/apps/plasma-desktop/init/10-openmamba-default-setup.js $(DESTDIR)$(kdeappsdir)/plasma-desktop/init/10-openmamba-default-setup.js
|
|
|
|
$(INSTALL_DATA) kde/apps/plasma-desktop/updates/10-openmamba-theme.js $(DESTDIR)$(kdeappsdir)/plasma-desktop/updates/10-openmamba-theme.js
|
2011-04-27 22:05:26 +02:00
|
|
|
$(INSTALL_DATA) kde/autostart/mambatray.desktop $(DESTDIR)$(kdeautostartdir)/mambatray.desktop
|
2016-07-06 13:55:05 +02:00
|
|
|
$(INSTALL_DATA) kde/autostart/kickoff-autoupdate.desktop $(DESTDIR)$(kdeautostartdir)/kickoff-autoupdate.desktop
|
|
|
|
$(INSTALL_DATA) kde/autostart/kde5-migrate-user-conf.desktop $(DESTDIR)$(kdeautostartdir)/kde5-migrate-user-conf.desktop
|
2016-07-02 17:16:05 +02:00
|
|
|
$(INSTALL_DATA) kde/config/kcminputrc $(DESTDIR)$(kde5configdir)/kcminputrc
|
2016-02-19 23:30:26 +01:00
|
|
|
$(INSTALL_DATA) kde/config/kdeglobals $(DESTDIR)$(kde5configdir)/kdeglobals
|
2016-07-02 17:16:05 +02:00
|
|
|
$(INSTALL_DATA) kde/config/kdesktoprc $(DESTDIR)$(kde5configdir)/kdesktoprc
|
|
|
|
$(INSTALL_DATA) kde/config/kdesurc $(DESTDIR)$(kde5configdir)/kdesurc
|
|
|
|
$(INSTALL_DATA) kde/config/kglobalshortcutsrc $(DESTDIR)$(kde5configdir)/kglobalshortcutsrc
|
|
|
|
$(INSTALL_DATA) kde/config/kickoffrc $(DESTDIR)$(kde5configdir)/kickoffrc
|
|
|
|
$(INSTALL_DATA) kde/config/kmilodrc $(DESTDIR)$(kde5configdir)/kmilodrc
|
|
|
|
$(INSTALL_DATA) kde/config/kmixrc $(DESTDIR)$(kde5configdir)/kmixrc
|
|
|
|
$(INSTALL_DATA) kde/config/konsolerc $(DESTDIR)$(kde5configdir)/konsolerc
|
2017-12-31 17:31:31 +01:00
|
|
|
$(INSTALL_DATA) kde/config/kscreenlockerrc $(DESTDIR)$(kde5configdir)/kscreenlockerrc
|
2016-07-02 17:16:05 +02:00
|
|
|
$(INSTALL_DATA) kde/config/kwalletrc $(DESTDIR)$(kde5configdir)/kwalletrc
|
|
|
|
$(INSTALL_DATA) kde/config/kwinrc $(DESTDIR)$(kde5configdir)/kwinrc
|
|
|
|
$(INSTALL_DATA) kde/config/nepomukserverrc $(DESTDIR)$(kde5configdir)/nepomukserverrc
|
|
|
|
$(INSTALL_DATA) kde/config/oxygenrc $(DESTDIR)$(kde5configdir)/oxygenrc
|
|
|
|
$(INSTALL_DATA) kde/config/plasma-desktop-appletsrc $(DESTDIR)$(kde5configdir)/plasma-desktop-appletsrc
|
|
|
|
$(INSTALL_DATA) kde/config/plasma-desktoprc $(DESTDIR)$(kde5configdir)/plasma-desktoprc
|
|
|
|
$(INSTALL_DATA) kde/config/powerdevilrc $(DESTDIR)$(kde5configdir)/powerdevilrc
|
2017-12-17 17:11:39 +01:00
|
|
|
cp -a kde/wallpapers/{$(WALLPAPERS)} $(DESTDIR)$(kde5wallpapersdir)
|
2012-01-30 02:40:56 +01:00
|
|
|
cp -a kde/desktoptheme $(DESTDIR)$(kdeappsdir)/
|
2011-06-02 16:10:49 +02:00
|
|
|
$(INSTALL_SCRIPT) bin/kickoffcfg $(DESTDIR)$(kdebindir)/kickoffcfg
|
2016-05-19 00:46:08 +02:00
|
|
|
$(INSTALL_SCRIPT) bin/kde5-migrate-user-conf $(DESTDIR)$(bindir)/kde5-migrate-user-conf
|
2011-04-27 22:05:26 +02:00
|
|
|
|
|
|
|
install-srpms:
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(distrosrpmsdir)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfigdir)
|
|
|
|
:> $(DESTDIR)$(sysconfigdir)/$(SYSCONFIGFILE)
|
|
|
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfigdir)
|
|
|
|
for pck in $(pck_srpms); do\
|
|
|
|
rpmbuild -bs SRPMS/$$pck/$${pck}.spec \
|
|
|
|
--define="_sourcedir `pwd`/SRPMS/$$pck" \
|
|
|
|
--define="_srcrpmdir $(DESTDIR)$(distrosrpmsdir)" || exit 1;\
|
|
|
|
cat SRPMS/$$pck/$(pck_sysconfigfile) >> \
|
|
|
|
$(DESTDIR)$(sysconfigdir)/$(SYSCONFIGFILE);\
|
|
|
|
done
|
|
|
|
|
|
|
|
install-icons:
|
|
|
|
@for i in 16x16 22x22 32x32 48x48 64x64 128x128; do \
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(iconsdir)/$$i/apps/; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install: $(pck_infiles:.in=) \
|
2016-07-02 17:16:05 +02:00
|
|
|
install-kde-distro-addons
|
2011-04-27 22:05:26 +02:00
|
|
|
|
|
|
|
dist: clean
|
2011-08-08 00:50:32 +02:00
|
|
|
@git log > ChangeLog.git
|
2011-06-02 16:10:49 +02:00
|
|
|
@mkdir /tmp/$(distdir)
|
|
|
|
@cp -a * /tmp/$(distdir)/
|
2011-04-27 22:05:26 +02:00
|
|
|
@rm -f $(dist_archive);\
|
2011-06-02 16:10:49 +02:00
|
|
|
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
|
|
|
|
@rm -rf /tmp/$(distdir)
|
2011-04-27 22:05:26 +02:00
|
|
|
@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 $(patsubst %.in,%,$(pck_infiles))
|
2013-08-25 16:36:08 +02:00
|
|
|
rm -rf kde/wallpapers/openmamba_Circles/contents
|