2004-12-14 02:18:23 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libpng (Portable Network Graphic library)
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-02-22 14:23:33 +01:00
|
|
|
|
2012-07-26 19:19:41 +02:00
|
|
|
LIBPNG_VERSION = 1.4.12
|
2010-09-26 09:19:58 +02:00
|
|
|
LIBPNG_SERIES = 14
|
2008-10-29 13:49:38 +01:00
|
|
|
LIBPNG_SOURCE = libpng-$(LIBPNG_VERSION).tar.bz2
|
2012-08-23 00:11:55 +02:00
|
|
|
LIBPNG_SITE = http://downloads.sourceforge.net/project/libpng/libpng${LIBPNG_SERIES}/$(LIBPNG_VERSION)
|
2012-08-11 22:10:21 +02:00
|
|
|
LIBPNG_LICENSE = libpng license
|
|
|
|
LIBPNG_LICENSE_FILES = LICENSE
|
2008-10-29 13:49:38 +01:00
|
|
|
LIBPNG_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBPNG_DEPENDENCIES = host-pkgconf zlib
|
2004-12-14 02:18:23 +01:00
|
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|