diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-08-30 18:52:04 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-08-30 18:52:04 +0000 |
commit | 6408422021f5f3a47c052f3b42589c15ac644a3c (patch) | |
tree | e8e435e3eced073768fe3503dea653a8b8895061 /graphics/gthumb | |
parent | 01e0efde8bb81872917266da70cc33762b941477 (diff) |
Notes
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 f97036d60659..6185ac65d9ec 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 000000000000..8a6030a16c29 --- /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, |