diff --git a/x11-wm/antiwm/Makefile b/x11-wm/antiwm/Makefile index 76bd2453d3df..a5f1d618df6a 100644 --- a/x11-wm/antiwm/Makefile +++ b/x11-wm/antiwm/Makefile @@ -1,38 +1,41 @@ PORTNAME= antiwm PORTVERSION= 0.0.5 CATEGORIES= x11-wm MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Minimalist window manager inspired by Ratpoison WWW= https://sourceforge.net/projects/antiwm/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +DEPRECATED= Last upstream release was in 2009 +EXPIRATION_DATE= 2024-01-20 + USES= xorg USE_XORG= x11 PLIST_FILES= bin/antiwm PORTDOCS= README OPTIONS_DEFINE= DOCS pre-everything:: @${ECHO_MSG} "You can build antiwm with your own conf.h using the ANTIWM_CONF knob:" @${ECHO_MSG} "make ANTIWM_CONF=/path/to/antiwm/conf.h install clean" post-extract: .if defined(ANTIWM_CONF) @${ECHO_MSG} "creating conf.h from ${ANTIWM_CONF}" @${CP} ${ANTIWM_CONF} ${WRKSRC}/conf.h .endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ .include diff --git a/x11-wm/antiwm/files/patch-Makefile b/x11-wm/antiwm/files/patch-Makefile index 2f267008cea2..4badf2cd049c 100644 --- a/x11-wm/antiwm/files/patch-Makefile +++ b/x11-wm/antiwm/files/patch-Makefile @@ -1,47 +1,47 @@ ---- ./Makefile.orig 2008-08-01 02:59:17.000000000 +0200 -+++ ./Makefile 2011-06-24 15:12:36.000000000 +0200 +--- Makefile.orig 2008-08-01 00:59:17 UTC ++++ Makefile @@ -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) + $(CC) $(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 $@ diff --git a/x11-wm/antiwm/files/patch-list.c b/x11-wm/antiwm/files/patch-list.c index 747bf004fad2..91f5c5fe10fe 100644 --- a/x11-wm/antiwm/files/patch-list.c +++ b/x11-wm/antiwm/files/patch-list.c @@ -1,10 +1,10 @@ ---- ./list.c.orig 2011-06-24 15:14:48.000000000 +0200 -+++ ./list.c 2011-06-24 15:15:27.000000000 +0200 +--- list.c.orig 2009-05-30 05:03:56 UTC ++++ list.c @@ -4,6 +4,7 @@ #include #include +#include #include "antiwm.h" diff --git a/x11-wm/antiwm/files/patch-manage.c b/x11-wm/antiwm/files/patch-manage.c index 8583cdc02745..aa522da337b6 100644 --- a/x11-wm/antiwm/files/patch-manage.c +++ b/x11-wm/antiwm/files/patch-manage.c @@ -1,10 +1,10 @@ ---- ./manage.c.orig 2011-06-24 15:13:24.000000000 +0200 -+++ ./manage.c 2011-06-24 15:13:59.000000000 +0200 +--- manage.c.orig 2009-05-30 05:05:18 UTC ++++ manage.c @@ -10,6 +10,7 @@ #include #include +#include #include "antiwm.h"