ports/www/mini_httpd/files/patch-Makefile
Adam Weinberger 8d20660b20 STAGE support, replace a wacky "NO_SSL" with an OPTION,
remove extraneous stuff and pick some patch nits.

Most interestingly, it appears that 16 months ago I started
installing a binary as a manpage. So, we're fixing that too,
and a PORTREVISION bump.
2014-04-18 03:12:16 +00:00

27 lines
742 B
Plaintext

--- Makefile.orig 2002-11-01 23:02:57.000000000 +0000
+++ Makefile 2010-12-23 14:02:54.000000000 +0000
@@ -14,17 +14,20 @@
# http://www.openssl.org/ Make sure the SSL_TREE definition points to the
# tree with your OpenSSL installation - depending on how you installed it,
# it may be in /usr/local instead of /usr/local/ssl.
+.ifdef USE_OPENSSL
#SSL_TREE = /usr/local/ssl
-#SSL_DEFS = -DUSE_SSL
+SSL_DEFS = -DUSE_SSL
#SSL_INC = -I${SSL_TREE}/include
#SSL_LIBS = -L${SSL_TREE}/lib -lssl -lcrypto
+SSL_LIBS = -lssl -lcrypto
+.endif
BINDIR = /usr/local/sbin
MANDIR = /usr/local/man
-CC = gcc
+#CC = gcc
CDEFS = ${SSL_DEFS} ${SSL_INC}
-CFLAGS = -O ${CDEFS}
+CFLAGS += ${CDEFS}
#CFLAGS = -g ${CDEFS}
LDFLAGS = -s
#LDFLAGS = -g