Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
gnuplot.18253
gnuplot-gd.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnuplot-gd.patch of Package gnuplot.18253
Index: gnuplot-5.2.2/configure.ac =================================================================== --- gnuplot-5.2.2.orig/configure.ac +++ gnuplot-5.2.2/configure.ac @@ -570,63 +570,13 @@ AC_ARG_WITH(gd,dnl with_gd=yes) if test "$with_gd" != no; then - AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config]) - if test -n "$GDLIB_CONFIG"; then - libgd_CPPFLAGS=`$GDLIB_CONFIG --cflags` - libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags` - libgd_LIBS=`$GDLIB_CONFIG --libs` - elif test -d "$with_gd"; then - libgd_CPPFLAGS="-I$with_gd/include" - libgd_LDFLAGS="-L$with_gd/lib" - libgd_LIBS="-ljpeg -lpng -lfreetype -lz" - fi - - _cppflags="$CPPFLAGS" - _ldflags="$LDFLAGS" - _libs="$LIBS" - CPPFLAGS="$CPPFLAGS $libgd_CPPFLAGS" - LDFLAGS="$LDFLAGS $libgd_LDFLAGS" - LIBS="$LIBS $libgd_LIBS" - - AC_CHECK_LIB(gd,gdImageCreateTrueColor, - [dnl found gd library +PKG_CHECK_MODULES([GD], [gdlib], [ AC_DEFINE(HAVE_LIBGD,1,[ Define if you have gd library. ]) - AC_CHECK_HEADERS(gd.h,, - AC_MSG_WARN([please add path to gd.h to CPPFLAGS in Makefile])) - - dnl gif support in libgd - AC_CHECK_LIB(gd,gdImageGif, - [AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ])]) - AC_CHECK_LIB(gd,gdImageGifAnimBegin, - [AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ])]) - - dnl jpeg support in libgd - AC_CHECK_LIB(gd,gdImageJpeg, - [AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ])]) - - dnl freetype support in libgd - AC_CHECK_LIB(gd,gdImageStringFT, - AC_DEFINE(HAVE_GD_TTF,1, - [ Define if libgd supports TrueType fonts through libfreetype. ])) - - dnl png support in libgd - AC_CHECK_LIB(gd,gdImagePng, - [AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])]) - - ],[dnl gd library not found - AC_MSG_WARN([libgd not found or too old, version >= 2.0 is required]) - with_gd=no - ]) - - dnl piece it all together - if test "$with_gd" = no; then - CPPFLAGS="$_cppflags" - LDFLAGS="$_ldflags" - LIBS="$_libs" - else - LIBS="$_libs" - TERMLIBS="$TERMLIBS -lgd $libgd_LIBS" - fi + AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ]) + AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ]) + AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ]) + AC_DEFINE(HAVE_GD_TTF,1, [ Define if libgd supports TrueType fonts through libfreetype. ]) + AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])]) fi dnl end gd Index: gnuplot-5.2.2/src/Makefile.am =================================================================== --- gnuplot-5.2.2.orig/src/Makefile.am +++ gnuplot-5.2.2/src/Makefile.am @@ -58,7 +58,7 @@ tabulate.c tabulate.h \ template.h term_api.h term.c term.h time.c unset.c util.c util.h \ util3d.c util3d.h variable.c variable.h version.c version.h -gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS) +gnuplot_LDADD = $(GD_LIBS) $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS) pkglibexec_PROGRAMS =
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor