summaryrefslogtreecommitdiff
path: root/www/nostromo/files/patch-src-nhttpd-Makefile
blob: e11767b802b7e7e3ce8087546caea25936e1d24a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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