2004-12-14 02:18:23 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libpng (Portable Network Graphic library)
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-07-14 09:08:30 +02:00
|
|
|
LIBPNG_VERSION = 1.4.8
|
2010-09-26 09:19:58 +02:00
|
|
|
LIBPNG_SERIES = 14
|
2008-10-29 13:49:38 +01:00
|
|
|
LIBPNG_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libpng
|
|
|
|
LIBPNG_SOURCE = libpng-$(LIBPNG_VERSION).tar.bz2
|
|
|
|
LIBPNG_INSTALL_STAGING = YES
|
2009-10-27 23:16:44 +01:00
|
|
|
LIBPNG_DEPENDENCIES = host-pkg-config zlib
|
2004-12-14 02:18:23 +01:00
|
|
|
|
2010-02-20 18:23:04 +01:00
|
|
|
HOST_LIBPNG_DEPENDENCIES = host-pkg-config host-zlib
|
|
|
|
|
2010-09-01 22:45:57 +02:00
|
|
|
define LIBPNG_STAGING_LIBPNG12_CONFIG_FIXUP
|
2007-07-29 09:14:01 +02:00
|
|
|
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
|
2007-01-14 04:52:21 +01:00
|
|
|
-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
|
2010-09-26 09:19:58 +02:00
|
|
|
-e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include/libpng$(LIBPNG_SERIES)\',g" \
|
2007-07-29 09:14:01 +02:00
|
|
|
-e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
|
2010-09-26 09:19:58 +02:00
|
|
|
$(STAGING_DIR)/usr/bin/libpng$(LIBPNG_SERIES)-config
|
2010-09-01 22:45:57 +02:00
|
|
|
endef
|
2005-09-08 02:09:40 +02:00
|
|
|
|
2010-09-01 22:45:57 +02:00
|
|
|
LIBPNG_POST_INSTALL_STAGING_HOOKS += LIBPNG_STAGING_LIBPNG12_CONFIG_FIXUP
|
|
|
|
|
2010-12-22 18:23:11 +01:00
|
|
|
define LIBPNG_REMOVE_CONFIG_SCRIPTS
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/bin/libpng$(LIBPNG_SERIES)-config \
|
|
|
|
$(TARGET_DIR)/usr/bin/libpng-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
|
|
LIBPNG_POST_INSTALL_TARGET_HOOKS += LIBPNG_REMOVE_CONFIG_SCRIPTS
|
|
|
|
endif
|
|
|
|
|
2010-09-01 22:45:57 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,libpng))
|
|
|
|
$(eval $(call AUTOTARGETS,package,libpng,host))
|