add a few automake conditionals (dreambox, dm8000)
authorpieterg <pieterg@users.sourceforge.net>
Wed, 19 Jan 2011 23:52:40 +0000 (00:52 +0100)
committerpieterg <pieterg@users.sourceforge.net>
Wed, 19 Jan 2011 23:52:40 +0000 (00:52 +0100)
And avoid building/installing plugins for hardware which
does not support/need them.
Also, completely remove CrashlogAutosubmit and CleanupWizard.

configure.ac
lib/python/Plugins/SystemPlugins/Makefile.am

index eb13854..3aa22f5 100644 (file)
@@ -51,6 +51,8 @@ AC_ARG_WITH(boxtype,
        [BOXTYPE="$withval"],[BOXTYPE="dm800"])
 AC_SUBST(BOXTYPE)
 AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type])
+AM_CONDITIONAL(DREAMBOX, test `echo "$BOXTYPE" | cut -b 1-2` == "dm")
+AM_CONDITIONAL(DM8000, test "$BOXTYPE" == dm8000)
 
 AC_ARG_WITH(textlcd,
        AC_HELP_STRING([--with-textlcd], [use ascii based lcd, yes or no]),
index f6014d5..cf5090a 100755 (executable)
@@ -1,11 +1,18 @@
 installdir = $(pkglibdir)/python/Plugins/SystemPlugins
 
-SUBDIRS = SoftwareManager FrontprocessorUpgrade PositionerSetup Satfinder \
+SUBDIRS = SoftwareManager PositionerSetup Satfinder \
        SkinSelector SatelliteEquipmentControl Videomode VideoTune Hotplug \
-       DefaultServicesScanner NFIFlash DiseqcTester CommonInterfaceAssignment \
+       DefaultServicesScanner DiseqcTester CommonInterfaceAssignment \
        CableScan FastScan OSDPositionSetup OSD3DSetup \
-       CrashlogAutoSubmit CleanupWizard VideoEnhancement WirelessLan NetworkWizard \
-       TempFanControl
+       VideoEnhancement WirelessLan NetworkWizard
+
+if DM8000
+SUBDIRS += TempFanControl
+endif
+
+if DREAMBOX
+SUBDIRS += FrontprocessorUpgrade NFIFlash
+endif
 
 install_PYTHON =       \
        __init__.py