summaryrefslogtreecommitdiff
path: root/graphics/liblqr
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-06-01 21:59:27 +0000
committerwiz <wiz@pkgsrc.org>2012-06-01 21:59:27 +0000
commitdeb3cd6f31aaafa5d0533a1b8226d713c409148d (patch)
tree1c4f6c8154f86cc358904e4aa8b033f2891f4a2e /graphics/liblqr
parent345ffc2fabc3657408ff25b0a364950cf2fd2e20 (diff)
downloadpkgsrc-deb3cd6f31aaafa5d0533a1b8226d713c409148d.tar.gz
Remove inline so gimp-liquid-rescale and clang are happy.
Bump PKGREVISION. While here, set LICENSE.
Diffstat (limited to 'graphics/liblqr')
-rw-r--r--graphics/liblqr/Makefile6
-rw-r--r--graphics/liblqr/distinfo4
-rw-r--r--graphics/liblqr/patches/patch-lqr_lqr__energy.c16
-rw-r--r--graphics/liblqr/patches/patch-lqr_lqr__energy__priv.h16
4 files changed, 39 insertions, 3 deletions
diff --git a/graphics/liblqr/Makefile b/graphics/liblqr/Makefile
index a2a5ba3c838..2ea6c42fee1 100644
--- a/graphics/liblqr/Makefile
+++ b/graphics/liblqr/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2012/03/03 00:11:58 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2012/06/01 21:59:27 wiz Exp $
#
DISTNAME= liblqr-1-0.4.1
PKGNAME= liblqr-0.4.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://liblqr.wikidot.com/local--files/en:download-page/
EXTRACT_SUFX= .tar.bz2
@@ -11,6 +11,8 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://liblqr.wikidot.com/
COMMENT= Content-aware image resizing library
+# examples are GPL, library is LGPL, AFAICT
+LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
diff --git a/graphics/liblqr/distinfo b/graphics/liblqr/distinfo
index 0c4e9ed54f8..a15434af355 100644
--- a/graphics/liblqr/distinfo
+++ b/graphics/liblqr/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2009/05/22 20:30:50 tnn Exp $
+$NetBSD: distinfo,v 1.3 2012/06/01 21:59:27 wiz Exp $
SHA1 (liblqr-1-0.4.1.tar.bz2) = 42b30b157b0c47690baa847847e24c7c94412b75
RMD160 (liblqr-1-0.4.1.tar.bz2) = d0b43084cb63c34b01c988b6293d16d8859dc0d6
Size (liblqr-1-0.4.1.tar.bz2) = 347474 bytes
+SHA1 (patch-lqr_lqr__energy.c) = 8aa0db7648e9b9d022a34578a035e4ef5842b348
+SHA1 (patch-lqr_lqr__energy__priv.h) = 8efc263454d84be7ff70db9b148316177ba79196
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);