diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-03-17 13:17:13 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-03-17 13:17:13 +0000 |
commit | dbced3f758ae8c6a48a8fe0fc50ae87e06a3bd84 (patch) | |
tree | 1f33ae548e1cb11b8df200747c32539a6abb7778 /x11-wm/mcwm/files | |
parent | 5e67b3f765f74c9ff9fbe43af706199b39abf1ac (diff) | |
download | ports-dbced3f758ae8c6a48a8fe0fc50ae87e06a3bd84.tar.gz ports-dbced3f758ae8c6a48a8fe0fc50ae87e06a3bd84.zip |
Notes
Diffstat (limited to 'x11-wm/mcwm/files')
-rw-r--r-- | x11-wm/mcwm/files/patch-Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-wm/mcwm/files/patch-Makefile b/x11-wm/mcwm/files/patch-Makefile new file mode 100644 index 000000000000..c606274b3043 --- /dev/null +++ b/x11-wm/mcwm/files/patch-Makefile @@ -0,0 +1,29 @@ +--- Makefile.orig 2011-03-16 18:19:22.000000000 +0100 ++++ Makefile 2011-03-16 18:23:04.000000000 +0100 +@@ -3,12 +3,12 @@ DIST=mcwm-$(VERSION) + SRC=mcwm.c list.c config.h events.h list.h + DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST mcwm.man $(SRC) + +-CC=gcc +-CFLAGS=-g -std=c99 -Wall -Wextra -O2 -I/usr/local/include #-DDEBUG #-DDMALLOC +-LDFLAGS=-L/usr/local/lib -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-atom # -ldmalloc ++CFLAGS+=-g -std=c99 -Wall -Wextra -I/usr/local/include ++LDFLAGS+=-L/usr/local/lib -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-atom + + RM=/bin/rm +-PREFIX=/usr/local ++PREFIX?=/usr/local ++MANPREFIX = ${PREFIX}/man + + TARGETS=mcwm + OBJS=mcwm.o list.o +@@ -28,6 +28,9 @@ list.o: list.c list.h Makefile + + install: $(TARGETS) + install -m 755 mcwm $(PREFIX)/bin ++ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 ++ @mkdir -p ${DESTDIR}${MANPREFIX}/man1 ++ @sed "s/VERSION/${VERSION}/g" < mcwm.man > ${DESTDIR}${MANPREFIX}/man1/mcwm.1 + + deinstall: + $(RM) $(PREFIX)/bin/mcwm |