--- src/nhttpd/Makefile.orig	2016-04-12 19:02:06 UTC
+++ src/nhttpd/Makefile
@@ -10,12 +10,19 @@ PIPE= -pipe
 
 MAN= nhttpd.8
 
-BINOWN=	root
+BINOWN?=	root
 BINMOD=	0555
-BINDIR=	/usr/local/sbin
+BINDIR=	${PREFIX}/sbin
 
 OS!= uname -s
 
+.if defined(OPENSSLLIB) && "${OPENSSLLIB}" != "/usr/lib"
+LDADD+=	-L${OPENSSLLIB}
+.endif
+.if defined(OPENSSLINC) && "${OPENSSLINC}" != "/usr/include"
+CFLAGS+=-I${OPENSSLINC}
+.endif
+
 LDADD+= -lssl -lcrypto
 .if ${OS} == "FreeBSD"
 LDADD+= -lcrypt
