>Some linux distributions (as Fedora Core) do have gd library already >available. GD is also needed to build new version of pcb with gtk frontend. >The only differece between gd and libgdgeda is the direction of >drawing arcs. Libgeda can be modified to use original gd instead of libgdgeda >This requires changing only one line of C source and some modifications to >configure files. > Improved patch. Previous version did not have -lgd specified for linking
Wojciech Kazubski
--- libgeda-20060123/src/o_arc_basic.c.gd 2006-01-24 04:20:50.000000000 +0100 +++ libgeda-20060123/src/o_arc_basic.c 2006-04-28 00:53:58.000000000 +0200 @@ -1286,7 +1286,7 @@ o_current->line_width)); gdImageArc(current_im_ptr, - x, y, width, height, start_angle, end_angle, color); + x, y, width, height, 720 - end_angle, 720 - start_angle, color); #endif } --- libgeda-20060123/configure.ac.gd 2006-01-22 14:57:05.000000000 +0100 +++ libgeda-20060123/configure.ac 2006-04-28 01:07:41.000000000 +0200 @@ -21,8 +21,8 @@ ######################################################################### # Command line flags start # -# --disable-gdgeda : turn off libgdgeda support -AC_ARG_ENABLE(gdgeda, [ --disable-gdgeda Disable libgdgeda support (don't use libgdgeda at all)], +# --disable-gdgeda : turn off gd support +AC_ARG_ENABLE(gdgeda, [ --disable-gdgeda Disable gd support (don't use gd at all)], [ if test $enableval = "no"; then no_gdgeda=yes; fi ]) # Change default location for rc files @@ -146,9 +146,9 @@ ############################################################################ ############################################################################ -# Check for libgdgeda start +# Check for gd start # -AC_PATH_PROG(LIBGDGEDACONFIG, libgdgeda-config, no, ${PATH}) +AC_PATH_PROG(LIBGDGEDACONFIG, gdlib-config, no, ${PATH}) if test "$LIBGDGEDACONFIG" = "no" then @@ -159,7 +159,7 @@ else if test "$no_gdgeda" = "yes" then - echo found libgdgeda, but disabling gdgeda support. + echo found gd, but disabling gd support. GDGEDA_CFLAGS= GDGEDA_LIBS= GDGEDA_VERSION= @@ -174,13 +174,14 @@ # This is not really used to figure out paths, but just to make # sure >= 2.0.15 is installed - PKG_CHECK_MODULES(libgdgeda, libgdgeda >= 2.0.15) - AC_DEFINE(HAS_LIBGDGEDA, 1, [If libgdgeda has been installed, define this]) + # PKG_CHECK_MODULES(gd, gd >= 2.0.15) + GDGEDA_LIBS="-lgd $GDGEDA_LIBS" + AC_DEFINE(HAS_LIBGDGEDA, 1, [If gd has been installed, define this]) fi fi # -# Check for libgdgeda end +# Check for gd end ############################################################################ ############################################################################ @@ -628,7 +629,7 @@ GLIB library version: $GLIB_VERSION GTK+ library version: $GTK_VERSION GUILE library version: $GUILE_VERSION - libgdgeda (png output): $GDGEDA $GDGEDA_VERSION + gd (png output): $GDGEDA $GDGEDA_VERSION mingw build: $MINGW data directory: $expandedGEDADATADIR rc directory: $expandedGEDARCDIR