1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/mail/gkrellmmailwatch/files/patch-aa
2000-10-05 06:57:56 +00:00

44 lines
1.1 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`
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
-