wmclock: Use defines to get language xpms instead of creating symlinks.

This commit is contained in:
Doug Torrance 2015-09-24 02:24:08 -04:00 committed by Carlos R. Mafra
parent 1332c07b8f
commit 81952635d5
2 changed files with 5 additions and 6 deletions

View file

@ -17,10 +17,9 @@ if test ! -d "${LangDir}"; then
AC_MSG_ERROR([Cannot find language directory '${LangDir}'.]) AC_MSG_ERROR([Cannot find language directory '${LangDir}'.])
fi fi
echo "configuring for ${with_lang} day-of-week and month names..." AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"])
rm -f month.xpm weekday.xpm AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"])
ln -s "./${LangDir}/month.xpm" . AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...])
ln -s "./${LangDir}/weekday.xpm" .
PKG_CHECK_MODULES([x11], [x11]) PKG_CHECK_MODULES([x11], [x11])
PKG_CHECK_MODULES([xpm], [xpm]) PKG_CHECK_MODULES([xpm], [xpm])

View file

@ -109,8 +109,8 @@
#ifndef ONLY_SHAPED_WINDOW #ifndef ONLY_SHAPED_WINDOW
# include "clk.xpm" # include "clk.xpm"
#endif /* !ONLY_SHAPED_WINDOW */ #endif /* !ONLY_SHAPED_WINDOW */
#include "month.xpm" #include MONTH_XPM
#include "weekday.xpm" #include WEEKDAY_XPM
#include "xpm/date.xpm" #include "xpm/date.xpm"
#include "xpm/led.xpm" #include "xpm/led.xpm"
#include "xpm/mask.xbm" #include "xpm/mask.xbm"