$OpenBSD: patch-Makefile,v 1.3 2004/10/16 16:33:56 sturm Exp $
--- Makefile.orig	Tue Jun  1 15:01:47 2004
+++ Makefile	Mon Oct 11 14:34:03 2004
@@ -1,8 +1,8 @@
 PACKAGE ?= gkrellsun
 
-GTK_CONFIG ?=pkg-config gtk+-2.0
-GTK_INCLUDE ?= `pkg-config gtk+-2.0 --cflags`
-GTK_LIB ?= `pkg-config gtk+-2.0 --libs`
+GTK_CONFIG ?=pkg-config gtk+-2.0 gthread-2.0
+GTK_INCLUDE ?= `pkg-config gtk+-2.0 gthread-2.0 --cflags`
+GTK_LIB ?= `pkg-config gtk+-2.0 gthread-2.0 --libs`
 
 INSTALL ?= install
 
@@ -11,10 +11,10 @@ INSTALLDIR ?= $(DESTDIR)$(PREFIX)
 PLUGINDIR ?= $(INSTALLDIR)/lib/gkrellm2/plugins
 LOCALEDIR ?= $(INSTALLDIR)/share/locale
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
+FLAGS += -fPIC $(GTK_INCLUDE) -I${LOCALBASE}/include
 #FLAGS = -g -Wall -fPIC $(GTK_INCLUDE)
-LIBS = $(GTK_LIB)
-LFLAGS = -shared
+LIBS += $(GTK_LIB)
+LFLAGS += -shared -pthread
 
 ifeq ($(enable_nls),1)
 	FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
@@ -23,9 +23,9 @@ endif
 FLAGS += -DPACKAGE="\"$(PACKAGE)\""
 export PACKAGE LOCALEDIR
 
-CC = gcc $(CFLAGS) $(FLAGS)
-
 OBJS = gkrellsun.o CalcEphem.o Moon.o
+
+CFLAGS += $(FLAGS)
 
 #IMAGES = ../images/osun.xpm ../images/uvsun.xpm \
 #         ../images/star.xpm ../images/dot.xpm
