atyh on Nostr: If youve wanted to use herbe for notifications on OpenBSD because of its lack of dbus ...
If youve wanted to use herbe for notifications on OpenBSD because of its lack of dbus dependencies:w
, but couldnt get it to compile, here is a Makefile that works. Youll get a "no new line" error at build time, but it still builds and works.
---------
PREFIX = /usr/local
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
FREETYPEINC = ${X11INC}/freetype2
FREETYPELIBS = -lfontconfig -lXft
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${FREETYPELIBS}
CFLAGS = -std=c99 -Wall -Wextra -pedantic ${INCS} ${LIBS} -pthread
CC = cc
all: herbe
config.h: config.def.h
cp config.def.h config.h
herbe: herbe.c config.h
$(CC) herbe.c $(CFLAGS) -o herbe
install: herbe
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f herbe ${DESTDIR}${PREFIX}/bin
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/herbe
clean:
rm -f herbe
.PHONY: all install uninstall clean
----------
https://github.com/dudik/herbe
, but couldnt get it to compile, here is a Makefile that works. Youll get a "no new line" error at build time, but it still builds and works.
---------
PREFIX = /usr/local
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
FREETYPEINC = ${X11INC}/freetype2
FREETYPELIBS = -lfontconfig -lXft
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${FREETYPELIBS}
CFLAGS = -std=c99 -Wall -Wextra -pedantic ${INCS} ${LIBS} -pthread
CC = cc
all: herbe
config.h: config.def.h
cp config.def.h config.h
herbe: herbe.c config.h
$(CC) herbe.c $(CFLAGS) -o herbe
install: herbe
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f herbe ${DESTDIR}${PREFIX}/bin
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/herbe
clean:
rm -f herbe
.PHONY: all install uninstall clean
----------
https://github.com/dudik/herbe