$OpenBSD: patch-src_makefile,v 1.11 2013/10/19 07:07:35 benoit Exp $
--- src/makefile.orig	Tue Sep 24 22:24:04 2013
+++ src/makefile	Sat Oct 19 08:45:05 2013
@@ -12,12 +12,12 @@
 
 # See src/gui-qt/highlight.pro for the Qt GUI compilation options
 
-CXX=c++
+#CXX=c++
 
 # Added -qt4 because of Arch Linux Qt5 migration
 QMAKE=qmake-qt4
 
-CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG
+#CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG
 #CFLAGS:=-ggdb ${CFLAGS}
 
 CFLAGS_DILU=-fno-strict-aliasing
@@ -38,10 +38,10 @@
 # - remove -DUSE_LUA52
 # - use lua5.1 in the pkg-config calls
 
-LUA_CFLAGS=$(shell pkg-config --cflags lua) -DUSE_LUA52
+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)
@@ -52,10 +52,10 @@
 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
 ifdef PIC
 	CFLAGS+=-fPIC
