forked from minhngoc25a/freetype2
Fix Savannah bug #39804.
* builds/unix/configure.raw (LIBPNG): Define and export. * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle libpng.
This commit is contained in:
parent
32a7d87050
commit
6bfa263a97
|
@ -1,3 +1,11 @@
|
|||
2013-08-18 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Fix Savannah bug #39804.
|
||||
|
||||
* builds/unix/configure.raw (LIBPNG): Define and export.
|
||||
* builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle
|
||||
libpng.
|
||||
|
||||
2013-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[base] Clean up BBox_Conic_Check.
|
||||
|
|
|
@ -297,6 +297,7 @@ or pass `--without-png' to the `configure' script.])
|
|||
either set the LIBPNG_CFLAGS and LIBPNG_LDFLAGS environment variables,
|
||||
or pass `--without-png' to the `configure' script.])
|
||||
fi
|
||||
LIBPNG="`libpng-config --libs`"
|
||||
LIBPNG_CFLAGS="`libpng-config --cflags`"
|
||||
LIBPNG_LDFLAGS="`libpng-config --ldflags`"
|
||||
fi
|
||||
|
@ -721,6 +722,7 @@ esac
|
|||
AC_SUBST([ftmac_c])
|
||||
AC_SUBST([LIBZ])
|
||||
AC_SUBST([LIBBZ2])
|
||||
AC_SUBST([LIBPNG])
|
||||
AC_SUBST([FT2_EXTRA_LIBS])
|
||||
AC_SUBST([SYSTEM_ZLIB])
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ if test "$echo_cflags" = "yes" ; then
|
|||
fi
|
||||
|
||||
if test "$echo_libs" = "yes" ; then
|
||||
libs="-lfreetype %LIBZ% %LIBBZ2% %FT2_EXTRA_LIBS%"
|
||||
libs="-lfreetype %LIBZ% %LIBBZ2% %LIBPNG% %FT2_EXTRA_LIBS%"
|
||||
if test "${SYSROOT}$libdir" != "/usr/lib" &&
|
||||
test "${SYSROOT}$libdir" != "/usr/lib64"; then
|
||||
echo -L${SYSROOT}$libdir $libs
|
||||
|
|
|
@ -8,5 +8,5 @@ Description: A free, high-quality, and portable font engine.
|
|||
Version: %ft_version%
|
||||
Requires:
|
||||
Libs: -L${libdir} -lfreetype
|
||||
Libs.private: %LIBZ% %LIBBZ2% %FT2_EXTRA_LIBS%
|
||||
Libs.private: %LIBZ% %LIBBZ2% %LIBPNG% %FT2_EXTRA_LIBS%
|
||||
Cflags: -I${includedir}/freetype2 -I${includedir}
|
||||
|
|
|
@ -63,6 +63,7 @@ version_info := @version_info@
|
|||
FT2_EXTRA_LIBS := @FT2_EXTRA_LIBS@
|
||||
LIBBZ2 := @LIBBZ2@
|
||||
LIBZ := @LIBZ@
|
||||
LIBPNG := @LIBPNG@
|
||||
build_libtool_libs := @build_libtool_libs@
|
||||
ft_version := @ft_version@
|
||||
|
||||
|
@ -102,6 +103,7 @@ $(OBJ_BUILD)/freetype-config: $(TOP_DIR)/builds/unix/freetype-config.in
|
|||
sed -e 's|%FT2_EXTRA_LIBS%|$(FT2_EXTRA_LIBS)|' \
|
||||
-e 's|%LIBBZ2%|$(LIBBZ2)|' \
|
||||
-e 's|%LIBZ%|$(LIBZ)|' \
|
||||
-e 's|%LIBPNG%|$(LIBPNG)|' \
|
||||
-e 's|%build_libtool_libs%|$(build_libtool_libs)|' \
|
||||
-e 's|%exec_prefix%|$(exec_prefix)|' \
|
||||
-e 's|%ft_version%|$(ft_version)|' \
|
||||
|
@ -119,6 +121,7 @@ $(OBJ_BUILD)/freetype2.pc: $(TOP_DIR)/builds/unix/freetype2.in
|
|||
sed -e 's|%FT2_EXTRA_LIBS%|$(FT2_EXTRA_LIBS)|' \
|
||||
-e 's|%LIBBZ2%|$(LIBBZ2)|' \
|
||||
-e 's|%LIBZ%|$(LIBZ)|' \
|
||||
-e 's|%LIBPNG%|$(LIBPNG)|' \
|
||||
-e 's|%build_libtool_libs%|$(build_libtool_libs)|' \
|
||||
-e 's|%exec_prefix%|$(exec_prefix)|' \
|
||||
-e 's|%ft_version%|$(ft_version)|' \
|
||||
|
|
Loading…
Reference in New Issue