mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
- Switch to USES=ssl - Switch to @sample - Fix rc.d script filename - Pass maintainership to submitter PR: 210895 Submitted by: leres@ee.lbl.gov
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
--- Makefile.orig 2016-07-07 03:21:44 UTC
|
|
+++ Makefile
|
|
@@ -15,17 +15,21 @@ CRYPT_LIB = -lcrypt
|
|
# tree with your OpenSSL installation - depending on how you installed it,
|
|
# it may be in /usr/local instead of /usr/local/ssl.
|
|
#SSL_TREE = /usr/local/ssl
|
|
-#SSL_DEFS = -DUSE_SSL
|
|
-#SSL_INC = -I$(SSL_TREE)/include
|
|
-#SSL_LIBS = -L$(SSL_TREE)/lib -lssl -lcrypto
|
|
+SSL_DEFS = -DUSE_SSL
|
|
+.if ${OPENSSLINC} != "/usr/include"
|
|
+SSL_INC = -I${OPENSSLINC}
|
|
+.endif
|
|
+.if ${OPENSSLLIB} != "/usr/lib"
|
|
+SSL_LIBS = -L${OPENSSLLIB}
|
|
+.endif
|
|
+SSL_LIBS+= -lssl -lcrypto
|
|
|
|
|
|
-BINDIR = /usr/local/sbin
|
|
-MANDIR = /usr/local/man
|
|
-CC = cc
|
|
+BINDIR = ${PREFIX}/sbin
|
|
+MANDIR = ${MANPREFIX}/man
|
|
+CC ?= cc
|
|
CDEFS = $(SSL_DEFS) $(SSL_INC)
|
|
-CFLAGS = -O $(CDEFS) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long
|
|
-LDFLAGS = -s
|
|
+CFLAGS += $(CDEFS) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long
|
|
LDLIBS = $(CRYPT_LIB) $(SSL_LIBS) $(SYSV_LIBS)
|
|
|
|
all: mini_httpd htpasswd
|