summaryrefslogtreecommitdiff
path: root/graphics/liblqr/patches
diff options
context:
space:
mode:
authorwiz <wiz>2012-06-01 21:59:27 +0000
committerwiz <wiz>2012-06-01 21:59:27 +0000
commitc026ac71fb1d1d495d05f7b6286e1763ad31b7cf (patch)
tree1c4f6c8154f86cc358904e4aa8b033f2891f4a2e /graphics/liblqr/patches
parent5b25a19728dd2378e1359fff42dee4583d211860 (diff)
downloadpkgsrc-c026ac71fb1d1d495d05f7b6286e1763ad31b7cf.tar.gz
Remove inline so gimp-liquid-rescale and clang are happy.
Bump PKGREVISION. While here, set LICENSE.
Diffstat (limited to 'graphics/liblqr/patches')
-rw-r--r--graphics/liblqr/patches/patch-lqr_lqr__energy.c16
-rw-r--r--graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h16
2 files changed, 32 insertions, 0 deletions
diff --git a/graphics/liblqr/patches/patch-lqr_lqr__energy.c b/graphics/liblqr/patches/patch-lqr_lqr__energy.c
new file mode 100644
index 00000000000..7477f65efba
--- /dev/null
+++ b/graphics/liblqr/patches/patch-lqr_lqr__energy.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-lqr_lqr__energy.c,v 1.1 2012/06/01 21:59:27 wiz Exp $
+
+Needed by gimp-liquid-rescale with clang, otherwise:
+graphics/gimp-liquid-rescale/work/.buildlink/lib/liblqr-1.so: undefined reference to `lqr_pixel_get_rgbcol'
+
+--- lqr/lqr_energy.c.orig 2009-05-11 00:08:03.000000000 +0000
++++ lqr/lqr_energy.c
+@@ -90,7 +90,7 @@ lqr_pixel_set_norm(gdouble val, void *rg
+ }
+ }
+
+-inline gdouble
++gdouble
+ lqr_pixel_get_rgbcol(void *rgb, gint rgb_ind, LqrColDepth col_depth, LqrImageType image_type, gint channel)
+ {
+ gdouble black_fact = 0;
diff --git a/graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h b/graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h
new file mode 100644
index 00000000000..b05ec671c79
--- /dev/null
+++ b/graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-lqr_lqr__energy__priv.h,v 1.1 2012/06/01 21:59:27 wiz Exp $
+
+Needed by gimp-liquid-rescale with clang, otherwise:
+graphics/gimp-liquid-rescale/work/.buildlink/lib/liblqr-1.so: undefined reference to `lqr_pixel_get_rgbcol'
+
+--- lqr/lqr_energy_priv.h.orig 2009-05-11 00:08:03.000000000 +0000
++++ lqr/lqr_energy_priv.h
+@@ -40,7 +40,7 @@
+
+ inline gdouble lqr_pixel_get_norm(void *src, gint src_ind, LqrColDepth col_depth);
+ inline void lqr_pixel_set_norm(gdouble val, void *rgb, gint rgb_ind, LqrColDepth col_depth);
+-inline gdouble lqr_pixel_get_rgbcol(void *rgb, gint rgb_ind, LqrColDepth col_depth, LqrImageType image_type,
++gdouble lqr_pixel_get_rgbcol(void *rgb, gint rgb_ind, LqrColDepth col_depth, LqrImageType image_type,
+ gint channel);
+ inline gdouble lqr_carver_read_brightness_grey(LqrCarver *r, gint x, gint y);
+ inline gdouble lqr_carver_read_brightness_std(LqrCarver *r, gint x, gint y);