From 0d202f0fe182b87c00a6509af5cc6e7a59716cfd Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 22 Apr 2022 03:16:46 +0600 Subject: [PATCH] config.mk: add comments for OpenBSD users Closes: https://github.com/nsxiv/nsxiv/issues/262 --- Makefile | 2 +- config.mk | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d54cbc2..4f72fcc 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ lib_gif_1 = -lgif lib_webp_0 = lib_webp_1 = -lwebpdemux -lwebp -CPPFLAGS = -D_XOPEN_SOURCE=700 \ +CPPFLAGS = -D_XOPEN_SOURCE=700 $(INCLUDES) \ -DHAVE_LIBGIF=$(HAVE_LIBGIF) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF) \ -DHAVE_LIBWEBP=$(HAVE_LIBWEBP) -DHAVE_LIBFONTS=$(HAVE_LIBFONTS) \ -DHAVE_INOTIFY=$(HAVE_INOTIFY) $(inc_fonts_$(HAVE_LIBFONTS)) diff --git a/config.mk b/config.mk index c303e4b..a5ef840 100644 --- a/config.mk +++ b/config.mk @@ -23,3 +23,12 @@ CFLAGS = -std=c99 -Wall -pedantic # icons that will be installed via `make icon` ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png + +# Uncomment on OpenBSD +# HAVE_INOTIFY = 0 +# lib_fonts_bsd_0 = +# lib_fonts_bsd_1 = -lfreetype +# inc_fonts_bsd_0 = +# inc_fonts_bsd_1 = -I/usr/X11R6/include/freetype2 +# LDLIBS = -lz -L/usr/local/lib -L/usr/X11R6/lib $(lib_fonts_bsd_$(HAVE_LIBFONTS)) +# INCLUDES = -I/usr/local/include -I/usr/X11R6/include $(inc_fonts_bsd_$(HAVE_LIBFONTS))