pkgsrc/misc/gkrellm-weather/patches/patch-ab
dholland 61f60877b1 Fix PR 44163 by setting PREFIX correctly within the package. While
here, add patch comments and remove pkglint. PKGREVISION -> 7.
2010-11-28 20:52:44 +00:00

36 lines
1 KiB
Text

$NetBSD: patch-ab,v 1.2 2010/11/28 20:52:44 dholland Exp $
- use pkgsrc-provided PREFIX and LOCALEDIR
- fix pthread linkage
--- Makefile.orig 2005-02-27 13:54:47.000000000 +0000
+++ Makefile
@@ -3,16 +3,16 @@ VERSION = 2.0.7
CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
LIBS = `pkg-config gtk+-2.0 --libs`
LFLAGS = -shared
-PREFIX = /usr/local
+#PREFIX = /usr/local
-LOCALEDIR := $(PREFIX)/share/locale
+#LOCALEDIR := $(PREFIX)/share/locale
ifeq ($(enable_nls),1)
CFLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
export enable_nls
endif
CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
-export PKGNAME LOCALEDIR
+export PKGNAME #LOCALEDIR
CC = gcc
@@ -20,7 +20,7 @@ OBJS = gkrellweather.o
gkrellweather.so: $(OBJS)
(cd po && ${MAKE} all )
- $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
+ $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
clean:
(cd po && ${MAKE} clean )