diff options
author | 2011-07-18 18:52:32 +0000 | |
---|---|---|
committer | 2011-07-18 18:52:32 +0000 | |
commit | 85a47affa797358329b25358b6c1814be425bb57 (patch) | |
tree | 1b1760b19ce8e39e74cb0693c07245f461757dfe /media-libs/libgphoto2/files | |
parent | [sci-chemistry/gromacs] fix for bug #373559 (diff) | |
download | historical-85a47affa797358329b25358b6c1814be425bb57.tar.gz historical-85a47affa797358329b25358b6c1814be425bb57.tar.bz2 historical-85a47affa797358329b25358b6c1814be425bb57.zip |
Fix automagic dependencies on jpeg and gd, bug #374371 by Enlik. Thanks also to marcusmeissner.
Package-Manager: portage-2.1.10.6/cvs/Linux x86_64
Diffstat (limited to 'media-libs/libgphoto2/files')
-rw-r--r-- | media-libs/libgphoto2/files/libgphoto2-2.4.11-fix-automagic.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/libgphoto2/files/libgphoto2-2.4.11-fix-automagic.patch b/media-libs/libgphoto2/files/libgphoto2-2.4.11-fix-automagic.patch new file mode 100644 index 000000000000..09eff5ade77b --- /dev/null +++ b/media-libs/libgphoto2/files/libgphoto2-2.4.11-fix-automagic.patch @@ -0,0 +1,51 @@ +--- branches/libgphoto2-2_4/libgphoto2/configure.ac 2011/06/14 14:06:51 13653 ++++ branches/libgphoto2-2_4/libgphoto2/configure.ac 2011/07/16 11:41:59 13663 +@@ -5,7 +5,7 @@ + dnl So lastversion.X.trunk for instance. Bump X if necessary. + + dnl ******* THE NEXT RELEASE VERSION MUST BE 2.4.12 at least or higher! +-AC_INIT([libgphoto2 photo camera library], [2.4.11], [gphoto-devel@lists.sourceforge.net], [libgphoto2]) ++AC_INIT([libgphoto2 photo camera library], [2.4.11], [gphoto-devel@lists.sourceforge.net], [libgphoto2]) + AC_CONFIG_SRCDIR([libgphoto2/gphoto2-version.c]) + AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_MACRO_DIR([auto-m4]) +@@ -259,11 +259,14 @@ + LIBJPEG="" + libjpeg_msg="no" + AC_SUBST(LIBJPEG) +-AC_CHECK_LIB(jpeg,jpeg_start_decompress,[ +- AC_CHECK_HEADER(jpeglib.h,[ +- AC_DEFINE(HAVE_LIBJPEG,1,[define if we found LIBJPEG and its headers]) +- LIBJPEG="-ljpeg" +- libjpeg_msg="yes" ++AC_ARG_WITH([jpeg], AS_HELP_STRING([--without-jpeg], [Build without jpeg library (default: no)])) ++AS_IF([test "x$with_jpeg" != "xno"], [ ++ AC_CHECK_LIB(jpeg,jpeg_start_decompress,[ ++ AC_CHECK_HEADER(jpeglib.h,[ ++ AC_DEFINE(HAVE_LIBJPEG,1,[define if we found LIBJPEG and its headers]) ++ LIBJPEG="-ljpeg" ++ libjpeg_msg="yes" ++ ]) + ]) + ]) + GP_CONFIG_MSG([JPEG mangling support],[${libjpeg_msg}]) +@@ -274,11 +277,14 @@ + LIBGD="" + libgd_msg="no" + AC_SUBST(LIBGD) +-AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ +- AC_CHECK_HEADER(gd.h,[ +- AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) +- LIBGD="-lgd" +- libgd_msg="yes" ++AC_ARG_WITH([gd], AS_HELP_STRING([--without-gd], [Build without GD library (default: no)])) ++AS_IF([test "x$with_gd" != "xno"], [ ++ AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ ++ AC_CHECK_HEADER(gd.h,[ ++ AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) ++ LIBGD="-lgd" ++ libgd_msg="yes" ++ ]) + ]) + ]) + GP_CONFIG_MSG([GD conversion support],[${libgd_msg}]) |