mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-05 04:06:31 -05:00
hdspmixer: move .desktop and icon files to desktop, use modern destination for icons
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
fc8858cae3
commit
962a07911c
7 changed files with 39 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -57,6 +57,7 @@ hdspmixer/Makefile
|
||||||
hdspmixer/configure
|
hdspmixer/configure
|
||||||
hdspmixer/src/hdspmixer
|
hdspmixer/src/hdspmixer
|
||||||
hdspmixer/pixmaps/Makefile
|
hdspmixer/pixmaps/Makefile
|
||||||
|
hdspmixer/desktop/Makefile
|
||||||
hdspmixer/src/Makefile
|
hdspmixer/src/Makefile
|
||||||
hdsploader/Makefile
|
hdsploader/Makefile
|
||||||
hdsploader/configure
|
hdsploader/configure
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
EXTRA_DIST = gitcompile hdspmixer.desktop depcomp
|
EXTRA_DIST = gitcompile depcomp
|
||||||
SUBDIRS = src pixmaps
|
SUBDIRS = src pixmaps desktop
|
||||||
|
|
||||||
desktopdir = $(DESKTOP_DIR)
|
|
||||||
desktop_DATA = hdspmixer.desktop
|
|
||||||
|
|
||||||
alsa-dist: distdir
|
alsa-dist: distdir
|
||||||
@rm -rf ../distdir/hdspmixer
|
@rm -rf ../distdir/hdspmixer
|
||||||
|
|
|
||||||
|
|
@ -9,25 +9,6 @@ AC_PATH_X
|
||||||
|
|
||||||
AM_PATH_ALSA(1.0.0)
|
AM_PATH_ALSA(1.0.0)
|
||||||
|
|
||||||
dnl desktop install
|
|
||||||
AC_ARG_WITH(desktop-dir,
|
|
||||||
[ --with-desktop-dir specify the path to install desktop file],
|
|
||||||
[desktopdir="$withval"], [desktopdir=""])
|
|
||||||
if test -z "$desktopdir"; then
|
|
||||||
desktopdir=$datadir/applications
|
|
||||||
fi
|
|
||||||
DESKTOP_DIR="$desktopdir"
|
|
||||||
AC_SUBST(DESKTOP_DIR)
|
|
||||||
|
|
||||||
AC_ARG_WITH(pixmap-dir,
|
|
||||||
[ --with-pixmap-dir specify the path to install desktop pixmap file],
|
|
||||||
[pixmapdir="$withval"], [pixmapdir=""])
|
|
||||||
if test -z "$pixmapdir"; then
|
|
||||||
pixmapdir=$datadir/pixmaps
|
|
||||||
fi
|
|
||||||
PIXMAP_DIR="$pixmapdir"
|
|
||||||
AC_SUBST(PIXMAP_DIR)
|
|
||||||
|
|
||||||
dnl library check
|
dnl library check
|
||||||
AC_PATH_PROG(FLTK_CONFIG, fltk-config, no)
|
AC_PATH_PROG(FLTK_CONFIG, fltk-config, no)
|
||||||
if test "$FLTK_CONFIG" = "no" && ! test "`hostname -f`" = "alsa.alsa-project.org"; then
|
if test "$FLTK_CONFIG" = "no" && ! test "`hostname -f`" = "alsa.alsa-project.org"; then
|
||||||
|
|
@ -39,4 +20,4 @@ FLTK_LIBS="`$FLTK_CONFIG --ldflags`"
|
||||||
CXXFLAGS="$CXXFLAGS $ALSA_CFLAGS $FLTK_CXXFLAGS"
|
CXXFLAGS="$CXXFLAGS $ALSA_CFLAGS $FLTK_CXXFLAGS"
|
||||||
LIBS="$LIBS $ALSA_LIBS $FLTK_LIBS"
|
LIBS="$LIBS $ALSA_LIBS $FLTK_LIBS"
|
||||||
|
|
||||||
AC_OUTPUT(Makefile src/Makefile pixmaps/Makefile)
|
AC_OUTPUT(Makefile src/Makefile pixmaps/Makefile desktop/Makefile)
|
||||||
|
|
|
||||||
34
hdspmixer/desktop/Makefile.am
Normal file
34
hdspmixer/desktop/Makefile.am
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
APPNAME = hdspmixer
|
||||||
|
|
||||||
|
desktopdir = $(datadir)/applications
|
||||||
|
desktop_DATA = $(APPNAME).desktop
|
||||||
|
|
||||||
|
public_icons = \
|
||||||
|
hicolor_apps_48x48_$(APPNAME).png
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
$(public_icons) \
|
||||||
|
$(desktop_DATA)
|
||||||
|
|
||||||
|
install-icons:
|
||||||
|
for icon in $(public_icons); do \
|
||||||
|
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||||
|
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||||
|
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||||
|
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||||
|
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-icons:
|
||||||
|
-for icon in $(public_icons); do \
|
||||||
|
THEME=`echo $$icon | cut -d_ -f1`; \
|
||||||
|
CONTEXT=`echo $$icon | cut -d_ -f2`; \
|
||||||
|
SIZE=`echo $$icon | cut -d_ -f3`; \
|
||||||
|
ICONFILE=`echo $$icon | cut -d_ -f4`; \
|
||||||
|
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
|
||||||
|
done
|
||||||
|
|
||||||
|
install-data-local: install-icons
|
||||||
|
|
||||||
|
uninstall-local: uninstall-icons
|
||||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
|
@ -1,4 +1,3 @@
|
||||||
pixmapdir = $(PIXMAP_DIR)
|
pixmapdir = $(PIXMAP_DIR)
|
||||||
pixmap_DATA = hdspmixer.png
|
|
||||||
|
|
||||||
EXTRA_DIST = $(wildcard *.xpm) hdspmixer.png
|
EXTRA_DIST = $(wildcard *.xpm)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue