Skip to content
Browse files

update build scripts

  • Loading branch information...
1 parent cbd19ce commit 97d377b675d322849eb54e511819ad3e78596b99 @mtdcr mtdcr committed Nov 29, 2010
Showing with 1,218 additions and 3,313 deletions.
  1. +7 −7 Makefile.am
  2. +44 −0 Rules-po.mak
  3. +1 −1 ac3lipsync/img/Makefile.am
  4. +3 −56 ac3lipsync/po/Makefile.am
  5. +1 −1 ac3lipsync/src/Makefile.am
  6. +0 −486 acinclude.m4
  7. +1 −1 aihdcontrol/src/Makefile.am
  8. +1 −1 aihdcontrol/src/comp/Makefile.am
  9. +1 −1 aihdcontrol/src/data/Makefile.am
  10. +1 −1 antiscrollbar/src/Makefile.am
  11. +1 −1 ardmediathek/src/Makefile.am
  12. +4 −57 automatictimerlistcleanup/po/Makefile.am
  13. +1 −1 automatictimerlistcleanup/src/Makefile.am
  14. +1 −1 automaticvolumeadjustment/src/Makefile.am
  15. +1 −1 autoresolution/src/Makefile.am
  16. +1 −1 autotimer/etc/Makefile.am
  17. +3 −60 autotimer/po/Makefile.am
  18. +6 −6 autotimer/src/Makefile.am
  19. +1 −1 autotimer/src/webinterface/Makefile.am
  20. +1 −1 babelzapper/etc/Makefile.am
  21. +1 −1 babelzapper/src/Makefile.am
  22. +6 −3 bitrateviewer/src/Makefile.am
  23. +10 −8 bitrateviewer/src/bitratecalc/Makefile.am
  24. +0 −1 bitrateviewer/src/bitratecalc/bitratecalc.cpp
  25. +1 −1 bonjour/src/Makefile.am
  26. +1 −1 cdinfo/src/Makefile.am
  27. +51 −22 configure.ac
  28. +1 −1 dreamirc/src/Makefile.am
  29. +1 −1 dreamirc/src/protocols/Makefile.am
  30. +3 −57 dvdbackup/po/Makefile.am
  31. +1 −1 dvdbackup/src/Makefile.am
  32. +1 −1 dyndns/Makefile.am
  33. +5 −5 dyndns/src/Makefile.am
  34. +1 −4 easymedia/src/Makefile.am
  35. +3 −57 eibox/po/Makefile.am
  36. +5 −5 eibox/src/Makefile.am
  37. +1 −1 eibox/src/images/Makefile.am
  38. +1 −1 elektro/Makefile.am
  39. +3 −57 elektro/po/Makefile.am
  40. +4 −4 elektro/src/Makefile.am
  41. +1 −1 emailclient/Makefile.am
  42. +3 −57 emailclient/po/Makefile.am
  43. +1 −1 emailclient/src/Makefile.am
  44. +1 −1 epgrefresh/Makefile.am
  45. +1 −1 epgrefresh/etc/Makefile.am
  46. +3 −57 epgrefresh/po/Makefile.am
  47. +6 −6 epgrefresh/src/Makefile.am
  48. +1 −1 epgrefresh/src/webinterface/Makefile.am
  49. +1 −1 epgsearch/Makefile.am
  50. +3 −57 epgsearch/po/Makefile.am
  51. +4 −4 epgsearch/src/Makefile.am
  52. +1 −1 filebrowser/Makefile.am
  53. +4 −4 filebrowser/src/Makefile.am
  54. +3 −57 fritzcall/po/Makefile.am
  55. +1 −1 fritzcall/src/Makefile.am
  56. +1 −1 fritzcall/src/images/Makefile.am
  57. +1 −1 ftpbrowser/Makefile.am
  58. +3 −57 ftpbrowser/po/Makefile.am
  59. +5 −5 ftpbrowser/src/Makefile.am
  60. +1 −1 ftpbrowser/src/images/Makefile.am
  61. +1 −1 genuinedreambox/Makefile.am
  62. +1 −1 genuinedreambox/src/Makefile.am
  63. +5 −5 googlemaps/src/Makefile.am
  64. +1 −1 growlee/Makefile.am
  65. +4 −4 growlee/src/Makefile.am
  66. +1 −1 httpproxy/src/Makefile.am
  67. +3 −57 imdb/po/Makefile.am
  68. +4 −4 imdb/src/Makefile.am
  69. +1 −1 kiddytimer/img/Makefile.am
  70. +3 −57 kiddytimer/po/Makefile.am
  71. +1 −1 kiddytimer/src/Makefile.am
  72. +1 −1 lastfm/Makefile.am
  73. +1 −1 lastfm/src/Makefile.am
  74. +1 −1 letterbox/src/Makefile.am
  75. +1 −1 logomanager/src/Makefile.am
  76. +283 −0 m4/ax_pthread.m4
  77. +325 −0 m4/ax_python_devel.m4
  78. +36 −0 m4/tuxbox.m4
  79. +1 −1 mediadownloader/Makefile.am
  80. +3 −57 mediadownloader/po/Makefile.am
  81. +4 −4 mediadownloader/src/Makefile.am
  82. +1 −1 merlinepg/src/Makefile.am
  83. +7 −3 merlinmusicplayer/src/Makefile.am
  84. +1 −1 merlinmusicplayer/src/images/Makefile.am
  85. +10 −10 merlinmusicplayer/src/merlinmp3player/Makefile.am
  86. +0 −1 merlinmusicplayer/src/merlinmp3player/merlinmp3player.cpp
  87. +1 −1 meteoitalia/src/Makefile.am
  88. +1 −1 mosaic/Makefile.am
  89. +3 −57 mosaic/po/Makefile.am
  90. +1 −1 mosaic/src/Makefile.am
  91. +2 −4 moviecut/src_cc/Makefile.am
  92. +1 −1 moviecut/src_py/Makefile.am
  93. +3 −57 movielistpreview/po/Makefile.am
  94. +1 −1 movielistpreview/src/Makefile.am
  95. +3 −57 movieretitle/po/Makefile.am
  96. +1 −1 movieretitle/src/Makefile.am
  97. +3 −57 movieselectionquickbutton/po/Makefile.am
  98. +1 −1 movieselectionquickbutton/src/Makefile.am
  99. +1 −1 movietagger/etc/Makefile.am
  100. +1 −1 movietagger/src/Makefile.am
  101. +1 −1 multirc/src/Makefile.am
  102. +3 −53 mytube/po/Makefile.am
  103. +5 −6 mytube/src/Makefile.am
  104. +3 −57 ncidclient/po/Makefile.am
  105. +1 −1 ncidclient/src/Makefile.am
  106. +1 −1 netcaster/src/bin/Makefile.am
  107. +1 −1 netcaster/src/bin/interface/Makefile.am
  108. +4 −51 networkbrowser/po/Makefile.am
  109. +1 −1 networkbrowser/src/Makefile.am
  110. +1 −1 networkbrowser/src/icons/Makefile.am
  111. +21 −20 networkbrowser/src/lib/Makefile.am
  112. +0 −1 networkbrowser/src/lib/main.c
  113. +1 −1 networkbrowser/src/lib/nbtscan.h
  114. 0 networkbrowser/src/lib/{time.h → time_compat.h}
  115. +1 −1 networkwizard/Makefile.am
  116. +4 −53 networkwizard/po/Makefile.am
  117. +10 −11 networkwizard/src/Makefile.am
  118. +3 −57 ofdb/po/Makefile.am
  119. +4 −4 ofdb/src/Makefile.am
  120. +1 −1 orfat/Makefile.am
  121. +1 −1 orfat/src/Makefile.am
  122. +1 −1 orfteletext/src/Makefile.am
  123. +3 −57 partnerbox/po/Makefile.am
  124. +13 −3 partnerbox/src/Makefile.am
  125. +1 −1 partnerbox/src/icons/Makefile.am
  126. +7 −9 partnerbox/src/servicewebts/Makefile.am
  127. +0 −1 partnerbox/src/servicewebts/servicewebts.cpp
  128. +1 −1 passwordchanger/Makefile.am
  129. +3 −57 passwordchanger/po/Makefile.am
  130. +1 −1 passwordchanger/src/Makefile.am
  131. +3 −57 permanentclock/po/Makefile.am
  132. +1 −1 permanentclock/src/Makefile.am
  133. +1 −1 podcast/etc/Makefile.am
  134. +3 −57 podcast/po/Makefile.am
  135. +1 −1 podcast/src/Makefile.am
  136. +3 −57 porncenter/po/Makefile.am
  137. +1 −1 porncenter/src/Additions/Makefile.am
  138. +1 −1 porncenter/src/Makefile.am
  139. +3 −57 quickbutton/po/Makefile.am
  140. +1 −1 quickbutton/src/Makefile.am
  141. +2 −4 reconstructapsc/src_cc/Makefile.am
  142. +1 −1 reconstructapsc/src_py/Makefile.am
  143. +1 −1 remotetimer/Makefile.am
  144. +1 −1 remotetimer/src/Makefile.am
  145. +1 −1 rsdownloader/Makefile.am
  146. +3 −57 rsdownloader/po/Makefile.am
  147. +2 −2 rsdownloader/src/Makefile.am
  148. +4 −4 rsdownloader/src/container/Makefile.am
  149. +3 −57 seekbar/po/Makefile.am
  150. +1 −1 seekbar/src/Makefile.am
  151. +4 −51 setpasswd/po/Makefile.am
  152. +1 −1 setpasswd/src/Makefile.am
  153. +3 −57 shoutcast/po/Makefile.am
  154. +1 −1 shoutcast/src/Makefile.am
  155. +1 −1 simplerss/Makefile.am
  156. +3 −57 simplerss/po/Makefile.am
  157. +4 −4 simplerss/src/Makefile.am
  158. +4 −57 startupservice/po/Makefile.am
  159. +1 −1 startupservice/src/Makefile.am
  160. +1 −1 startuptostandby/src/Makefile.am
  161. +3 −57 tageditor/po/Makefile.am
  162. +1 −1 tageditor/src/Makefile.am
  163. +1 −1 trafficinfo/src/Makefile.am
  164. +1 −1 unwetterzentrale/src/Makefile.am
  165. +3 −57 virtualzap/po/Makefile.am
  166. +1 −1 virtualzap/src/Makefile.am
  167. +3 −50 vlcplayer/po/Makefile.am
  168. +17 −9 vlcplayer/src/Makefile.am
  169. BIN vlcplayer/src/servicets.so
  170. +7 −9 vlcplayer/src/servicets/Makefile.am
  171. +0 −1 vlcplayer/src/servicets/servicets.cpp
  172. +1 −1 vxdcontrol/src/Makefile.am
  173. +1 −1 vxdcontrol/src/comp/Makefile.am
  174. +1 −1 vxdcontrol/src/data/Makefile.am
  175. +3 −57 weatherplugin/po/Makefile.am
  176. +1 −1 weatherplugin/src/Makefile.am
  177. +1 −1 webcamviewer/src/Makefile.am
  178. +3 −57 webinterface/po/Makefile.am
  179. +1 −1 webinterface/src/Makefile.am
  180. +1 −1 webinterface/src/WebChilds/External/Makefile.am
  181. +1 −1 webinterface/src/WebChilds/Makefile.am
  182. +1 −1 webinterface/src/WebComponents/Converter/Makefile.am
  183. +1 −1 webinterface/src/WebComponents/Makefile.am
  184. +1 −1 webinterface/src/WebComponents/Sources/Makefile.am
  185. +1 −1 webinterface/src/etc/Makefile.am
  186. +1 −1 webinterface/src/mobile/Makefile.am
  187. +1 −1 webinterface/src/web-data/Makefile.am
  188. +1 −1 webinterface/src/web-data/gfx/Makefile.am
  189. +1 −1 webinterface/src/web-data/img/Makefile.am
  190. +1 −1 webinterface/src/web-data/lib/Makefile.am
  191. +1 −1 webinterface/src/web-data/tpl/Makefile.am
  192. +1 −1 webinterface/src/web-data/tpl/default/Makefile.am
  193. +1 −1 webinterface/src/web-data/tpl/default/streaminterface/Makefile.am
  194. +1 −1 webinterface/src/web-data/tpl/default/streaminterface/img/Makefile.am
  195. +1 −1 webinterface/src/web/Makefile.am
  196. +1 −1 werbezapper/Makefile.am
  197. +3 −57 werbezapper/po/Makefile.am
  198. +4 −4 werbezapper/src/Makefile.am
  199. +4 −51 wirelesslan/po/Makefile.am
  200. +1 −1 wirelesslan/src/Makefile.am
  201. +23 −20 xml2po.py
  202. +1 −1 youtubeplayer/src/Makefile.am
  203. +1 −1 youtubeplayer/src/Nemesis.GlassLine_Mod/Makefile.am
  204. +1 −1 zaphistorybrowser/Makefile.am
  205. +3 −57 zaphistorybrowser/po/Makefile.am
  206. +1 −1 zaphistorybrowser/src/Makefile.am
  207. +3 −57 zapstatistic/po/Makefile.am
  208. +1 −1 zapstatistic/src/Makefile.am
  209. +1 −1 zdfmediathek/src/Makefile.am
