pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xblockout update to 1.1.6
details: https://anonhg.NetBSD.org/pkgsrc/rev/78b82f124360
branches: trunk
changeset: 554742:78b82f124360
user: drochner <drochner%pkgsrc.org@localhost>
date: Thu Feb 19 12:36:15 2009 +0000
description:
update to 1.1.6
change: use a 20pt font as "bigfont", avoids problems on systems
where the original 24pt font is not found
pkgsrc change: fix the code which does font replacement in case
a font is not found (following an idea from gentoo but done correctly)
thanks to Felix Resch for pointers and testing
diffstat:
games/xblockout/Makefile | 5 +--
games/xblockout/distinfo | 9 ++++---
games/xblockout/patches/patch-ac | 49 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 56 insertions(+), 7 deletions(-)
diffs (83 lines):
diff -r d375466ef7ec -r 78b82f124360 games/xblockout/Makefile
--- a/games/xblockout/Makefile Thu Feb 19 12:24:59 2009 +0000
+++ b/games/xblockout/Makefile Thu Feb 19 12:36:15 2009 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2007/02/06 17:08:19 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2009/02/19 12:36:15 drochner Exp $
#
-DISTNAME= xbl-1.1.5
-PKGREVISION= 1
+DISTNAME= xbl-1.1.6
CATEGORIES= games
MASTER_SITES= http://www710.univ-lyon1.fr/~exco/XBL/
diff -r d375466ef7ec -r 78b82f124360 games/xblockout/distinfo
--- a/games/xblockout/distinfo Thu Feb 19 12:24:59 2009 +0000
+++ b/games/xblockout/distinfo Thu Feb 19 12:36:15 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2007/02/06 17:08:19 joerg Exp $
+$NetBSD: distinfo,v 1.3 2009/02/19 12:36:15 drochner Exp $
-SHA1 (xbl-1.1.5.tar.gz) = 14503060ccf82d23430fe08e78ba4998723ec174
-RMD160 (xbl-1.1.5.tar.gz) = 30cf9f6b1c251b267f0ebe0b85f349e9dce3dd44
-Size (xbl-1.1.5.tar.gz) = 136508 bytes
+SHA1 (xbl-1.1.6.tar.gz) = 05b368c20fd16a99346540a5352a011b56926ef3
+RMD160 (xbl-1.1.6.tar.gz) = 4e726544b0e9f2b9481e1e216658fc4412dfbd1c
+Size (xbl-1.1.6.tar.gz) = 136504 bytes
SHA1 (patch-aa) = f53468bfbc23a7c0085bc2b15cce044cddf2338a
SHA1 (patch-ab) = c006a72d511f01011666e1caf5173ba1f03b3494
+SHA1 (patch-ac) = 5ff43d789bec5d98dc88352c57ae0f40378b0427
diff -r d375466ef7ec -r 78b82f124360 games/xblockout/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xblockout/patches/patch-ac Thu Feb 19 12:36:15 2009 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-ac,v 1.1 2009/02/19 12:36:15 drochner Exp $
+
+--- initmenu.c.orig 2005-11-07 21:40:38.000000000 +0100
++++ initmenu.c
+@@ -408,37 +408,34 @@ void inittext(struct menu *m, struct opt
+ XCharStruct overall_return ;
+
+ m->xfont = XLoadQueryFont( x->display , opt->thefont ) ;
+- m->font = XLoadFont( x->display , opt->thefont ) ;
+ if ( opt->verbose )
+ {
+ fprintf(stderr,"font=%s\n", opt->thefont) ;
+ }
+- if ( m->font==BadAlloc || m->font==BadName || m->xfont==0 )
++ if ( m->xfont==0 )
+ {
+ fprintf(stderr,"Some problems when loading a font... trying others\n") ;
+ m->xfont = XLoadQueryFont( x->display ,
+- "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" ) ;
+- m->font = XLoadFont( x->display ,
+- "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" ) ;
+- if ( m->font==BadAlloc || m->font==BadName || m->xfont==0 )
++ "fixed" ) ;
++ if ( m->xfont==0 )
+ {
+- fprintf(stderr,"You haven't -*-*-*-*-*-*-*-*-*-*-*-*-*-*\n");
++ fprintf(stderr,"You haven't \"fixed\"\n");
+ fprintf(stderr,"Have you A font?\n");
+ fprintf(stderr,"Retry with -font option\n");
+ exit(1) ;
+ }
+ }
++ m->font = m->xfont->fid;
+ m->xfont2 = XLoadQueryFont( x->display , opt->thefont2 ) ;
+- m->font2 = XLoadFont( x->display , opt->thefont2 ) ;
+ if ( opt->verbose )
+ {
+ fprintf(stderr,"font2=%s\n", opt->thefont2) ;
+ }
+- if ( m->font2==BadAlloc || m->font2==BadName || m->xfont2==0 )
++ if ( m->xfont2==0 )
+ {
+- m->font2 = m->font ;
+ m->xfont2 = m->xfont ;
+ }
++ m->font2 = m->xfont2->fid;
+
+ xgc.background = x->back_pixel ;
+ xgc.foreground = opt->backcolor!=7 ? x->white_pixel : x->black_pixel;
Home |
Main Index |
Thread Index |
Old Index