freebsd-ports/x11/gnome-clipboard-daemon/files/patch-Makefile
Joe Marcus Clarke a5d4b337df Add gnome-clipboard-daemon, a clipboard manager for X.
GNOME Clipboard Daemon is a program that keeps the content of your X
clipboard in memory, so the clipboard won't get lost even after you close the
application you copied from. It's a daemon - it has no GUI. You start it and
it'll run inthe background and Just Work(tm).

Example:
	1. Start AbiWord.
	2. Type in 'hello world'. Select everything and click Copy.
	3. Close AbiWord.
	4. Start gedit.
	5. Click Paste. Normally nothing will happen. But if GNOME Clipboard
		Daemon is running, pasting will work.

PR:		61869
Submitted by:	Jeremy Messenger <mezz7@cox.net>
2004-01-25 06:16:07 +00:00

32 lines
1.3 KiB
Text

--- Makefile.orig Sat Jan 24 02:38:09 2004
+++ Makefile Sat Jan 24 23:52:55 2004
@@ -1,22 +1,23 @@
.PHONY: all distdir dist clean
-CC=gcc
-CFLAGS=-Wall -O2
+#CC=gcc
+#CFLAGS=-Wall -O2
+PKGCONFIG=${LOCALBASE}/bin/pkg-config
VERSION=1.0
all: gnome-clipboard-daemon
gnome-clipboard-daemon: main.o gnome-clipboard-daemon.o selection-data-list.o
- $(CC) $(CFLAGS) main.o gnome-clipboard-daemon.o selection-data-list.o -o gnome-clipboard-daemon `pkg-config --libs gtk+-2.0`
+ $(CC) $(CFLAGS) main.o gnome-clipboard-daemon.o selection-data-list.o -o gnome-clipboard-daemon `$(PKGCONFIG) --libs gtk+-2.0`
main.o: main.c
- $(CC) $(CFLAGS) -c main.c -o main.o `pkg-config --cflags gtk+-2.0`
+ $(CC) $(CFLAGS) -c main.c -o main.o `$(PKGCONFIG) --cflags gtk+-2.0`
gnome-clipboard-daemon.o: gnome-clipboard-daemon.c gnome-clipboard-daemon.h
- $(CC) $(CFLAGS) -c gnome-clipboard-daemon.c -o gnome-clipboard-daemon.o `pkg-config --cflags gtk+-2.0`
+ $(CC) $(CFLAGS) -c gnome-clipboard-daemon.c -o gnome-clipboard-daemon.o `$(PKGCONFIG) --cflags gtk+-2.0`
selection-data-list.o: selection-data-list.c selection-data-list.h
- $(CC) $(CFLAGS) -c selection-data-list.c -o selection-data-list.o `pkg-config --cflags gtk+-2.0`
+ $(CC) $(CFLAGS) -c selection-data-list.c -o selection-data-list.o `$(PKGCONFIG) --cflags gtk+-2.0`
distdir:
rm -rf gnome-clipboard-daemon-$(VERSION)