clipnotify icon indicating copy to clipboard operation
clipnotify copied to clipboard

FreeBSD Makefile changes

Open vendion opened this issue 5 years ago • 2 comments

When building on FreeBSD the location of the include files for cc are in /usr/local/include and /usr/local/lib. In the Makefile there is already the following variable defined x11_bsd_flags = -I/usr/X11R6/include -L/usr/X11R6/lib which seems valid for OpenBSD

vendion avatar Apr 26 '19 00:04 vendion

Sure. Feel free to submit a PR with something that works on FreeBSD. :-)

cdown avatar Apr 26 '19 21:04 cdown

This seems to work for both FreeBSD and OpenBSD (not too familiar with this)

diff --git a/Makefile b/Makefile
index 09957af..b1cd91e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-x11_bsd_flags = -I/usr/X11R6/include -L/usr/X11R6/lib
+x11_bsd_flags = -I/usr/X11R6/include -I/usr/local/include -L/usr/X11R6/lib -L/usr/local/lib
 
 all:
 	${CC} ${CFLAGS} ${LDFLAGS} clipnotify.c -o clipnotify $(x11_bsd_flags) -lX11 -lXfixes

vendion avatar May 07 '19 01:05 vendion

I'm going to close this for now, but if someone wants to test this in detail and it doesn't work as is now, feel free to submit a PR. :-)

cdown avatar Nov 07 '22 00:11 cdown