$NetBSD$

--- gtk/makefile.orig	2021-01-06 19:22:48.159131948 +0000
+++ gtk/makefile
@@ -15,28 +15,7 @@ srcdir ?= .
 basedir = $(srcdir)/..
 
 WARNINGS = -Wpedantic -Wall
-ifdef CLANG
-CXX = clang++
-CC = clang
-WARNINGS += -Wno-deprecated-register
-ifdef windir
-# Turn off some warnings that occur when Clang is being used on Windows where it
-# is including Microsoft headers.
-# incompatible-ms-struct is because more complex structs are not quite the same as MSVC
-WARNINGS += -Wno-incompatible-ms-struct
-# language-extension-token is because of __int64 in glib-2.0 glibconfig.h
-WARNINGS += -Wno-language-extension-token
-# register may be used in glib
-# This produces a warning since -Wno-register is not valid for C files but it still works
-WARNINGS += -Wno-register
-DEFINES += -D_CRT_SECURE_NO_DEPRECATE
-endif
-# Can choose aspect to sanitize: address and undefined can simply change SANITIZE but for
-# thread also need to create Position Independent Executable -> search online documentation
-SANITIZE = address
-#SANITIZE = undefined
-BASE_FLAGS += -fsanitize=$(SANITIZE)
-endif
+AR = ar
 ARFLAGS = rc
 RANLIB ?= ranlib
 PKG_CONFIG ?= pkg-config
@@ -68,7 +47,7 @@ else
 DEL = rm -f
 LEXILLA = liblexilla.so
 endif
-COMPLIB=$(basedir)/bin/scintilla.a
+COMPLIB=$(basedir)/bin/libscintilla.a
 COMPONENT=$(basedir)/bin/libscintilla.$(SHAREDEXTENSION)
 
 vpath %.h $(srcdir) $(basedir)/src $(basedir)/include $(basedir)/lexlib
