1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/x11/keyboardcast/files/patch-Makefile
Dmitry Marakasov a9faa0a543 - Fix build on 10.x
- Support staging
- Respect CC, CFLAGS and PREFIX

PR:		185018
Submitted by:	Eimar Koort <eimar.koort@gmail.com> (maintainer)
2013-12-25 12:54:43 +00:00

26 lines
811 B
Plaintext

--- Makefile.orig 2005-12-06 20:29:22.000000000 +0300
+++ Makefile 2013-12-25 05:28:09.226755504 +0400
@@ -1,15 +1,17 @@
-PREFIX = /usr/local
SHAREDIR = $(PREFIX)/share/keyboardcast
APPSDIR = $(PREFIX)/share/applications
BINDIR = $(PREFIX)/bin
PKGS = gtk+-2.0 libwnck-1.0 libglade-2.0
-CFLAGS = `pkg-config --cflags $(PKGS)`
+CFLAGS += `pkg-config --cflags $(PKGS)`
LDLIBS = `pkg-config --libs $(PKGS)`
-LDLIBS += -lXmu
-CFLAGS += -Wall -O2 -DPREFIX=\"$(PREFIX)\"
+LDLIBS += -lXmu -lX11
+CFLAGS += -Wall -DPREFIX=\"$(PREFIX)\"
-keyboardcast: keyboardcast.o window-list.o grab-window.o
+all: keyboardcast
+
+keyboardcast: keyboardcast.o window-list.o grab-window.o
+ $(CC) $(CFLAGS) $(LDLIBS) keyboardcast.o window-list.o grab-window.o -o keyboardcast
clean:
rm -f keyboardcast *.o *.gladep *.bak