2004-12-14 02:18:23 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libpng (Portable Network Graphic library)
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-03-18 16:42:21 +01:00
|
|
|
LIBPNG_VERSION:=1.2.43
|
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_LIBTOOL_PATCH = NO
|
|
|
|
LIBPNG_INSTALL_STAGING = YES
|
2009-01-12 13:45:48 +01:00
|
|
|
LIBPNG_CONF_OPT = --without-libpng-compat
|
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_LIBTOOL_PATCH = NO
|
|
|
|
HOST_LIBPNG_CONF_OPT = --without-libpng-compat
|
|
|
|
HOST_LIBPNG_DEPENDENCIES = host-pkg-config host-zlib
|
|
|
|
|
2008-10-29 13:49:38 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libpng))
|
2010-02-20 18:23:04 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libpng,host))
|
2004-12-14 02:18:23 +01:00
|
|
|
|
2008-10-29 13:49:38 +01:00
|
|
|
$(LIBPNG_HOOK_POST_INSTALL):
|
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" \
|
2007-07-29 09:14:01 +02:00
|
|
|
-e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include/libpng12\',g" \
|
|
|
|
-e "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(STAGING_DIR)/usr/bin/libpng12-config
|
2008-10-29 13:49:38 +01:00
|
|
|
touch $@
|
2005-09-08 02:09:40 +02:00
|
|
|
|