gphoto2: fix compilation with BUILD_NLS
authorRosen Penev <rosenp@gmail.com>
Sun, 27 Nov 2022 23:38:44 +0000 (15:38 -0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 12 Mar 2023 10:50:52 +0000 (11:50 +0100)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit b90f1b5ad1d3bf8497d76b27f04a537f693e88a4)

multimedia/gphoto2/patches/001-automake-compat.patch [new file with mode: 0644]

diff --git a/multimedia/gphoto2/patches/001-automake-compat.patch b/multimedia/gphoto2/patches/001-automake-compat.patch
new file mode 100644 (file)
index 0000000..ea9f5dd
--- /dev/null
@@ -0,0 +1,66 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-SUBDIRS = gphoto-m4 contrib doc gphoto2 packaging po tests
++SUBDIRS = gphoto-m4 contrib doc gphoto2 packaging tests
+ ACLOCAL_AMFLAGS = -I auto-m4 -I gphoto-m4
+ EXTRA_DIST = README.md
+--- a/configure.ac
++++ b/configure.ac
+@@ -46,11 +46,8 @@ dnl i18n support
+ dnl ---------------------------------------------------------------------------
+ GP_GETTEXT_HACK([],[Lutz Müller and others],[${MAIL_GPHOTO_TRANSLATION}])
+ ALL_LINGUAS="az cs da de en_GB es eu fi fr hu id is it ja nl pa pl pt_BR ro ru rw sk sr sv uk vi zh_CN zh_TW"
+-AM_PO_SUBDIRS()
+ AM_GNU_GETTEXT_VERSION([0.14.1])
+-AM_GNU_GETTEXT([external])
+ AM_ICONV()
+-GP_GETTEXT_FLAGS()
+ dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
+ dnl we require make to do insert the proper $(datadir) value
+@@ -80,7 +77,7 @@ AC_CHECK_LIB(m,floor)
+ dnl ---------------------------------------------------------------------------
+-dnl pthread: The gphoto2 shell (--shell) keeps up a connection to the 
++dnl pthread: The gphoto2 shell (--shell) keeps up a connection to the
+ dnl          camera. Some cameras need to be sent keep-alive-messages
+ dnl          in order to prevent a shut-down. This is what we need
+ dnl          pthread for.
+@@ -97,7 +94,7 @@ if $try_pthread; then
+                     AC_DEFINE(HAVE_PTHREAD,1,[Define if we use pthread.h.])
+                     pthread_msg="yes (-lpthread)"
+                     PTHREAD_LIBS="-lpthread"],[
+-                    AC_CHECK_LIB(c_r, pthread_create, [ 
++                    AC_CHECK_LIB(c_r, pthread_create, [
+                         AC_DEFINE(HAVE_PTHREAD,1,[Define if we use pthread.h.])
+                         pthread_msg="yes (-pthread)"
+                         PTHREAD_LIBS="-pthread"
+@@ -267,7 +264,7 @@ GP_CONFIG_MSG([JPEG support],[$jpeg_msg]
+ dnl ---------------------------------------------------------------------------
+ dnl libexif: The CameraFilesystem can use libexif for extracting thumbnails
+ dnl          out of EXIF data. Similarly, it can extract the mtime of
+-dnl          a file. 
++dnl          a file.
+ dnl          libexif is available from
+ dnl          http://www.sourceforge.net/projects/libexif
+ dnl ---------------------------------------------------------------------------
+@@ -327,7 +324,7 @@ AC_MSG_ERROR([pkg-config could not find
+ dnl ---------------------------------------------------------------------------
+ dnl readline: Readline is pretty cool - it allows you to use <tab> to complete
+-dnl           commands in the gphoto2 shell or to use <up> or <down> to 
++dnl           commands in the gphoto2 shell or to use <up> or <down> to
+ dnl           navigate through the history.
+ dnl ---------------------------------------------------------------------------
+ rl_msg="no (http://cnswww.cns.cwru.edu/~chet/readline/rltop.html)"
+@@ -396,7 +393,6 @@ AC_SUBST([AM_LDFLAGS])
+ # Create output files
+ # ---------------------------------------------------------------------------
+ AC_CONFIG_FILES([
+-po/Makefile.in 
+ Makefile
+ gphoto2/Makefile
+ gphoto-m4/Makefile