View
14 Makefile.am
@@ -1,4 +1,5 @@
-AUTOMAKE_OPTIONS = gnu
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = \
ac3lipsync \
aihdcontrol \
@@ -80,10 +81,9 @@ SUBDIRS = \
zapstatistic \
zdfmediathek
+metadir = $(datadir)/meta
+meta_DATA = index-enigma2-plugins.xml
+CLEANFILES = index-enigma2-plugins.xml
-install-exec-hook:
- $(PYTHON) $(srcdir)/genmetaindex.py $(DESTDIR)$(datadir)/meta/plugin_*.xml > $(DESTDIR)$(datadir)/meta/index-enigma2-plugins.xml
-
-uninstall-hook:
- $(RM) $(DESTDIR)$(datadir)/meta/index-enigma2-plugins.xml
-
+index-enigma2-plugins.xml: $(top_srcdir)/genmetaindex.py $(top_srcdir)/*/meta/plugin_*.xml
+ $(AM_V_GEN)$(PYTHON) $^ > $@
View
44 Rules-po.mak
@@ -0,0 +1,44 @@
+CATEGORY ?= "Extensions"
+
+plugindir = $(libdir)/enigma2/python/Plugins/$(CATEGORY)/$(PLUGIN)
+
+LANGMO = $(LANGS:=.mo)
+LANGPO = $(LANGS:=.po)
+
+if UPDATE_PO
+# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
+$(PLUGIN)-py.pot: $(srcdir)/../src/*.py
+ $(XGETTEXT) -L python --from-code=UTF-8 --add-comments="TRANSLATORS:" -d $(PLUGIN) -s -o $@ $^
+
+$(PLUGIN)-xml.pot: $(top_srcdir)/xml2po.py $(srcdir)/../src/*.xml
+ $(PYTHON) $^ > $@
+
+$(PLUGIN).pot: $(PLUGIN)-py.pot $(PLUGIN)-xml.pot
+ cat $^ | $(MSGUNIQ) --no-location -o $@ -
+
+%.po: $(PLUGIN).pot
+ if [ -f $@ ]; then \
+ $(MSGMERGE) --backup=none --no-location -s -N -U $@ $< && touch $@; \
+ else \
+ $(MSGINIT) -l $@ -o $@ -i $< --no-translator; \
+ fi
+endif
+
+.po.mo:
+ $(MSGFMT) -o $@ $<
+
+BUILT_SOURCES = $(LANGMO)
+CLEANFILES = $(LANGMO) $(PLUGIN)-py.pot $(PLUGIN)-xml.pot $(PLUGIN).pot
+
+dist-hook: $(LANGPO)
+
+install-data-local: $(LANGMO)
+ for lang in $(LANGS); do \
+ $(mkinstalldirs) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES; \
+ $(INSTALL_DATA) $$lang.mo $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \
+ done
+
+uninstall-local:
+ for lang in $(LANGS); do \
+ $(RM) $(DESTDIR)$(plugindir)/locale/$$lang/LC_MESSAGES/$(PLUGIN).mo; \
+ done
View
2 ac3lipsync/img/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/img
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AudioSync/img
install_DATA = *.png
View
59 ac3lipsync/po/Makefile.am
@@ -1,57 +1,4 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
+PLUGIN = AudioSync
+LANGS = de fi it nl sr sv tr
-DOMAIN=AudioSync
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de fi it nl sr tr sv
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
-
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+include $(top_srcdir)/Rules-po.mak
View
2 ac3lipsync/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AudioSync
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AudioSync
install_PYTHON = *.py
install_DATA = AudioSync.png LICENSE maintainer.info keymap.xml
View
486 acinclude.m4
@@ -1,486 +0,0 @@
-AC_DEFUN([TUXBOX_APPS],[
-
-INSTALL="$INSTALL -p"
-
-AC_GNU_SOURCE
-AC_SYS_LARGEFILE
-
-AC_ARG_WITH(target,
- [ --with-target=TARGET target for compilation [[native,cdk]]],
- [TARGET="$withval"],[TARGET="native"])
-
-AC_ARG_WITH(targetprefix,
- [ --with-targetprefix=PATH prefix relative to target root (only applicable in cdk mode)],
- [targetprefix="$withval"],[targetprefix="NONE"])
-
-AC_ARG_WITH(debug,
- [ --without-debug disable debugging code],
- [DEBUG="$withval"],[DEBUG="yes"])
-
-if test "$DEBUG" = "yes"; then
- DEBUG_CFLAGS="-g3 -ggdb"
- AC_DEFINE(DEBUG,1,[Enable debug messages])
-fi
-
-AC_MSG_CHECKING(target)
-
-if test "$TARGET" = "native"; then
- AC_MSG_RESULT(native)
-
- if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
- CFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
- CXXFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
- fi
- if test "$prefix" = "NONE"; then
- prefix=/usr/local
- fi
- targetprefix=$prefix
-elif test "$TARGET" = "cdk"; then
- AC_MSG_RESULT(cdk)
-
- if test "$CC" = "" -a "$CXX" = ""; then
- CC=powerpc-tuxbox-linux-gnu-gcc CXX=powerpc-tuxbox-linux-gnu-g++
- fi
- if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
- CFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
- CXXFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
- fi
- if test "$prefix" = "NONE"; then
- AC_MSG_ERROR(invalid prefix, you need to specify one in cdk mode)
- fi
- if test "$targetprefix" = "NONE"; then
- targetprefix=""
- fi
- if test "$host_alias" = ""; then
- cross_compiling=yes
- host_alias=powerpc-tuxbox-linux-gnu
- fi
-else
- AC_MSG_RESULT(none)
- AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]);
-fi
-
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-
-check_path () {
- return $(perl -e "if(\"$1\"=~m#^/usr/(local/)?bin#){print \"0\"}else{print \"1\";}")
-}
-
-])
-
-AC_DEFUN([TUXBOX_APPS_DIRECTORY_ONE],[
-AC_ARG_WITH($1,[ $6$7 [[PREFIX$4$5]]],[
- _$2=$withval
- if test "$TARGET" = "cdk"; then
- $2=`eval echo "${targetprefix}$withval"`
- else
- $2=$withval
- fi
-],[
- $2="\${$3}$5"
- if test "$TARGET" = "cdk"; then
- _$2=`eval echo "${target$3}$5"`
- else
- _$2=`eval echo "${$3}$5"`
- fi
-])
-
-dnl automake <= 1.6 don't support this
-dnl AC_SUBST($2)
-AC_DEFINE_UNQUOTED($2,"$_$2",$7)
-])
-
-AC_DEFUN([TUXBOX_APPS_DIRECTORY],[
-AC_REQUIRE([TUXBOX_APPS])
-
-if test "$TARGET" = "cdk"; then
- datadir="\${prefix}/share"
- tuxboxdatadir="\${prefix}/share/tuxbox"
- zoneinfodir="\${datadir}/zoneinfo"
- sysconfdir="\${prefix}/etc"
- localstatedir="\${prefix}/var"
- localedir="\${prefix}/var"
- libdir="\${prefix}/lib"
- targetdatadir="\${targetprefix}/share"
- targetsysconfdir="\${targetprefix}/etc"
- targetlocalstatedir="\${targetprefix}/var"
- targetlibdir="\${targetprefix}/lib"
-fi
-
-TUXBOX_APPS_DIRECTORY_ONE(configdir,CONFIGDIR,sysconfdir,/etc,,
- [--with-configdir=PATH ],[where to find the config files])
-
-TUXBOX_APPS_DIRECTORY_ONE(datadir,DATADIR,datadir,/share,,
- [--with-datadir=PATH ],[where to find data])
-
-TUXBOX_APPS_DIRECTORY_ONE(localedir,LOCALEDIR,datadir,/share,/locale,
- [--with-localedir=PATH ],[where to find locales])
-
-TUXBOX_APPS_DIRECTORY_ONE(fontdir,FONTDIR,datadir,/share,/fonts,
- [--with-fontdir=PATH ],[where to find the fonts])
-
-TUXBOX_APPS_DIRECTORY_ONE(gamesdir,GAMESDIR,localstatedir,/var,/tuxbox/games,
- [--with-gamesdir=PATH ],[where games data is stored])
-
-TUXBOX_APPS_DIRECTORY_ONE(libdir,LIBDIR,libdir,/lib,,
- [--with-libdir=PATH ],[where to find the internal libs])
-
-TUXBOX_APPS_DIRECTORY_ONE(plugindir,PLUGINDIR,libdir,/lib,/tuxbox/plugins,
- [--with-plugindir=PATH ],[where to find the plugins])
-
-TUXBOX_APPS_DIRECTORY_ONE(tuxboxdatadir,TUXBOXDATADIR,datadir,/share,,
- [--with-tuxboxdatadir=PATH],[where to find tuxbox data])
-
-TUXBOX_APPS_DIRECTORY_ONE(zoneinfodir,ZONEINFODIR,datadir,/share,/zoneinfo,
- [--with-zoneinfodir=PATH ],[where to find zoneinfo db])
-])
-
-dnl automake <= 1.6 needs this specifications
-AC_SUBST(CONFIGDIR)
-AC_SUBST(DATADIR)
-AC_SUBST(ZONEINFODIR)
-AC_SUBST(FONTDIR)
-AC_SUBST(GAMESDIR)
-AC_SUBST(LIBDIR)
-AC_SUBST(LOCALEDIR)
-AC_SUBST(PLUGINDIR)
-AC_SUBST(TUXBOXDATADIR)
-dnl end workaround
-
-AC_DEFUN([TUXBOX_APPS_ENDIAN],[
-AC_CHECK_HEADERS(endian.h)
-AC_C_BIGENDIAN
-])
-
-AC_DEFUN([TUXBOX_APPS_DRIVER],[
-#AC_ARG_WITH(driver,
-# [ --with-driver=PATH path for driver sources [[NONE]]],
-# [DRIVER="$withval"],[DRIVER=""])
-#
-#if test -d "$DRIVER/include"; then
-# AC_DEFINE(HAVE_DBOX2_DRIVER,1,[Define to 1 if you have the dbox2 driver sources])
-#else
-# AC_MSG_ERROR([can't find driver sources])
-#fi
-
-#AC_SUBST(DRIVER)
-
-#CPPFLAGS="$CPPFLAGS -I$DRIVER/include"
-])
-
-AC_DEFUN([TUXBOX_APPS_DVB],[
-AC_ARG_WITH(dvbincludes,
- [ --with-dvbincludes=PATH path for dvb includes [[NONE]]],
- [DVBINCLUDES="$withval"],[DVBINCLUDES=""])
-
-if test "$DVBINCLUDES"; then
- CPPFLAGS="$CPPFLAGS -I$DVBINCLUDES"
-fi
-
-AC_CHECK_HEADERS(ost/dmx.h,[
- DVB_API_VERSION=1
- AC_MSG_NOTICE([found dvb version 1])
-])
-
-if test -z "$DVB_API_VERSION"; then
-AC_CHECK_HEADERS(linux/dvb/version.h,[
- AC_LANG_PREPROC_REQUIRE()
- AC_REQUIRE([AC_PROG_EGREP])
- AC_LANG_CONFTEST([AC_LANG_SOURCE([[
-#include <linux/dvb/version.h>
-version DVB_API_VERSION
- ]])])
- DVB_API_VERSION=`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | $EGREP "^version" | sed "s,version\ ,,"`
- rm -f conftest*
-
- AC_MSG_NOTICE([found dvb version $DVB_API_VERSION])
-])
-fi
-
-if test "$DVB_API_VERSION"; then
- AC_DEFINE(HAVE_DVB,1,[Define to 1 if you have the dvb includes])
- AC_DEFINE_UNQUOTED(HAVE_DVB_API_VERSION,$DVB_API_VERSION,[Define to the version of the dvb api])
-else
- AC_MSG_ERROR([can't find dvb headers])
-fi
-])
-
-AC_DEFUN([_TUXBOX_APPS_LIB_CONFIG],[
-AC_PATH_PROG($1_CONFIG,$2,no)
-if test "$$1_CONFIG" != "no"; then
- if test "$TARGET" = "cdk" && check_path "$$1_CONFIG"; then
- AC_MSG_$3([could not find a suitable version of $2]);
- else
- $1_CFLAGS=$($$1_CONFIG --cflags)
- $1_LIBS=$($$1_CONFIG --libs)
- fi
-fi
-
-AC_SUBST($1_CFLAGS)
-AC_SUBST($1_LIBS)
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_CONFIG],[
-_TUXBOX_APPS_LIB_CONFIG($1,$2,ERROR)
-if test "$$1_CONFIG" = "no"; then
- AC_MSG_ERROR([could not find $2]);
-fi
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_CHECK],[
-_TUXBOX_APPS_LIB_CONFIG($1,$2,WARN)
-])
-
-AC_DEFUN([TUXBOX_APPS_PKGCONFIG],[
-AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
-if test "$PKG_CONFIG" = "no" ; then
- AC_MSG_ERROR([could not find pkg-config]);
-fi
-])
-
-AC_DEFUN([_TUXBOX_APPS_LIB_PKGCONFIG],[
-PKG_CHECK_MODULES($1,$2)
-AC_SUBST($1_CFLAGS)
-AC_SUBST($1_LIBS)
-])
-
-AC_DEFUN([_TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL],[
-PKG_CHECK_MODULES($1,$2,$3="yes",$3="no")
-if test "$$3" = "yes"; then
- AC_DEFINE($3, 1, [$2 available])
-else
- $1_CFLAGS=""
- $1_LIBS=""
-fi
-AC_SUBST($1_CFLAGS)
-AC_SUBST($1_LIBS)
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG],[
-_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
-if test -z "$$1_CFLAGS" ; then
- AC_MSG_ERROR([could not find package $2]);
-fi
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG_CHECK],[
-_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
-])
-
-AC_DEFUN([_TUXBOX_APPS_LIB_SYMBOL],[
-AC_CHECK_LIB($2,$3,HAVE_$1="yes",HAVE_$1="no")
-if test "$HAVE_$1" = "yes"; then
- $1_LIBS=-l$2
-fi
-
-AC_SUBST($1_LIBS)
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_SYMBOL],[
-_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,ERROR)
-if test "$HAVE_$1" = "no"; then
- AC_MSG_ERROR([could not find $2]);
-fi
-])
-
-AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_SYMBOL],[
-_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,WARN)
-])
-
-AC_DEFUN([TUXBOX_APPS_GETTEXT],[
-AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
- (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
- :)
-AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
-
-AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [$ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
- (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
- :)
-
-AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,[$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1],:)
-
-AC_MSG_CHECKING([whether NLS is requested])
-AC_ARG_ENABLE(nls,
- [ --disable-nls do not use Native Language Support],
- USE_NLS=$enableval, USE_NLS=yes)
-AC_MSG_RESULT($USE_NLS)
-AC_SUBST(USE_NLS)
-
-if test "$USE_NLS" = "yes"; then
- AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,[
- AC_TRY_LINK([
- #include <libintl.h>
- #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
- #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
- #endif
- extern int _nl_msg_cat_cntr;
- extern int *_nl_domain_bindings;
- ],[
- bindtextdomain ("", "");
- return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings;
- ], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no
- )]
- )
-
- if test "$gt_cv_func_gnugettext_libc" = "yes"; then
- AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.])
- gt_use_preinstalled_gnugettext=yes
- else
- USE_NLS=no
- fi
-fi
-
-if test -f "$srcdir/po/LINGUAS"; then
- ALL_LINGUAS=$(sed -e "/^#/d" "$srcdir/po/LINGUAS")
-fi
-
-POFILES=
-GMOFILES=
-UPDATEPOFILES=
-DUMMYPOFILES=
-for lang in $ALL_LINGUAS; do
- POFILES="$POFILES $srcdirpre$lang.po"
- GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
- UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
- DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
-done
-INST_LINGUAS=
-if test -n "$ALL_LINGUAS"; then
- for presentlang in $ALL_LINGUAS; do
- useit=no
- if test -n "$LINGUAS"; then
- desiredlanguages="$LINGUAS"
- else
- desiredlanguages="$ALL_LINGUAS"
- fi
- for desiredlang in $desiredlanguages; do
- case "$desiredlang" in
- "$presentlang"*) useit=yes;;
- esac
- done
- if test $useit = yes; then
- INST_LINGUAS="$INST_LINGUAS $presentlang"
- fi
- done
-fi
-CATALOGS=
-if test -n "$INST_LINGUAS"; then
- for lang in $INST_LINGUAS; do
- CATALOGS="$CATALOGS $lang.gmo"
- done
-fi
-AC_SUBST(POFILES)
-AC_SUBST(GMOFILES)
-AC_SUBST(UPDATEPOFILES)
-AC_SUBST(DUMMYPOFILES)
-AC_SUBST(CATALOGS)
-])
-
-dnl backward compatiblity
-AC_DEFUN([AC_GNU_SOURCE],
-[AH_VERBATIM([_GNU_SOURCE],
-[/* Enable GNU extensions on systems that have them. */
-#ifndef _GNU_SOURCE
-# undef _GNU_SOURCE
-#endif])dnl
-AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
-AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
-AC_DEFINE([_GNU_SOURCE])
-])
-
-AC_DEFUN([AC_PROG_EGREP],
-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi])
- EGREP=$ac_cv_prog_egrep
- AC_SUBST([EGREP])
-])
-
-AC_DEFUN([AC_PYTHON_DEVEL],[
- #
- # should allow for checking of python version here...
- #
- if test $cross_compiling = "yes"; then
- # Check for Python include path
- AC_MSG_CHECKING([for Python include path])
-
- # FIXME: yes, this is wrong. sorry about that. (tmbinc)
- cross_PYTHON_VERSION=$PYTHON_VERSION
- python_path=
- for i in $CPPFLAGS ; do
- p=`echo $i | sed "s,^-I,,"`
- p=`echo $p | sed "s,^-isystem,,"`
- if test -f "$p/python$cross_PYTHON_VERSION/Python.h"; then
- python_path="$p/python$cross_PYTHON_VERSION"
- break
- fi
- done
- AC_MSG_RESULT([$python_path])
- if test -z "$python_path" ; then
- AC_MSG_ERROR([cannot find Python include path])
- fi
- AC_SUBST([PYTHON_CPPFLAGS],[-I$python_path])
-
- # Check for Python library path
- AC_MSG_CHECKING([for Python library path])
- python_path=
- for i in $LDFLAGS; do
- l=`echo $i | sed "s,^-L,,"`
- python_path=`find $l -type f -name libpython$cross_PYTHON_VERSION.* -print | sed "1q"`
- if test -n "$python_path" ; then
- break
- fi
- done
- python_path=`echo $python_path | sed "s,/libpython.*$,,"`
- AC_MSG_RESULT([$python_path])
- if test -z "$python_path" ; then
- AC_MSG_ERROR([cannot find Python library path])
- fi
- AC_SUBST([PYTHON_LDFLAGS],["-L$python_path -lpython$cross_PYTHON_VERSION"])
- #
- python_site=`echo $python_path | sed "s/config/site-packages/"`
- AC_SUBST([PYTHON_SITE_PKG],[$python_site])
- else
- AC_REQUIRE([AM_PATH_PYTHON])
-
- # Check for Python include path
- AC_MSG_CHECKING([for Python include path])
- python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
- for i in "$python_path/include/python$PYTHON_VERSION/" "$python_path/include/python/" "$python_path/" ; do
- python_path=`find $i -type f -name Python.h -print | sed "1q"`
- if test -n "$python_path" ; then
- break
- fi
- done
- python_path=`echo $python_path | sed "s,/Python.h$,,"`
- AC_MSG_RESULT([$python_path])
- if test -z "$python_path" ; then
- AC_MSG_ERROR([cannot find Python include path])
- fi
- AC_SUBST([PYTHON_CPPFLAGS],[-I$python_path])
-
- # Check for Python library path
- AC_MSG_CHECKING([for Python library path])
- python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
- for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
- python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
- if test -n "$python_path" ; then
- break
- fi
- done
- python_path=`echo $python_path | sed "s,/libpython.*$,,"`
- AC_MSG_RESULT([$python_path])
- if test -z "$python_path" ; then
- AC_MSG_ERROR([cannot find Python library path])
- fi
- AC_SUBST([PYTHON_LDFLAGS],["-L$python_path -lpython$PYTHON_VERSION"])
- #
- python_site=`echo $python_path | sed "s/config/site-packages/"`
- AC_SUBST([PYTHON_SITE_PKG],[$python_site])
- fi
-])
View
2 aihdcontrol/src/Makefile.am
@@ -1,5 +1,5 @@
SUBDIRS = comp data
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AiHDcontroler
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AiHDcontroler
install_PYTHON = *.py
View
2 aihdcontrol/src/comp/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AiHDcontroler/comp
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AiHDcontroler/comp
install_DATA = *.gz *.py
View
2 aihdcontrol/src/data/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AiHDcontroler/data
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AiHDcontroler/data
install_DATA = *.xml
View
2 antiscrollbar/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AntiScrollbar
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AntiScrollbar
install_PYTHON = __init__.py plugin.py
install_DATA = plugin.png LICENSE maintainer.info
View
2 ardmediathek/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/ARDMediathek
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/ARDMediathek
install_PYTHON = *.py
install_DATA = *.png keymap.xml maintainer.info
View
61 automatictimerlistcleanup/po/Makefile.am
@@ -1,57 +1,4 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=AutomaticTimerlistCleanup
-installdir = /usr/lib/enigma2/python/Plugins/SystemPlugins/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = AutomaticTimerlistCleanup
+CATEGORY = SystemPlugins
+LANGS = de it
+include $(top_srcdir)/Rules-po.mak
View
2 automatictimerlistcleanup/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/SystemPlugins/AutomaticTimerlistCleanup
+installdir = $(libdir)/enigma2/python/Plugins/SystemPlugins/AutomaticTimerlistCleanup
install_PYTHON = *.py
View
2 automaticvolumeadjustment/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/SystemPlugins/AutomaticVolumeAdjustment
+installdir = $(libdir)/enigma2/python/Plugins/SystemPlugins/AutomaticVolumeAdjustment
install_PYTHON = *.py
View
2 autoresolution/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoResolution
+installdir = $(libdir)/enigma2/python/Plugins/SystemPlugins/AutoResolution
install_PYTHON = *.py
install_DATA = maintainer.info
View
2 autotimer/etc/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /etc/enigma2
+installdir = $(sysconfdir)/enigma2
install_DATA = autotimer.xml
View
63 autotimer/po/Makefile.am
@@ -1,60 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=AutoTimer
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de es fy it nl sr tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
-
- ../../xml2po.py ../src/ >> $(DOMAIN).pot
-
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = AutoTimer
+LANGS = de es fy it nl sr tr
+include $(top_srcdir)/Rules-po.mak
View
12 autotimer/src/Makefile.am
@@ -1,6 +1,6 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/AutoTimer
-
-SUBDIRS = webinterface
-
-install_PYTHON = *.py
-install_DATA = plugin.png autotimerwizard.xml maintainer.info LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/AutoTimer
+
+SUBDIRS = webinterface
+
+install_PYTHON = *.py
+install_DATA = plugin.png autotimerwizard.xml maintainer.info LICENSE
View
2 autotimer/src/webinterface/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/WebChilds/External/
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/WebInterface/WebChilds/External/
install_PYTHON = *.py
View
2 babelzapper/etc/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /etc/babelzapper
+installdir = /etc/babelzapper
install_DATA = \
babelzapper.zbb \
colormenu.zbb \
View
2 babelzapper/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/BabelZapper
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/BabelZapper
install_PYTHON = __init__.py plugin.py
install_DATA = babel.png babelzapper.png maintainer.info readme.txt
View
9 bitrateviewer/src/Makefile.am
@@ -1,7 +1,10 @@
SUBDIRS = bitratecalc
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/BitrateViewer
+plugindir = $(libdir)/enigma2/python/Plugins/Extensions/BitrateViewer
-install_PYTHON = *.py bitratecalc/bitratecalc.so
+plugin_PYTHON = \
+ __init__.py \
+ plugin.py
-install_DATA = maintainer.info
+plugin_DATA = \
+ maintainer.info
View
18 bitrateviewer/src/bitratecalc/Makefile.am
@@ -1,13 +1,15 @@
-OBJS := bitratecalc.cpp
+AM_CXXFLAGS = @LIBCRYPTO_CFLAGS@
--include $(OBJS:.cpp=.d)
+plugindir = $(libdir)/enigma2/python/Plugins/Extensions/BitrateViewer
-bitratecalc.so:
- $(CXX) $(CPPFLAGS) -MD $(CXXFLAGS) $(ENIGMA2_CFLAGS) $(SIGC_CFLAGS) \
- $(PYTHON_CPPFLAGS) $(DEFS) -I. -Wall -W $(OBJS) -shared -fPIC -lcrypto \
- -Wl,-soname,bitratecalc.so -o bitratecalc.so $(LDFLAGS)
+plugin_LTLIBRARIES = bitratecalc.la
-all: bitratecalc.so
+bitratecalc_la_SOURCES = \
+ bitratecalc.cpp \
+ bitratecalc.h
-CLEANFILES = bitratecalc.so bitratecalc.d
+bitratecalc_la_LDFLAGS = \
+ -avoid-version -module
+bitratecalc_la_LIBADD = \
+ @LIBCRYPTO_LIBS@
View
1 bitrateviewer/src/bitratecalc/bitratecalc.cpp
@@ -20,7 +20,6 @@
# distributed other than under the conditions noted above.
*/
-#include <Python.h>
#include "bitratecalc.h"
#include <fcntl.h>
#include <lib/base/etpm.h>
View
2 bonjour/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/Bonjour
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/Bonjour
install_PYTHON = __init__.py plugin.py Bonjour.py
View
2 cdinfo/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/CDInfo
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/CDInfo
install_PYTHON = __init__.py plugin.py
install_DATA = plugin.png
View
73 configure.ac
@@ -1,30 +1,58 @@
-AC_INIT(enigma2-plugins, 1.0)
-AM_INIT_AUTOMAKE(enigma2-plugins, 1.0)
+AC_INIT([enigma2-plugins],[3.0.0],[enigma2-devel@lists.elitedvb.net])
+AM_INIT_AUTOMAKE([dist-bzip2 foreign no-define tar-pax])
+AC_CONFIG_HEADERS([enigma2-plugins-config.h])
+
+# Silent rules are available since 1.11, but older versions
+# are still in use. So don't use them unconditionally.
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
-AM_PATH_PYTHON()
AC_PROG_CC
AC_PROG_CXX
-AC_PROG_RANLIB
-AC_PYTHON_DEVEL
-
-AC_CHECK_HEADER(enigma2/lib/base/i18n.h,have_e2_includes="yes",have_e2_includes="no")
-if test x"${have_e2_includes}" = "xyes"; then
- TUXBOX_APPS
- TUXBOX_APPS_DIRECTORY
- TUXBOX_APPS_DVB
- TUXBOX_APPS_LIB_PKGCONFIG(ENIGMA2,enigma2)
- TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
- _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
- _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMERPBUTILS,gstreamer-pbutils,HAVE_GSTSTREAMERPBUTILS)
- AC_DEFINE(HAVE_E2_INCLUDES, 1,[Define if enigm2 includes are available])
- CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
- LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS"
-else
- AC_MSG_NOTICE([enigma2 headers not found.. dont build servicets.so])
+m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
+AC_CONFIG_MACRO_DIR([m4])
+
+AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt))
+
+AM_PATH_PYTHON
+AX_PYTHON_DEVEL
+AX_PTHREAD
+
+TUXBOX_APPS_DVB
+
+PKG_CHECK_MODULES(ENIGMA2, enigma2)
+PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-pbutils-0.10)
+PKG_CHECK_MODULES(LIBCRYPTO, libcrypto)
+
+AC_ARG_WITH(debug,
+ AS_HELP_STRING([--without-debug],[disable debugging code]),
+ [with_debug="$withval"],[with_debug="yes"])
+if test "$with_debug" = "yes"; then
+ DEBUG_CFLAGS="-ggdb3"
+ AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code])
fi
-AM_CONDITIONAL(HAVE_E2_INCLUDES, test "$have_e2_includes" = "yes")
-AC_OUTPUT([
+AC_ARG_WITH(po,
+ AS_HELP_STRING([--with-po],[enable updating of po files]),
+ [with_po="$withval"],[with_po="no"])
+if test "$with_po" = "yes"; then
+ AC_PATH_PROG(MSGINIT, msginit)
+ AC_PATH_PROG(MSGMERGE, msgmerge)
+ AC_PATH_PROG(MSGUNIQ, msguniq)
+ AC_PATH_PROG(XGETTEXT, xgettext)
+ if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
+ AC_MSG_ERROR([Could not find required gettext tools])
+ fi
+fi
+AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
+
+CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS -include Python.h -include enigma2-plugins-config.h"
+CFLAGS="$CFLAGS $DEBUG_CFLAGS -Wall"
+CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS -Wall $ENIGMA2_CFLAGS $PTHREAD_CFLAGS"
+
+AC_CONFIG_FILES([
Makefile
ac3lipsync/Makefile
@@ -434,3 +462,4 @@ zdfmediathek/meta/Makefile
zdfmediathek/src/Makefile
])
+AC_OUTPUT
View
2 dreamirc/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/dreamIRC
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/dreamIRC
install_PYTHON = *.py
View
2 dreamirc/src/protocols/Makefile.am
@@ -1,4 +1,4 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/dreamIRC/protocols
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/dreamIRC/protocols
install_PYTHON = *.py
View
60 dvdbackup/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=DVDBackup
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = DVDBackup
+LANGS = de it
+include $(top_srcdir)/Rules-po.mak
View
2 dvdbackup/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/DVDBackup
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/DVDBackup
install_PYTHON = __init__.py plugin.py
install_DATA = DVDBackup.png maintainer.info
View
2 dyndns/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src meta
+SUBDIRS = src meta
View
10 dyndns/src/Makefile.am
@@ -1,5 +1,5 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/DynDNS
-
-install_PYTHON = __init__.py plugin.py
-
-install_DATA = icon.png LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/DynDNS
+
+install_PYTHON = __init__.py plugin.py
+
+install_DATA = icon.png LICENSE
View
5 easymedia/src/Makefile.am
@@ -1,6 +1,3 @@
-#removed until the locale generation is fixed.. the Makefile is very strange!
-#SUBDIRS = locale
-
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EasyMedia
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EasyMedia
install_PYTHON = *.py
install_DATA = maintainer.info *.png *.xml
View
60 eibox/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=EIBox
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = EIBox
+LANGS = de it
+include $(top_srcdir)/Rules-po.mak
View
10 eibox/src/Makefile.am
@@ -1,5 +1,5 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EIBox
-SUBDIRS = images
-
-install_PYTHON = __init__.py plugin.py
-install_DATA = design.sample.xml LICENSE maintainer.info README
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EIBox
+SUBDIRS = images
+
+install_PYTHON = __init__.py plugin.py
+install_DATA = design.sample.xml LICENSE maintainer.info README
View
2 eibox/src/images/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EIBox/images
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EIBox/images
install_DATA = *.png
View
2 elektro/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src po meta
+SUBDIRS = src po meta
View
60 elektro/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=Elektro
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) --from-code=utf-8 -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = Elektro
+LANGS = de it sr
+include $(top_srcdir)/Rules-po.mak
View
8 elektro/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/Elektro
-
-install_PYTHON = *.py
-install_DATA = readme.txt elektro.png PluginComponent.py.patch
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/Elektro
+
+install_PYTHON = *.py
+install_DATA = readme.txt elektro.png PluginComponent.py.patch
View
2 emailclient/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src po meta
+SUBDIRS = src po meta
View
60 emailclient/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=EmailClient
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sr sv es
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) --from-code=utf-8 -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = EmailClient
+LANGS = de it sr sv es
+include $(top_srcdir)/Rules-po.mak
View
2 emailclient/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EmailClient
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EmailClient
install_PYTHON = *.py
install_DATA = plugin.png LICENSE
View
2 epgrefresh/Makefile.am
@@ -1 +1 @@
-SUBDIRS = po src meta
+SUBDIRS = po src meta
View
2 epgrefresh/etc/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /etc/enigma2
+installdir = $(sysconfdir)/enigma2
install_DATA = epgrefresh.xml
View
60 epgrefresh/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=EPGRefresh
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de es fy it nl sr sv tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = EPGRefresh
+LANGS = de es fy it nl sr sv tr
+include $(top_srcdir)/Rules-po.mak
View
12 epgrefresh/src/Makefile.am
@@ -1,6 +1,6 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EPGRefresh
-
-SUBDIRS = webinterface
-
-install_PYTHON = *.py
-install_DATA = maintainer.info LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EPGRefresh
+
+SUBDIRS = webinterface
+
+install_PYTHON = *.py
+install_DATA = maintainer.info LICENSE
View
2 epgrefresh/src/webinterface/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/WebChilds/External/
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/WebInterface/WebChilds/External/
install_PYTHON = *.py
View
2 epgsearch/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src po meta
+SUBDIRS = src po meta
View
60 epgsearch/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=EPGSearch
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de es it nl sr tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = EPGSearch
+LANGS = de es it nl sr tr
+include $(top_srcdir)/Rules-po.mak
View
8 epgsearch/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/EPGSearch
-
-install_PYTHON = *.py
-install_DATA = maintainer.info LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/EPGSearch
+
+install_PYTHON = *.py
+install_DATA = maintainer.info LICENSE
View
2 filebrowser/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src meta
+SUBDIRS = src meta
View
8 filebrowser/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/Filebrowser
-
-install_PYTHON = __init__.py plugin.py
-install_DATA = maintainer.info LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/Filebrowser
+
+install_PYTHON = __init__.py plugin.py
+install_DATA = maintainer.info LICENSE
View
60 fritzcall/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=FritzCall
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it nl tr es sr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) --from-code=utf-8 -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = FritzCall
+LANGS = de it nl tr es sr
+include $(top_srcdir)/Rules-po.mak
View
2 fritzcall/src/Makefile.am
@@ -1,5 +1,5 @@
SUBDIRS = images
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/FritzCall
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/FritzCall
install_PYTHON = *.py
install_DATA = plugin.png reverselookup.xml LICENSE maintainer.info callbycall_world.xml avon.dat
View
2 fritzcall/src/images/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/FritzCall/images
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/FritzCall/images
install_DATA = *.png
View
2 ftpbrowser/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src po meta
+SUBDIRS = src po meta
View
60 ftpbrowser/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=FTPBrowser
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sr tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = FTPBrowser
+LANGS = de it sr tr
+include $(top_srcdir)/Rules-po.mak
View
10 ftpbrowser/src/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = images
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/FTPBrowser
-
-install_PYTHON = *.py
-install_DATA = plugin.png keymap.xml maintainer.info LICENSE
+SUBDIRS = images
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/FTPBrowser
+
+install_PYTHON = *.py
+install_DATA = plugin.png keymap.xml maintainer.info LICENSE
View
2 ftpbrowser/src/images/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/FTPBrowser/images
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/FTPBrowser/images
install_DATA = down.png up.png
View
2 genuinedreambox/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src meta
+SUBDIRS = src meta
View
2 genuinedreambox/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/GenuineDreambox
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/GenuineDreambox
install_PYTHON = *.py
View
10 googlemaps/src/Makefile.am
@@ -1,5 +1,5 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/GoogleMaps
-
-install_PYTHON = __init__.py plugin.py WebPixmap.py KMLlib.py globalmaptiles.py
-
-install_DATA = Racetracks.kml Sightseeing.kml 404.png 404_transparent.png plugin.png README LICENSE maintainer.info
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/GoogleMaps
+
+install_PYTHON = __init__.py plugin.py WebPixmap.py KMLlib.py globalmaptiles.py
+
+install_DATA = Racetracks.kml Sightseeing.kml 404.png 404_transparent.png plugin.png README LICENSE maintainer.info
View
2 growlee/Makefile.am
@@ -1 +1 @@
-SUBDIRS = src meta
+SUBDIRS = src meta
View
8 growlee/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/Growlee
-
-install_PYTHON = *.py
-install_DATA = maintainer.info LICENSE
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/Growlee
+
+install_PYTHON = *.py
+install_DATA = maintainer.info LICENSE
View
2 httpproxy/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/HTTPProxy
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/HTTPProxy
install_PYTHON = __init__.py plugin.py
install_DATA = maintainer.info LICENSE
View
60 imdb/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=IMDb
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sv tr sr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = IMDb
+LANGS = de it sv tr sr
+include $(top_srcdir)/Rules-po.mak
View
8 imdb/src/Makefile.am
@@ -1,4 +1,4 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/IMDb
-
-install_PYTHON = __init__.py plugin.py
-install_DATA = imdb.png no_poster.png starsbar_empty.png starsbar_filled.png
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/IMDb
+
+install_PYTHON = __init__.py plugin.py
+install_DATA = imdb.png no_poster.png starsbar_empty.png starsbar_filled.png
View
2 kiddytimer/img/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/KiddyTimer/img
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/KiddyTimer/img
install_DATA = *.png
View
60 kiddytimer/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=KiddyTimer
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sr tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
-
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = KiddyTimer
+LANGS = de it sr tr
+include $(top_srcdir)/Rules-po.mak
View
2 <