head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.10
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.8
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.6
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.4
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.2
	pkgsrc-2025Q1-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.01.24.16.48.59;	author riastradh;	state Exp;
branches;
next	;
commitid	p4MYo12IaRgW6LGF;


desc
@@


1.1
log
@lang/smalltalk: Patch around glib/gwin32.h confusion.

Resolves:

===> Building for smalltalk-3.2.5nb39
...
chmod +x cpp
/pkg/2024Q4/bin/gawk \
  -vPKG_CONFIG='/tmp/pkgbuild/2024Q4/lang/smalltalk/work/.tools/bin/pkg-config' \
  -v_prefixes='g atk pango' \
  -v_libs="gobject-2.0 gdk-2.0 gdk-pixbuf-2.0 pango gtk+-2.0 atk" \
  -v_files="glib-object.h gdk/gdk.h gdk-pixbuf/gdk-pixbuf.h gtk/gtk.h atk/atk.h pango/pango.h ./placer.h" -f ./mkorder.awk \
...
error: cannot find glib/gwin32.h
gawk: ./mkorder.awk:70: fatal: print to "standard output" failed: reason unknown
@
text
@$NetBSD$

Don't examine glib/gwin32.h.  This script assumes all #includes in
the glib, gtk2, pango, &c., header files exist, but glib-2.0/glib.h
conditionally includes glib/gwin32.h under G_PLATFORM_WIN32.

If we extend this to work on Windows then this script will have to be
made cleverer.

--- packages/gtk/mkorder.awk.orig	2013-03-23 19:56:26.000000000 +0000
+++ packages/gtk/mkorder.awk
@@@@ -100,7 +100,7 @@@@ function scan(file, dir, incfile) {
 	else if ($2 ~ /^"/)
 	    match ($0, /"[^>]*"/)
 	incfile = substr($0, RSTART + 1, RLENGTH - 2)
-	if (!has_prefix(incfile))
+	if (!has_prefix(incfile) || incfile == "glib/gwin32.h")
 	    continue
 	if ($2 ~ /^"/ && check_file(dir "/" incfile))
 	    process_file(dir "/" incfile)
@
