1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/mail/gkrellmmailwatch/files/patch-aa
Hajimu UMEMOTO 69159535bb A plugin for gkrellm, that watches in multiple mailboxes for new mail.
Submitted by:	Tobias Reifenberger <treif@mayn.de>
2000-09-14 17:27:59 +00:00

46 lines
1.2 KiB
Plaintext

--- Makefile.orig Tue Sep 5 16:30:33 2000
+++ Makefile Tue Sep 5 16:26:44 2000
@@ -1,32 +1,30 @@
# Makefile for the GKrellM mailwatch plugin
-GTK_INCLUDE = `gtk-config --cflags`
-GTK_LIB = `gtk-config --libs`
+GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+GTK_LIB = `$(GTK_CONFIG) --libs`
-GKRELLM_INCLUDE= -I/usr/local/include
+GKRELLM_INCLUDE= -I$(PREFIX)/include
-IMLIB_INCLUDE = `imlib-config --cflags-gdk`
-IMLIB_LIB = `imlib-config --libs-gdk`
+IMLIB_INCLUDE = `$(IMLIB_CONFIG) --cflags-gdk`
+IMLIB_LIB = `$(IMLIB_CONFIG) --libs-gdk`
INSTALL=install -c -s -m 755
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+CFLAGS+= -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
LIBS = $(GTK_LIB) $(IMLIB_LIB)
-LFLAGS = -shared -lpthread
-
-CC = gcc -g $(CFLAGS) $(FLAGS)
+LFLAGS = -shared -pthread
OBJS = mailwatch.o
all: mailwatch.so
mailwatch.so: $(OBJS)
- $(CC) $(OBJS) -o mailwatch.so $(LFLAGS) $(LIBS)
+ $(CC) $(CFLAGS) $(OBJS) -o mailwatch.so $(LFLAGS) $(LIBS)
clean:
rm -f *.o core *.so* *.bak *~
+
install:
- $(INSTALL) -c -s -m 755 mailwatch.so /usr/share/gkrellm/plugins
+ $(INSTALL) mailwatch.so $(PREFIX)/libexec/gkrellm/plugins
mailwatch.c.o: mailwatch.c
-