ports/x11/dmenu/files/patch-config.mk
Mateusz Piotrowski 82a50f42ac x11/dmenu: Get the latest bug fixes from upstream
Users are still reporting issues with the dmenu version 4.9. The patch we
have currently in the ports tree was meant to be a temporary fix as we
waited for a new dmenu release. A new release is not coming apparently,
so let's just get the latest patches from upstream.

Also, switch to a GitHub-hosted mirror of the dmenu repository
as it is painful to get artifacts from https://git.suckless.org/
without a Git client.

While here, replace REINPLACE_CMD with patches.

Reported by:	Scott Robbins
MFH:		2020Q3
2020-08-02 16:34:25 +00:00

15 lines
643 B
Makefile

--- config.mk.orig 2020-08-02 16:25:39 UTC
+++ config.mk
@@ -23,9 +23,9 @@ INCS = -I$(X11INC) -I$(FREETYPEINC)
LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
-CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
-LDFLAGS = $(LIBS)
+CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
+CFLAGS += -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
+LDFLAGS += $(LIBS)
# compiler and linker
CC = cc