aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-04-22 03:16:46 +0600
committerN-R-K <nrk@disroot.org>2022-05-30 12:07:01 +0000
commit0d202f0fe182b87c00a6509af5cc6e7a59716cfd (patch)
tree5da859df7eb7a3dec9f202dfd8937ed1643f2988
parent197afce93508d0c17ec8966fb96deed80c3c0f82 (diff)
config.mk: add comments for OpenBSD users
Closes: https://github.com/nsxiv/nsxiv/issues/262
-rw-r--r--Makefile2
-rw-r--r--config.mk9
2 files changed, 10 insertions, 1 deletions
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))