aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/antiwm/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-02-09 20:59:00 +0800
committermiwi <miwi@FreeBSD.org>2009-02-09 20:59:00 +0800
commit1a4568735dbd325df09dba08f4294d1a426a4da5 (patch)
tree6d51f6b45774bb160a0711c70fb97e1d3ee8a30d /x11-wm/antiwm/files
parent76aad28cb2aa2e0a805c166afb48cc465afa355e (diff)
downloadfreebsd-ports-gnome-1a4568735dbd325df09dba08f4294d1a426a4da5.tar.gz
freebsd-ports-gnome-1a4568735dbd325df09dba08f4294d1a426a4da5.tar.zst
freebsd-ports-gnome-1a4568735dbd325df09dba08f4294d1a426a4da5.zip
AntiWM is a small and simple window manager with a focus on
productivity and utility. Inspired by ratpoison, AntiWM is keyboard driven and handles all windows fullscreen. WWW: http://sourceforge.net/projects/antiwm PR: ports/131246 Submitted by: Dennis Herrmann <adox at mcx2.org>
Diffstat (limited to 'x11-wm/antiwm/files')
-rw-r--r--x11-wm/antiwm/files/patch-Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/x11-wm/antiwm/files/patch-Makefile b/x11-wm/antiwm/files/patch-Makefile
new file mode 100644
index 000000000000..b89d73dc6614
--- /dev/null
+++ b/x11-wm/antiwm/files/patch-Makefile
@@ -0,0 +1,47 @@
+--- Makefile.orig 2008-08-01 02:59:17.000000000 +0200
++++ Makefile 2009-02-01 10:00:20.000000000 +0100
+@@ -1,22 +1,36 @@
+ # install directory
+-INSTALL_DIR=/usr/local/bin
++PREFIX?= /usr/local/
+
+ # enable debug messages
+ DEBUG = -DDEBUG
+
+-CC = gcc
+-LIBS = -lX11
+-LDFLAGS = -L/usr/lib
+-CFLAGS = -O2 -Wall -I/usr/X11R6/include
++# compiler and linker
++CC?= gcc
++
++# paths
++X11INC = $(LOCALBASE)/include
++X11LIB = $(LOCALBASE)/lib
++
++# includes and libs
++INCS = -I. -I/usr/include -I${X11INC}
++LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
++
++# flags
++LDFLAGS+= ${LIBS}
++CFLAGS+= ${INCS}
+
+ SRC = main.o events.o manage.o list.o bar.o
+ HEADERS = bar.h conf.h data.h events.h list.h manage.h antiwm.h
+
++all: antiwm
++
+ antiwm: $(SRC)
+- gcc $(SRC) -o $@ $(CFLAGS) $(LDFLAGS) $(LIBS)
++ gcc $(SRC) -o $@ $(CFLAGS) $(LDFLAGS)
+
+-install: antiwm
+- cp antiwm $(INSTALL_DIR)
++install: all
++ @mkdir -p ${DESTDIR}${PREFIX}/bin
++ @cp -f antiwm ${PREFIX}/bin
++ @chmod 755 ${DESTDIR}${PREFIX}/bin/antiwm
+
+ %.o : %.c $(HEADERS)
+ $(CC) -c $(CFLAGS) $(DEBUG) $< -o $@