[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA: gd instead of libgdeda
- To: geda-dev@xxxxxxxx
- Subject: gEDA: gd instead of libgdeda
- From: Wojciech Kazubski <wk@xxxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 14:45:27 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: geda-dev-outgoing@seul.org
- Delivered-to: geda-dev@seul.org
- Delivery-date: Mon, 24 Apr 2006 08:45:42 -0400
- Reply-to: geda-dev@xxxxxxxx
- Sender: owner-geda-dev@xxxxxxxx
- User-agent: KMail/1.9.1
Hello!
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.
Patch appended.
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-22 21:55:13.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-22 22:13:32.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,13 @@
# 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)
+ AC_DEFINE(HAS_LIBGDGEDA, 1, [If gd has been installed, define this])
fi
fi
#
-# Check for libgdgeda end
+# Check for gd end
############################################################################
############################################################################
@@ -628,7 +628,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