diff options
author | wiz <wiz> | 2012-06-01 21:59:27 +0000 |
---|---|---|
committer | wiz <wiz> | 2012-06-01 21:59:27 +0000 |
commit | c026ac71fb1d1d495d05f7b6286e1763ad31b7cf (patch) | |
tree | 1c4f6c8154f86cc358904e4aa8b033f2891f4a2e /graphics/liblqr/patches | |
parent | 5b25a19728dd2378e1359fff42dee4583d211860 (diff) | |
download | pkgsrc-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.c | 16 | ||||
-rw-r--r-- | graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h | 16 |
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); |