From 326cf45942e32b9bac36a1c91d368373a784baed Mon Sep 17 00:00:00 2001 From: Rafael Marçalo Date: Mon, 11 Sep 2023 00:46:39 +0100 Subject: Patch files --- .../.config/suckless/patches/dmenu-openbsd.patch | 13 ++++++++++++ .../.config/suckless/patches/dwm-openbsd.patch | 15 ++++++++++++++ .../.config/suckless/patches/queryt-openbsd.patch | 11 ++++++++++ .../.config/suckless/patches/slock-openbsd.patch | 24 ++++++++++++++++++++++ suckless/.config/suckless/patches/st-openbsd.patch | 19 +++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 suckless/.config/suckless/patches/dmenu-openbsd.patch create mode 100644 suckless/.config/suckless/patches/dwm-openbsd.patch create mode 100644 suckless/.config/suckless/patches/queryt-openbsd.patch create mode 100644 suckless/.config/suckless/patches/slock-openbsd.patch create mode 100644 suckless/.config/suckless/patches/st-openbsd.patch diff --git a/suckless/.config/suckless/patches/dmenu-openbsd.patch b/suckless/.config/suckless/patches/dmenu-openbsd.patch new file mode 100644 index 0000000..9591ab5 --- /dev/null +++ b/suckless/.config/suckless/patches/dmenu-openbsd.patch @@ -0,0 +1,13 @@ +--- config.mk 2022-06-27 09:41:31.952435090 +0100 ++++ config.mk 2022-06-27 09:42:10.032434607 +0100 +@@ -16,8 +16,8 @@ + FREETYPELIBS = -lfontconfig -lXft + FREETYPEINC = /usr/include/freetype2 + # OpenBSD (uncomment) +-#FREETYPEINC = $(X11INC)/freetype2 +-#MANPREFIX = ${PREFIX}/man ++FREETYPEINC = $(X11INC)/freetype2 ++MANPREFIX = ${PREFIX}/man + + # includes and libs + INCS = -I$(X11INC) -I$(FREETYPEINC) diff --git a/suckless/.config/suckless/patches/dwm-openbsd.patch b/suckless/.config/suckless/patches/dwm-openbsd.patch new file mode 100644 index 0000000..9b40391 --- /dev/null +++ b/suckless/.config/suckless/patches/dwm-openbsd.patch @@ -0,0 +1,15 @@ +--- config.mk 2022-06-27 09:41:34.255768393 +0100 ++++ config.mk 2022-06-27 09:43:07.665767223 +0100 +@@ -18,9 +18,9 @@ + FREETYPELIBS = -lfontconfig -lXft + FREETYPEINC = /usr/include/freetype2 + # OpenBSD (uncomment) +-#FREETYPEINC = ${X11INC}/freetype2 +-#KVMLIB = -lkvm +-#MANPREFIX = ${PREFIX}/man ++FREETYPEINC = ${X11INC}/freetype2 ++KVMLIB = -lkvm ++MANPREFIX = ${PREFIX}/man + + # includes and libs + INCS = -I${X11INC} -I${FREETYPEINC} diff --git a/suckless/.config/suckless/patches/queryt-openbsd.patch b/suckless/.config/suckless/patches/queryt-openbsd.patch new file mode 100644 index 0000000..9c3b43d --- /dev/null +++ b/suckless/.config/suckless/patches/queryt-openbsd.patch @@ -0,0 +1,11 @@ +--- Makefile 2022-06-27 09:41:40.442434984 +0100 ++++ Makefile 2022-06-27 09:43:48.575766703 +0100 +@@ -14,7 +14,7 @@ + # Libraries + LDFLAGS = -lcurl -ljson-c + ## Uncomment for OpenBSD +-# LDFLAGS = -lcurl -ljson-c -I/usr/local/include -L/usr/local/lib ++LDFLAGS = -lcurl -ljson-c -I/usr/local/include -L/usr/local/lib + + # Binary Name + BIN = queryt diff --git a/suckless/.config/suckless/patches/slock-openbsd.patch b/suckless/.config/suckless/patches/slock-openbsd.patch new file mode 100644 index 0000000..db3f868 --- /dev/null +++ b/suckless/.config/suckless/patches/slock-openbsd.patch @@ -0,0 +1,24 @@ +--- config.mk 2022-06-27 09:41:43.949101608 +0100 ++++ config.mk 2022-06-27 09:46:23.909098091 +0100 +@@ -15,18 +15,18 @@ + LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr + + # flags +-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H ++CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE + CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} + LDFLAGS = -s ${LIBS} + COMPATSRC = explicit_bzero.c + + # On OpenBSD and Darwin remove -lcrypt from LIBS +-#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXext -lXrandr ++LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXext -lXrandr + # On *BSD remove -DHAVE_SHADOW_H from CPPFLAGS + # On NetBSD add -D_NETBSD_SOURCE to CPPFLAGS + #CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_NETBSD_SOURCE + # On OpenBSD set COMPATSRC to empty +-#COMPATSRC = ++COMPATSRC = + + # compiler and linker + CC = cc diff --git a/suckless/.config/suckless/patches/st-openbsd.patch b/suckless/.config/suckless/patches/st-openbsd.patch new file mode 100644 index 0000000..2144003 --- /dev/null +++ b/suckless/.config/suckless/patches/st-openbsd.patch @@ -0,0 +1,19 @@ +--- config.mk 2022-06-27 09:41:47.409101566 +0100 ++++ config.mk 2022-06-27 09:47:38.955763835 +0100 +@@ -26,11 +26,11 @@ + STLDFLAGS = $(LIBS) $(LDFLAGS) + + # OpenBSD: +-#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE +-#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ +-# `$(PKG_CONFIG) --libs fontconfig` \ +-# `$(PKG_CONFIG) --libs freetype2` +-#MANPREFIX = ${PREFIX}/man ++CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE ++LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \ ++ `$(PKG_CONFIG) --libs fontconfig` \ ++ `$(PKG_CONFIG) --libs freetype2` ++MANPREFIX = ${PREFIX}/man + + # compiler and linker + # CC = c99 -- cgit v1.2.3