diff options
author | tron <tron> | 2010-07-17 19:29:25 +0000 |
---|---|---|
committer | tron <tron> | 2010-07-17 19:29:25 +0000 |
commit | 0c9d5c62701f2e6440a93381614e5193e1b95499 (patch) | |
tree | d294e26665a9d73c713509e28002279dba5e7f5f /print | |
parent | 09bf64d703964f6b37e303893911622c507ef9cd (diff) | |
download | pkgsrc-0c9d5c62701f2e6440a93381614e5193e1b95499.tar.gz |
Improve horrible version check to unbreak build under NetBSD 5.1* which
provides both fmin(3) and fmax(3). The build is still broke under
NetBSD 5.0_STABLE built from sources after 2010-03-12. A possible fix
for this case is to upgrade to NetBSD 5.1*.
Diffstat (limited to 'print')
-rw-r--r-- | print/poppler/Makefile.common | 3 | ||||
-rw-r--r-- | print/poppler/distinfo | 4 | ||||
-rw-r--r-- | print/poppler/patches/patch-aq | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/print/poppler/Makefile.common b/print/poppler/Makefile.common index d44d842af75..d0d148f2c1e 100644 --- a/print/poppler/Makefile.common +++ b/print/poppler/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.36 2010/07/14 17:04:22 drochner Exp $ +# $NetBSD: Makefile.common,v 1.37 2010/07/17 19:29:25 tron Exp $ # # used by print/poppler/Makefile # used by print/poppler-glib/Makefile @@ -13,6 +13,7 @@ CATEGORIES= print MASTER_SITES= http://poppler.freedesktop.org/ HOMEPAGE= http://poppler.freedesktop.org/ +LICENSE= gnu-gpl-v2 PKG_DESTDIR_SUPPORT= user-destdir diff --git a/print/poppler/distinfo b/print/poppler/distinfo index 78736ac2427..a2a85f6eecf 100644 --- a/print/poppler/distinfo +++ b/print/poppler/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.58 2010/07/15 12:24:19 obache Exp $ +$NetBSD: distinfo,v 1.59 2010/07/17 19:29:25 tron Exp $ SHA1 (poppler-0.14.1.tar.gz) = 28229f897451feba5682d74defe7d67361eeee11 RMD160 (poppler-0.14.1.tar.gz) = 7b8d084b05ccc374e9add9771b781a88948907a7 @@ -10,4 +10,4 @@ SHA1 (patch-ag) = 7ef9ccdb1a6719510c6941864b8c7db3cc0255f1 SHA1 (patch-ai) = a51dba3fb0e7131873ef82ae5e256fb1d17cee53 SHA1 (patch-ao) = cf7e0f086522147a91f59b1b26ca510d1971ac74 SHA1 (patch-ap) = fc985510d4ebabe097e55bc4cbb0477267e95a7d -SHA1 (patch-aq) = 2a1f413d65147f9c3a64466db8b85ff8f9717954 +SHA1 (patch-aq) = 01e115ca868e0bbd398bade92485d83edbe98d66 diff --git a/print/poppler/patches/patch-aq b/print/poppler/patches/patch-aq index fe91d68772e..97f7152add8 100644 --- a/print/poppler/patches/patch-aq +++ b/print/poppler/patches/patch-aq @@ -1,4 +1,4 @@ -$NetBSD: patch-aq,v 1.3 2010/07/15 12:24:19 obache Exp $ +$NetBSD: patch-aq,v 1.4 2010/07/17 19:29:25 tron Exp $ --- poppler/TextOutputDev.cc.orig 2010-06-08 20:06:31.000000000 +0000 +++ poppler/TextOutputDev.cc @@ -8,7 +8,7 @@ $NetBSD: patch-aq,v 1.3 2010/07/15 12:24:19 obache Exp $ +#if defined(__DragonFly__) || defined(__NetBSD__) +#include <sys/param.h> -+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && __NetBSD_Version__ >= 599002100) ++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) +static double fmax(double x, double y) { if (isnan(x)) return y; if (isnan(y)) return x; return (x > y ? x : y);} +static double fmin(double x, double y) { if (isnan(x)) return y; if (isnan(y)) return x; return (x < y ? x : y);} +#endif |