--- Makefile.orig	2018-02-25 03:49:41.000000000 -0500
+++ Makefile	2018-03-06 15:24:00.905598000 -0500
@@ -339,7 +339,7 @@
 LAZARUS_INSTALL_DIR=C:\lazarus
 endif
 ifneq ($(findstring $(OS_TARGET),freebsd),)
-LAZARUS_INSTALL_DIR=/usr/local/lazarus
+LAZARUS_INSTALL_DIR=%%DATADIR%%
 endif
 ifneq ($(findstring $(OS_TARGET),win32 win64),)
 IDEVERSION=$(shell .\tools\install\get_lazarus_version.bat)
