summaryrefslogtreecommitdiff
path: root/mail/cclient
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-04-08 20:53:04 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-04-08 20:53:04 +0000
commitca11adc80470c824cface30f12869a4c2cc6d139 (patch)
tree3a59784d1ae5003d45ed72827439ee76454e7fc8 /mail/cclient
parentUpgrade alpha netscapes to v4.77. (diff)
Fix handling of WITH_SSL -- the USE_OPENSSL was defined when in the
opposite case :) Make the c-client's Makefile use the LDFLAGS files, when linking the shared library. This ensures, that the things like -lpam, -lssl are linked into it and an application does not have to refer to them explicitly. WITH_SSL should, IMHO, be made a default...
Notes
Notes: svn path=/head/; revision=41088
Diffstat (limited to 'mail/cclient')
-rw-r--r--mail/cclient/Makefile6
-rw-r--r--mail/cclient/files/patch-ab4
2 files changed, 4 insertions, 6 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile
index 357ca477f8d5..291169bd0590 100644
--- a/mail/cclient/Makefile
+++ b/mail/cclient/Makefile
@@ -18,11 +18,9 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@freebsd.org
INSTALLS_SHLIB= yes
-.if defined(WITH_SSL)
-ALL_TARGET= bsf SSLTYPE=unix
-.else
ALL_TARGET= bsf
-
+.if defined(WITH_SSL)
+MAKE_ARGS+= SSLTYPE=unix
USE_OPENSSL= yes
.endif
diff --git a/mail/cclient/files/patch-ab b/mail/cclient/files/patch-ab
index c9287954240b..dc25bf496bea 100644
--- a/mail/cclient/files/patch-ab
+++ b/mail/cclient/files/patch-ab
@@ -84,9 +84,9 @@
+$(SHLIBNAME): $(SOFILES)
+.if $(PORTOBJFORMAT) == "elf"
-+ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES)
++ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES) `cat LDFLAGS`
+.else
-+ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES)
++ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES) `cat LDFLAGS`
+.endif
+ ln -s $(SHLIBNAME) lib$(SHLIBBASE).so
+