package/x11r7/xlib_libXpm: Add gettext/iconv support
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 29 Mar 2015 14:20:16 +0000 (16:20 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 4 Apr 2015 13:11:32 +0000 (15:11 +0200)
This package uses gettext/iconv when needed

fli4l@fli4lbuild64:~/br5$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libXpm.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libxcb.so.1]
 0x00000001 (NEEDED)                     Shared library: [libXau.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXdmcp.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.0]
 0x00000001 (NEEDED)                     Shared library: [libintl.so.8]
 0x00000001 (NEEDED)                     Shared library: [libiconv.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/x11r7/xlib_libXpm/xlib_libXpm.mk

index 766724fda936a707cb22eae9f8da82c86fe996e2..997ef958e97db8dfcb47d9cbff3231440ed1de28 100644 (file)
@@ -13,6 +13,8 @@ XLIB_LIBXPM_INSTALL_STAGING = YES
 # we patch configure.ac
 XLIB_LIBXPM_AUTORECONF = YES
 XLIB_LIBXPM_DEPENDENCIES = xlib_libX11 xlib_libXext xlib_libXt xproto_xproto \
+       $(if $(BR2_PACKAGE_GETTEXT),gettext) \
+       $(if $(BR2_PACKAGE_LIBICONV),libiconv) \
        host-gettext
 
 $(eval $(autotools-package))