0001-Don-t-build-po-files-if-NLS-is-disabled.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From c9f5783bb2df4a19c6281daeda30e8ab905d2ca3 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 22 Aug 2021 10:44:48 +0200
  4. Subject: [PATCH] Don't build po files if NLS is disabled
  5. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  6. [Upstream status: https://github.com/ddugovic/uShare/pull/12]
  7. ---
  8. Makefile | 7 +++++--
  9. configure | 3 +++
  10. 2 files changed, 8 insertions(+), 2 deletions(-)
  11. diff --git a/Makefile b/Makefile
  12. index ebd8f91..6686cfd 100644
  13. --- a/Makefile
  14. +++ b/Makefile
  15. @@ -14,10 +14,13 @@ EXTRADIST = AUTHORS \
  16. THANKS \
  17. TODO \
  18. -SUBDIRS = po \
  19. - scripts \
  20. +SUBDIRS = scripts \
  21. src \
  22. +ifeq ($(NLS),yes)
  23. +SUBDIRS += po
  24. +endif
  25. +
  26. all:
  27. for subdir in $(SUBDIRS); do \
  28. $(MAKE) -C $$subdir $@; \
  29. diff --git a/configure b/configure
  30. index 4a3efe0..f48806a 100755
  31. --- a/configure
  32. +++ b/configure
  33. @@ -414,6 +414,8 @@ for opt do
  34. ;;
  35. --with-libdlna-dir=*) libdlnadir="$optval";
  36. ;;
  37. + --enable-nls) nls="yes"
  38. + ;;
  39. --disable-nls) nls="no"
  40. ;;
  41. --enable-dlna) dlna="yes"
  42. @@ -723,6 +725,7 @@ append_config "LDFLAGS=$LDFLAGS"
  43. append_config "INSTALL=$INSTALL"
  44. append_config "DEBUG=$debug"
  45. +append_config "NLS=$nls"
  46. echolog "Creating $CONFIG_H ..."
  47. --
  48. 2.32.0