From cb35eff283bffa5cad6bf2742773dd87f2d38e6e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 21 Jul 2008 08:53:17 +0000 Subject: [PATCH] Win32 bat tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7413 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/main.cpp | 2 + bacula/src/qt-console/mainwin.cpp | 4 +- bacula/src/win32/build-depkgs-mingw32 | 104 +++++++++++++------------- 3 files changed, 56 insertions(+), 54 deletions(-) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 3e3cab1a04..5c1b8bde8a 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -136,7 +136,9 @@ int main(int argc, char *argv[]) } OSDependentInit(); +#ifdef HAVE_WIN32 WSA_Init(); /* Initialize Windows sockets */ +#endif if (configfile == NULL) { configfile = bstrdup(CONFIG_FILE); diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index a03e221025..dab2552d03 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -468,14 +468,14 @@ void MainWin::restoreButtonClicked() new prerestorePage(); } +#ifdef HAVE_QWT void MainWin::jobPlotButtonClicked() { -#ifdef HAVE_QWT JobPlotPass pass; pass.use = false; new JobPlot(NULL, pass); -#endif } +#endif /* * The user just finished typing a line in the command line edit box diff --git a/bacula/src/win32/build-depkgs-mingw32 b/bacula/src/win32/build-depkgs-mingw32 index eb55c47bea..d615e152c4 100755 --- a/bacula/src/win32/build-depkgs-mingw32 +++ b/bacula/src/win32/build-depkgs-mingw32 @@ -404,70 +404,70 @@ process_nsis() process_mtx() { - if get_source "${URL_MTX}" "${DIR_MTX}" "${MKD_MTX}" - then - echo Patching mtx - # We can't run configure in a cross-compile environment so we - # patch the files to the correct values - cp -f config.h.in config.h - cp -f Makefile.in Makefile - rm -f configure - >patch.log - do_patch mtx.patch - fi - echo Building mtx - do_make Makefile prefix=${DEPPKG_DIR} all - echo Installing mtx - do_make Makefile prefix=${DEPPKG_DIR} install + if get_source "${URL_MTX}" "${DIR_MTX}" "${MKD_MTX}" + then + echo Patching mtx + # We can't run configure in a cross-compile environment so we + # patch the files to the correct values + cp -f config.h.in config.h + cp -f Makefile.in Makefile + rm -f configure + >patch.log + do_patch mtx.patch + fi + echo Building mtx + do_make Makefile prefix=${DEPPKG_DIR} all + echo Installing mtx + do_make Makefile prefix=${DEPPKG_DIR} install } process_mt() { - if get_source "${URL_MT}" "${DIR_MT}" "${MKD_MT}" - then - echo "Patching mt" - >patch.log - do_patch mt.patch - fi - echo "Building mt" - do_make Makefile PREFIX=${DEPPKG_DIR} all - echo Installing mt - do_make Makefile PREFIX=${DEPPKG_DIR} install + if get_source "${URL_MT}" "${DIR_MT}" "${MKD_MT}" + then + echo "Patching mt" + >patch.log + do_patch mt.patch + fi + echo "Building mt" + do_make Makefile PREFIX=${DEPPKG_DIR} all + echo Installing mt + do_make Makefile PREFIX=${DEPPKG_DIR} install } process_sed() { - if get_source "${URL_SED}" "${DIR_SED}" "${MKD_SED}" - then - echo Patching sed - >patch.log - do_patch sed.patch - echo Configuring sed - ./configure --host=mingw32 \ - --prefix=${DEPPKG_DIR} \ - --disable-nls >make.log 2>&1 - fi - echo Building sed - do_make Makefile all - echo Installing sed - do_make Makefile install + if get_source "${URL_SED}" "${DIR_SED}" "${MKD_SED}" + then + echo Patching sed + >patch.log + do_patch sed.patch + echo Configuring sed + ./configure --host=mingw32 \ + --prefix=${DEPPKG_DIR} \ + --disable-nls >make.log 2>&1 + fi + echo Building sed + do_make Makefile all + echo Installing sed + do_make Makefile install } process_stab2cv() { - if get_source "${URL_STAB2CV}" "${DIR_STAB2CV}" "${MKD_STAB2CV}" - then - # echo Patching stab2cv - # >patch.log - # do_patch stab2cv.patch - echo Configuring stab2cv - ./configure --prefix=${DEPPKG_DIR}/tools \ - >make.log 2>&1 - fi - echo Building stab2cv - do_make Makefile - echo Installing stab2cv - do_make Makefile install + if get_source "${URL_STAB2CV}" "${DIR_STAB2CV}" "${MKD_STAB2CV}" + then + # echo Patching stab2cv + # >patch.log + # do_patch stab2cv.patch + echo Configuring stab2cv + ./configure --prefix=${DEPPKG_DIR}/tools \ + >make.log 2>&1 + fi + echo Building stab2cv + do_make Makefile + echo Installing stab2cv + do_make Makefile install } process_cmd_utils() -- 2.39.5