--- src/Makefile.orig	2017-08-28 11:05:01.000000000 -0500
+++ src/Makefile	2017-08-29 05:41:51.000000000 -0500
@@ -279,16 +279,16 @@
 ifeq (freebsd,$(OS))
         # Running under FreeBSD
 ifdef ENABLE_NLS
-        CFLAGS_OS     = -I/usr/local/include
-        LDFLAGS_EXTRA = -L/usr/local/lib
+        CFLAGS_OS     = -I$(PREFIX)/include
+        LDFLAGS_EXTRA = -L$(PREFIX)/lib
         LIBS_EXTRA    = -lintl
 endif
 endif
 
 ifeq (darwin, $(OS))
 ifdef ENABLE_NLS
-        CFLAGS_OS     = -I/usr/local/include
-        LDFLAGS_EXTRA = -L/usr/local/lib
+        CFLAGS_OS     = -I$(PREFIX)/include
+        LDFLAGS_EXTRA = -L$(PREFIX)/lib
         LIBS_EXTRA    = -lintl
 endif
 endif
