diff --git a/acinclude.m4 b/acinclude.m4 index 42956bd07..3eadaaff4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -471,17 +471,29 @@ AC_ARG_WITH(boxtype, esac], [BOXTYPE="coolstream"]) AC_ARG_WITH(boxmodel, - [ --with-boxmodel valid for coolstream: nevis, apollo + [ --with-boxmodel valid for coolstream: hd1, hd2 valid for dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025 valid for ipbox: ip200, ip250, ip350, ip400], [case "${withval}" in - nevis|apollo) + hd1|hd2) if test "$BOXTYPE" = "coolstream"; then BOXMODEL="$withval" else AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) fi ;; + nevis|apollo) + if test "$BOXTYPE" = "coolstream"; then + if test "$withval" = "nevis"; then + BOXMODEL="hd1" + fi + if test "$withval" = "apollo"; then + BOXMODEL="hd2" + fi + else + AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) + fi + ;; dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025) if test "$BOXTYPE" = "dreambox"; then BOXMODEL="$withval" @@ -499,7 +511,7 @@ AC_ARG_WITH(boxmodel, *) AC_MSG_ERROR([unsupported value $withval for --with-boxmodel]) ;; - esac], [BOXMODEL="nevis"] + esac], [BOXMODEL="hd1"] [if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel]) fi]) @@ -514,8 +526,8 @@ AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox") AM_CONDITIONAL(BOXTYPE_COOL, test "$BOXTYPE" = "coolstream") AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic") -AM_CONDITIONAL(BOXMODEL_NEVIS,test "$BOXMODEL" = "nevis") -AM_CONDITIONAL(BOXMODEL_APOLLO,test "$BOXMODEL" = "apollo") +AM_CONDITIONAL(BOXMODEL_CS_HD1,test "$BOXMODEL" = "hd1") +AM_CONDITIONAL(BOXMODEL_CS_HD2,test "$BOXMODEL" = "hd2") AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500") AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus") @@ -543,10 +555,10 @@ elif test "$BOXTYPE" = "generic"; then fi # TODO: do we need more defines? -if test "$BOXMODEL" = "nevis"; then - AC_DEFINE(BOXMODEL_NEVIS, 1, [coolstream hd1/neo/neo2/zee]) -elif test "$BOXMODEL" = "apollo"; then - AC_DEFINE(BOXMODEL_APOLLO, 1, [coolstream tank]) +if test "$BOXMODEL" = "hd1"; then + AC_DEFINE(BOXMODEL_CS_HD1, 1, [coolstream hd1/neo/neo2/zee]) +elif test "$BOXMODEL" = "hd2"; then + AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zeeČ/link]) elif test "$BOXMODEL" = "dm500"; then AC_DEFINE(BOXMODEL_DM500, 1, [dreambox 500]) elif test "$BOXMODEL" = "ip200"; then diff --git a/configure.ac b/configure.ac index 3ebe71b4d..b1616b075 100644 --- a/configure.ac +++ b/configure.ac @@ -245,7 +245,7 @@ if test -e ${srcdir}/lib/libcoolstream/nevis_ir.h; then fi HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream -I$(top_srcdir)/src/zapit/include/private' -if test "$BOXMODEL" = "apollo"; then +if test "$BOXMODEL" = "hd2"; then if test -e ${srcdir}/lib/libcoolstream2/cs_ir_generic.h; then AC_DEFINE(HAVE_COOLSTREAM_CS_IR_GENERIC_H,1,[Define to 1 if you have the header file.]) fi diff --git a/data/fonts/Makefile.am b/data/fonts/Makefile.am index 7f822c6b1..6325ef80f 100644 --- a/data/fonts/Makefile.am +++ b/data/fonts/Makefile.am @@ -11,6 +11,6 @@ install_DATA = \ tuxtxt.ttf \ tuxtxt.otb -if BOXMODEL_APOLLO +if BOXMODEL_CS_HD2 install_DATA += UnDotum.ttf endif diff --git a/src/Makefile.am b/src/Makefile.am index dcf9c8196..1d452bd8f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -61,7 +61,7 @@ neutrino_SOURCES = neutrino_menue.cpp neutrino.cpp AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64 -if BOXMODEL_APOLLO +if BOXMODEL_CS_HD2 MTDUTILSLIBS = \ system/mtdutils/libneutrino_system_mtdutils.a \ system/mtdutils/lib/libneutrino_system_mtdutils_lib.a @@ -145,14 +145,14 @@ if BOXTYPE_COOL neutrino_LDADD += -lcoolstream-mt -lca-sc if ENABLE_TMSDK else -if BOXMODEL_APOLLO +if BOXMODEL_CS_HD2 neutrino_LDADD += -lca-ci -llnxtmvssUsr -llnxUKAL -llnxplatUsr -llnxtmasUsr -llnxdvbciUsr -llnxpvrUsr -llnxcssUsr -llnxnotifyqUsr -ltmpvrDataManager-cst -ltmpvrIndexStorage -llnxscsUsr else neutrino_LDADD += -lnxp endif endif -if BOXMODEL_APOLLO +if BOXMODEL_CS_HD2 neutrino_LDADD += -liconv endif diff --git a/src/system/Makefile.am b/src/system/Makefile.am index c0c5df8eb..4fdf2e4d7 100644 --- a/src/system/Makefile.am +++ b/src/system/Makefile.am @@ -1,4 +1,4 @@ -if BOXMODEL_APOLLO +if BOXMODEL_CS_HD2 SUBDIRS = mtdutils endif