diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-07-13 16:05:39 +0200 |
|---|---|---|
| committer | Eric Bénard <eric@eukrea.com> | 2013-08-22 09:51:27 +0200 |
| commit | 135cbe81bbb2b468eef6b96f6a06dadb2da7a136 (patch) | |
| tree | 1a67366324bcdbddbe870f0c7501c169cff8e6a1 | |
| parent | f1e3a8457cc448fb0172b4fa3e5f98eacae6fa31 (diff) | |
| download | meta-openembedded-135cbe81bbb2b468eef6b96f6a06dadb2da7a136.tar.gz | |
libgphoto2: add configure option for gd and add PACKAGECONFIG
* it's autodetected and pulls couple of other dependencies
freetype gd libpng lockdev zlib
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb | 6 |
2 files changed, 38 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch new file mode 100644 index 0000000000..aa1a12441d --- /dev/null +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | --- libgphoto2-2.4.11.orig/configure.ac 2013-07-19 21:59:10.857223729 +0200 | ||
| 2 | +++ libgphoto2-2.4.11/configure.ac 2013-07-19 22:06:13.873233928 +0200 | ||
| 3 | @@ -270,15 +270,21 @@ | ||
| 4 | dnl --------------------------------------------------------------------------- | ||
| 5 | dnl check for libgd | ||
| 6 | dnl --------------------------------------------------------------------------- | ||
| 7 | -LIBGD="" | ||
| 8 | -libgd_msg="no" | ||
| 9 | -AC_SUBST(LIBGD) | ||
| 10 | -AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ | ||
| 11 | - AC_CHECK_HEADER(gd.h,[ | ||
| 12 | - AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) | ||
| 13 | - LIBGD="-lgd" | ||
| 14 | - libgd_msg="yes" | ||
| 15 | - ]) | ||
| 16 | +AC_ARG_ENABLE([gd], | ||
| 17 | +[AS_HELP_STRING([--enable-gd], | ||
| 18 | + [enable gd support])],[ | ||
| 19 | + LIBGD="" | ||
| 20 | + libgd_msg="no" | ||
| 21 | + AC_SUBST(LIBGD) | ||
| 22 | + if test "x$enableval" != "xno"; then | ||
| 23 | + AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ | ||
| 24 | + AC_CHECK_HEADER(gd.h,[ | ||
| 25 | + AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) | ||
| 26 | + LIBGD="-lgd" | ||
| 27 | + libgd_msg="yes" | ||
| 28 | + ]) | ||
| 29 | + ]) | ||
| 30 | + fi | ||
| 31 | ]) | ||
| 32 | GP_CONFIG_MSG([GD conversion support],[${libgd_msg}]) | ||
| 33 | |||
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb index fd547d9918..ae783b8d3b 100644 --- a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.4.11.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/libgphoto2-${PV}.tar.bz2;name=libgphoto2 | |||
| 16 | file://10-camera-libgphoto2.fdi \ | 16 | file://10-camera-libgphoto2.fdi \ |
| 17 | file://40-libgphoto2.rules \ | 17 | file://40-libgphoto2.rules \ |
| 18 | file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ | 18 | file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ |
| 19 | file://allow.to.disable.gd.patch \ | ||
| 19 | " | 20 | " |
| 20 | 21 | ||
| 21 | SRC_URI[libgphoto2.md5sum] = "16a22b9739e45a95980ed62705fe7333" | 22 | SRC_URI[libgphoto2.md5sum] = "16a22b9739e45a95980ed62705fe7333" |
| @@ -25,6 +26,9 @@ inherit autotools pkgconfig gettext lib_package | |||
| 25 | 26 | ||
| 26 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=/lib/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" | 27 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=/lib/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" |
| 27 | 28 | ||
| 29 | PACKAGECONFIG ??= "" | ||
| 30 | PACKAGECONFIG[gd] = "--enable-gd,--disable-gd,gd" | ||
| 31 | |||
| 28 | do_configure_append() { | 32 | do_configure_append() { |
| 29 | cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ | 33 | cp ${STAGING_DATADIR}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ |
| 30 | cd ${S}/libgphoto2_port/ | 34 | cd ${S}/libgphoto2_port/ |
| @@ -44,7 +48,7 @@ PACKAGES =+ "libgphotoport libgphoto2-camlibs" | |||
| 44 | FILES_libgphoto2-camlibs = "${libdir}/libgphoto2*/*/*.so*" | 48 | FILES_libgphoto2-camlibs = "${libdir}/libgphoto2*/*/*.so*" |
| 45 | RRECOMMENDS_${PN} = "libgphoto2-camlibs" | 49 | RRECOMMENDS_${PN} = "libgphoto2-camlibs" |
| 46 | 50 | ||
| 47 | FILES_libgphotoport = "${libdir}/libgphoto2_port.so.*" | 51 | FILES_libgphotoport = "${libdir}/libgphoto2_port.so.*" |
| 48 | 52 | ||
| 49 | FILES_${PN} += "${base_libdir}/udev/* ${datadir}/hal" | 53 | FILES_${PN} += "${base_libdir}/udev/* ${datadir}/hal" |
| 50 | FILES_${PN}-dbg += "${libdir}/*/*/.debug" | 54 | FILES_${PN}-dbg += "${libdir}/*/*/.debug" |
