diff options
author | pav <pav@FreeBSD.org> | 2005-08-30 18:52:04 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-08-30 18:52:04 +0000 |
commit | f6344de8537099299d3f03f01fa93e72202934ca (patch) | |
tree | d4f9e1536a1f39436bf008f89b666dcf219d9a6e /graphics/gthumb | |
parent | 1c622a2c8e727b2fc5dcefcdb5885d81eded6ea3 (diff) | |
download | FreeBSD-ports-f6344de8537099299d3f03f01fa93e72202934ca.zip FreeBSD-ports-f6344de8537099299d3f03f01fa93e72202934ca.tar.gz |
- Use rint() instead of round() on FreeBSD 4.X
Suggested by: vs
Diffstat (limited to 'graphics/gthumb')
-rw-r--r-- | graphics/gthumb/Makefile | 2 | ||||
-rw-r--r-- | graphics/gthumb/files/extra-patch-round.diff | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/graphics/gthumb/Makefile b/graphics/gthumb/Makefile index f97036d..6185ac6 100644 --- a/graphics/gthumb/Makefile +++ b/graphics/gthumb/Makefile @@ -38,7 +38,7 @@ LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/libgphoto2 .endif .if ${OSVERSION} < 500000 -BROKEN= "does not compile, requires round() in libm" +EXTRA_PATCHES= ${FILESDIR}/extra-patch-round.diff .endif .include <bsd.port.post.mk> diff --git a/graphics/gthumb/files/extra-patch-round.diff b/graphics/gthumb/files/extra-patch-round.diff new file mode 100644 index 0000000..8a6030a --- /dev/null +++ b/graphics/gthumb/files/extra-patch-round.diff @@ -0,0 +1,20 @@ +--- src/dlg-scale-image.c.orig Tue Aug 30 15:32:36 2005 ++++ src/dlg-scale-image.c Tue Aug 30 20:34:34 2005 +@@ -182,7 +182,7 @@ + w_spinbutton_value_changed, + data); + +- gtk_spin_button_set_value (GTK_SPIN_BUTTON (data->s_new_width_spinbutton), round (width)); ++ gtk_spin_button_set_value (GTK_SPIN_BUTTON (data->s_new_width_spinbutton), rint (width)); + + g_signal_handlers_unblock_by_func (data->s_new_width_spinbutton, + w_spinbutton_value_changed, +@@ -215,7 +215,7 @@ + h_spinbutton_value_changed, + data); + +- gtk_spin_button_set_value (GTK_SPIN_BUTTON (data->s_new_height_spinbutton), round (height)); ++ gtk_spin_button_set_value (GTK_SPIN_BUTTON (data->s_new_height_spinbutton), rint (height)); + + g_signal_handlers_unblock_by_func (data->s_new_height_spinbutton, + h_spinbutton_value_changed, |