freebsd-ports/misc/gkrellweather2/files/patch-Makefile
Pawel Pekala 76c0ae5696 - Update to version 2.0.8
- Add LICENSE
- Support staging
- Update homepage

PR:		ports/181066
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-11-02 12:58:52 +00:00

30 lines
803 B
Text

--- Makefile.orig Sun Feb 27 14:54:47 2005
+++ Makefile Wed Mar 2 00:22:17 2005
@@ -1,9 +1,9 @@
PKGNAME = gkrellweather
VERSION = 2.0.7
-CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
+CFLAGS += -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
@@ -14,13 +14,13 @@
CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
export PKGNAME LOCALEDIR
-CC = gcc
+CC ?= gcc
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
clean:
(cd po && ${MAKE} clean )