head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.2 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.1.0.10 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.8 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.6 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.4 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.2 pkgsrc-2011Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2013.01.21.05.19.46; author dholland; state dead; branches; next 1.1; 1.1 date 2011.12.20.16.18.16; author dholland; state Exp; branches; next ; desc @@ 1.2 log @Roll the existing patches into a distfile patch. In the course of doing so: Fix the fix previously in patch-ah (for platforms where char is unsigned by default) to not generate spurious EOF indications. Improve the fixes previously in patch-a[bcdef] to put the game's state file in $HOME/.craft instead of the current directory. Use a consistent method to set $PREFIX instead of a mixture of compiler flags, patching, and SUBST. Use pkg-config to find libX11, and clean up some pkglint. @ text @$NetBSD: patch-buttons_hc,v 1.1 2011/12/20 16:18:16 dholland Exp $ - const correctness demanded by recent gcc --- buttons.hc.orig 2011-12-20 15:13:53.000000000 +0000 +++ buttons.hc @@@@ -12,7 +12,7 @@@@ #include "win.h" button::button (win *b_w, - char b_label [], + const char b_label [], int b_x, int b_y, bool b_with_repeat, @@@@ -179,12 +179,12 @@@@ bool button::eval (int &button) } -void button::write (char label_string []) +void button::write (const char label_string []) {strcpy (label, label_string); write (label, is_pressed); } -void button::write (char label [], bool is_pressed) +void button::write (const char label [], bool is_pressed) {draw_border; if (is_icon) write_icon @ 1.1 log @Assorted fixes and cleanup. - if we're going to supply the build makefile, it shouldn't require gmake. - don't install executable html or gif files - add patch comments - const correctness for string constants, as demanded by gcc 4.5 - avoid needing -lcompat - fix a y2038 issue PKGREVISION -> 2 @ text @d1 1 a1 1 $NetBSD$ @