$OpenBSD: patch-src_makefile,v 1.20 2018/05/04 20:00:34 benoit Exp $
Index: src/makefile
--- src/makefile.orig
+++ src/makefile
@@ -13,13 +13,13 @@
 # See src/gui-qt/highlight.pro for the Qt GUI compilation options
 
 #CXX=clang++
-CXX=g++
+#CXX=g++
 
 # was: qmake-qt5
 QMAKE=qmake
 
 # Added -std=c++11 because of auto_ptr to unique_ptr transition
-CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11
+#CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11
 #CFLAGS:=-ggdb ${CFLAGS} -std=c++11
 
 CFLAGS_DILU=-fno-strict-aliasing
@@ -39,10 +39,10 @@ INCLUDE_DIR=./include/
 # If Lua 5.2 is not default on your system yet you have to
 # use lua5.1 in the pkg-config calls
 
-LUA_CFLAGS=$(shell pkg-config --cflags lua)
+LUA_CFLAGS=-I${LOCALBASE}/include
 
 # default lua lib
-LUA_LIBS=$(shell pkg-config --libs lua)
+LUA_LIBS=-llua
 
 # luajit lib
 # LUA_LIBS=$(shell pkg-config --libs luajit)
@@ -53,13 +53,13 @@ REGEX_DIR=${CORE_DIR}re/
 DILU_DIR=${CORE_DIR}Diluculum/
 
 ifndef HL_CONFIG_DIR
-	HL_CONFIG_DIR = /etc/highlight/
+	HL_CONFIG_DIR = ${SYSCONFDIR}/highlight/
 endif
 ifndef HL_DATA_DIR
-	HL_DATA_DIR = /usr/share/highlight/
+	HL_DATA_DIR = ${PREFIX}/share/highlight/
 endif
 ifndef HL_DOC_DIR
-	HL_DOC_DIR = /usr/share/doc/highlight/
+	HL_DOC_DIR = ${PREFIX}/share/doc/highlight/
 endif
 
 ifdef PIC
