Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 428598 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +12 lines)
Lines 1-10 Link Here
1
PKGNAME = gkrellweather
1
PKGNAME = gkrellweather
2
VERSION = 2.0.8
2
VERSION = 2.0.8
3
CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
3
CFLAGS := $(CFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags`
4
LIBS = `pkg-config gtk+-2.0 --libs`
4
LIBS = `pkg-config gtk+-2.0 --libs`
5
LFLAGS = -shared
5
LFLAGS = -shared
6
PREFIX = /usr/local
6
PREFIX = /usr/local
7
7
8
LFLAGS += $(LDFLAGS)
9
8
LOCALEDIR := $(PREFIX)/share/locale
10
LOCALEDIR := $(PREFIX)/share/locale
9
11
10
ifeq ($(enable_nls),1)
12
ifeq ($(enable_nls),1)
Lines 14-26 Link Here
14
CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
16
CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
15
export PKGNAME LOCALEDIR
17
export PKGNAME LOCALEDIR
16
18
17
CC = gcc
19
CC = $(CC)
18
20
19
OBJS = gkrellweather.o
21
OBJS = gkrellweather.o
20
22
23
all: gkrellweather.so
24
25
%.o: %.c
26
	$(CC) $(CFLAGS) -c -o $@ $<
27
21
gkrellweather.so: $(OBJS)
28
gkrellweather.so: $(OBJS)
22
	(cd po && ${MAKE} all )
29
	(cd po && ${MAKE} all )
23
	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
30
	$(CC) $(CFLAGS) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
24
31
25
clean:
32
clean:
26
	(cd po && ${MAKE} clean )
33
	(cd po && ${MAKE} clean )
Lines 38-50 Link Here
38
	else \
45
	else \
39
		install -D -c -s -m 644 gkrellweather.so $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so ; \
46
		install -D -c -s -m 644 gkrellweather.so $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so ; \
40
	fi
47
	fi
41
	install -c -m 755 GrabWeather $(PREFIX)/bin
48
	install -D -c -m 755 GrabWeather $(PREFIX)/libexec/gkrellweather/
42
49
43
uninstall:
50
uninstall:
44
	(cd po && ${MAKE} uninstall )
51
	(cd po && ${MAKE} uninstall )
45
	rm -f /usr/lib/gkrellm2/plugins/gkrellweather.so
52
	rm -f /usr/lib/gkrellm2/plugins/gkrellweather.so
46
	rm -f $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so
53
	rm -f $(PREFIX)/lib/gkrellm2/plugins/gkrellweather.so
47
	rm -f $(PREFIX)/bin/GrabWeather
54
	rm -f $(PREFIX)/libexec/gkrellweather/GrabWeather
48
55
49
dist:
56
dist:
50
	rm -rf $(PKGNAME)-$(VERSION)
57
	rm -rf $(PKGNAME)-$(VERSION)

Return to bug 428598