summaryrefslogtreecommitdiff
path: root/x11/xscreensaver
diff options
context:
space:
mode:
authoratatat <atatat@pkgsrc.org>2003-12-18 13:49:17 +0000
committeratatat <atatat@pkgsrc.org>2003-12-18 13:49:17 +0000
commite10da302d3c2c235c1655e916b104797aeb93470 (patch)
treec068968a863556e074bb1c6d422a4d8a454ecd08 /x11/xscreensaver
parentbfc83ae39f8fa618f227aee1c7501605caae9984 (diff)
downloadpkgsrc-e10da302d3c2c235c1655e916b104797aeb93470.tar.gz
Make the password dialogue banner display the netbsd PKGREVISION
number, if there was one (which, of course, makes me bump PKGREVISION to 1 for all three xscreensaver pkgs (are we really supposed to bump PKGREVISION for each pkg individually?)). This eliminates the confusion where pkg_info says version "4.14nb1" is installed, yet the dialogue says it's onlu version "4.14". Also, fix the conflicts for the screensaver pkg so that it properly conflicts with xscreensaver-gnome<4.14 (not <1.14).
Diffstat (limited to 'x11/xscreensaver')
-rw-r--r--x11/xscreensaver/Makefile5
-rw-r--r--x11/xscreensaver/Makefile.common5
-rw-r--r--x11/xscreensaver/distinfo3
-rw-r--r--x11/xscreensaver/patches/patch-af22
4 files changed, 31 insertions, 4 deletions
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile
index 35cd199d402..38bb6d1e830 100644
--- a/x11/xscreensaver/Makefile
+++ b/x11/xscreensaver/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.62 2003/12/13 19:22:12 jmmv Exp $
+# $NetBSD: Makefile,v 1.63 2003/12/18 13:49:17 atatat Exp $
#
COMMENT= Screen saver and locker for the X window system
+PKGREVISION= 1
-CONFLICTS+= xscreensaver-gnome<1.14
+CONFLICTS+= xscreensaver-gnome<4.14
.include "../../x11/xscreensaver/Makefile.common"
diff --git a/x11/xscreensaver/Makefile.common b/x11/xscreensaver/Makefile.common
index 7f5cca15e69..8429c49faf0 100644
--- a/x11/xscreensaver/Makefile.common
+++ b/x11/xscreensaver/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.60 2003/12/16 07:08:10 tron Exp $
+# $NetBSD: Makefile.common,v 1.61 2003/12/18 13:49:17 atatat Exp $
#
DISTNAME= xscreensaver-4.14
@@ -27,6 +27,9 @@ CONFIGURE_ENV+= X_PRE_LIBS=-lXt
CONFIGURE_ENV+= ac_cv_x_app_defaults="${PREFIX}/lib/X11/app-defaults"
CONFIGURE_ENV+= PERL="${PERL5}" ac_cv_perl_version="${PERL_VERSION}"
CONFIGURE_ENV+= INTLTOOL_PERL="${PERL5}"
+.if defined(PKGREVISION)
+CONFIGURE_ENV+= X_CFLAGS="-DPKGREVISION=${PKGREVISION}"
+.endif
CONFIGURE_ARGS+= ac_cv_path_INTLTOOL_PERL="${PERL5}"
MAKE_ENV+= KDEDIR=${PREFIX}
diff --git a/x11/xscreensaver/distinfo b/x11/xscreensaver/distinfo
index 8ca6062c3ba..7d83709e025 100644
--- a/x11/xscreensaver/distinfo
+++ b/x11/xscreensaver/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2003/12/13 19:22:13 jmmv Exp $
+$NetBSD: distinfo,v 1.33 2003/12/18 13:49:17 atatat Exp $
SHA1 (xscreensaver-4.14.tar.gz) = 4996718deaceeb578953f400e518b745c1dd32c4
Size (xscreensaver-4.14.tar.gz) = 3988251 bytes
@@ -7,4 +7,5 @@ SHA1 (patch-ab) = 3dc02761edb19658e17935bd245208fa7387316d
SHA1 (patch-ac) = 9b82326439791ecc8e05e85a4d691109b4e50e68
SHA1 (patch-ad) = 244908c3e4c278c878bf89e07bd68efb62b3fc4d
SHA1 (patch-ae) = 16d0c8b50b2601458aaec09d1c7425fb23308225
+SHA1 (patch-af) = 2340efe0cf677a20c336570b24374d675f5cd6eb
SHA1 (patch-ag) = e4f2332a349a94162f057601a69498a171ad4114
diff --git a/x11/xscreensaver/patches/patch-af b/x11/xscreensaver/patches/patch-af
new file mode 100644
index 00000000000..b16cba1ab0c
--- /dev/null
+++ b/x11/xscreensaver/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.13 2003/12/18 13:49:17 atatat Exp $
+
+Make the password dialogue banner display the netbsd PKGREVISION
+number, if there was one.
+
+--- driver/xscreensaver.c.orig 2003-10-07 04:59:40.000000000 -0400
++++ driver/xscreensaver.c
+@@ -478,9 +478,13 @@ set_version_string (saver_info *si, int
+ *s = '_';
+ }
+
+- si->version = (char *) malloc (5);
++ si->version = (char *) malloc (32);
+ memcpy (si->version, screensaver_id + 17, 4);
+ si->version [4] = 0;
++
++#if PKGREVISION > 0
++ (void)snprintf(si->version, 10, "%.4snb%d", screensaver_id + 17, PKGREVISION);
++#endif
+ }
+
+