2004-12-14 02:18:23 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libpng (Portable Network Graphic library)
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-10-06 17:11:15 +02:00
|
|
|
LIBPNG_VERSION:=1.2.32
|
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
|
|
|
|
LIBPNG_INSTALL_TARGET = YES
|
|
|
|
LIBPNG_CONF_ENV = \
|
2006-07-09 01:56:47 +02:00
|
|
|
ac_cv_have_decl_malloc=yes \
|
|
|
|
gl_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_calloc_0_nonnull=yes \
|
2008-10-29 13:49:38 +01:00
|
|
|
ac_cv_func_realloc_0_nonnull=yes
|
2009-01-12 13:45:48 +01:00
|
|
|
LIBPNG_CONF_OPT = --without-libpng-compat
|
2008-10-29 13:49:38 +01:00
|
|
|
LIBPNG_DEPENDENCIES = uclibc pkgconfig zlib
|
2004-12-14 02:18:23 +01:00
|
|
|
|
2008-10-29 13:49:38 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libpng))
|
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
|
|
|
|