diff options
author | anders <anders@FreeBSD.org> | 2007-07-02 04:57:04 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2007-07-02 04:57:04 +0800 |
commit | 38da9b2bca4399b5a8d59845b17138ac112e8c5b (patch) | |
tree | e3735b4554ad541c670e8a7f4dab8417c5a64632 /mail | |
parent | 250d01a94d0e201e5c1298bd06359c350053f45a (diff) | |
download | freebsd-ports-gnome-38da9b2bca4399b5a8d59845b17138ac112e8c5b.tar.gz freebsd-ports-gnome-38da9b2bca4399b5a8d59845b17138ac112e8c5b.tar.zst freebsd-ports-gnome-38da9b2bca4399b5a8d59845b17138ac112e8c5b.zip |
Move bsd.port.pre.mk inclusion up to make OPTIONS work.
Pass OPENSSLBASE in MAKE_ARGS to be able to still build using SSL.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/cclient/Makefile | 6 | ||||
-rw-r--r-- | mail/cclient/files/patch-ab | 16 | ||||
-rw-r--r-- | mail/imap-uw/Makefile | 6 | ||||
-rw-r--r-- | mail/imap-uw/files/patch-ab | 28 |
4 files changed, 26 insertions, 30 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile index 0deb781608f3..7fc277500046 100644 --- a/mail/cclient/Makefile +++ b/mail/cclient/Makefile @@ -25,10 +25,12 @@ OPTIONS= SSL "Compile with SSL support" on \ IPV6 "Support IPv6" on \ MBX_DEFAULT "Use MBX as default mailbox format" off +.include <bsd.port.pre.mk> + USE_LDCONFIG= yes ALL_TARGET= bsf .if defined(WITHOUT_SSL) -MAKE_ARGS+= SSLTYPE=none +MAKE_ARGS+= SSLTYPE=none SSLDIR=${OPENSSLBASE} .else USE_OPENSSL= yes .if defined(WITH_SSL_AND_PLAINTEXT) @@ -46,8 +48,6 @@ SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ} MAKE_ENV= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} -.include <bsd.port.pre.mk> - post-patch: .for file in Makefile src/osdep/unix/Makefile src/osdep/unix/Makefile.gss @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/${file} diff --git a/mail/cclient/files/patch-ab b/mail/cclient/files/patch-ab index de2e3b67231e..eb46cc1b9425 100644 --- a/mail/cclient/files/patch-ab +++ b/mail/cclient/files/patch-ab @@ -1,5 +1,5 @@ ---- src/osdep/unix/Makefile.orig Thu Apr 21 00:48:34 2005 -+++ src/osdep/unix/Makefile Mon May 30 19:08:25 2005 +--- src/osdep/unix/Makefile.orig Sat Apr 30 22:51:13 2005 ++++ src/osdep/unix/Makefile Sun Jul 1 22:29:26 2007 @@ -22,8 +22,8 @@ EXTRAAUTHENTICATORS= @@ -17,13 +17,11 @@ -SSLDIR=/usr/local/ssl -SSLCERTS=$(SSLDIR)/certs -+SSLDIR=$(OPENSSLBASE) ++#SSLDIR=/usr/local/ssl +SSLCERTS=$(PREFIX)/certs SSLKEYS=$(SSLCERTS) --SSLINCLUDE=$(SSLDIR)/include --SSLLIB=$(SSLDIR)/lib -+SSLINCLUDE=$(OPENSSLINC) -+SSLLIB=$(OPENSSLLIB) + SSLINCLUDE=$(SSLDIR)/include + SSLLIB=$(SSLDIR)/lib -SSLCRYPTO=-lcrypto +SSLCRYPTO=-lcrypto -lcrypt @@ -121,7 +119,7 @@ # Dependencies -@@ -850,7 +867,7 @@ +@@ -850,7 +863,7 @@ # OS-dependent @@ -130,7 +128,7 @@ osdep.h env_unix.h tcp_unix.h \ osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c ip_unix.c\ auths.c crexcl.c flockcyg.c flocklnx.c flocksim.c nfstest.c fsync.c \ -@@ -864,12 +881,19 @@ +@@ -864,12 +877,19 @@ write.c sslstdio.c \ strerror.c strpbrk.c strstr.c strtok.c strtoul.c \ OSCFLAGS diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index b8f127703b4d..e4fe992caae0 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -31,6 +31,8 @@ OPTIONS= SSL "Compile with SSL support" on \ NETSCAPE_BRAIN_DAMAGE "See Makefile for documentation" off \ ENTOURAGE_BRAIN_DAMAGE "See Makefile for documentation" off +.include <bsd.port.pre.mk> + LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient .if defined(WITH_DRAC) BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac @@ -44,7 +46,7 @@ MAN8= ipopd.8 imapd.8 ALL_TARGET= bsf .if defined(WITHOUT_SSL) -MAKE_ARGS+= SSLTYPE=none +MAKE_ARGS+= SSLTYPE=none SSLDIR=${OPENSSLBASE} .else USE_OPENSSL= yes .if defined(WITH_SSL_AND_PLAINTEXT) @@ -64,8 +66,6 @@ MAKE_ARGS+= WITH_ENTOURAGE_BRAIN_DAMAGE=yes .endif # See src/imapd/Makefile for more information about these three options. -.include <bsd.port.pre.mk> - pre-build: @${SH} ${PKGREQ}.rev ${LOCALBASE}/include/c-client/portrevision.h ${PORTVERSION} .if !defined(WITHOUT_SSL) diff --git a/mail/imap-uw/files/patch-ab b/mail/imap-uw/files/patch-ab index 6de8fc321668..a79003f09f3d 100644 --- a/mail/imap-uw/files/patch-ab +++ b/mail/imap-uw/files/patch-ab @@ -1,25 +1,23 @@ ---- src/osdep/unix/Makefile.orig Fri Apr 30 02:08:48 2004 -+++ src/osdep/unix/Makefile Fri Jun 4 07:34:19 2004 -@@ -29,13 +29,13 @@ +--- src/osdep/unix/Makefile.orig Sat Apr 30 22:51:13 2005 ++++ src/osdep/unix/Makefile Sun Jul 1 22:36:01 2007 +@@ -41,13 +41,13 @@ # Extended flags needed for SSL. You may need to modify. -SSLDIR=/usr/local/ssl -SSLCERTS=$(SSLDIR)/certs -+SSLDIR=$(OPENSSLBASE) ++#SSLDIR=/usr/local/ssl +SSLCERTS=$(PREFIX)/certs SSLKEYS=$(SSLCERTS) --SSLINCLUDE=$(SSLDIR)/include --SSLLIB=$(SSLDIR)/lib -+SSLINCLUDE=$(OPENSSLINC) -+SSLLIB=$(OPENSSLLIB) + SSLINCLUDE=$(SSLDIR)/include + SSLLIB=$(SSLDIR)/lib -SSLCRYPTO=-lcrypto +SSLCRYPTO=-lcrypto -lcrypt # Older versions of MIT Kerberos also have a libcrypto. If so, you may need # to use this instead -@@ -48,7 +48,7 @@ +@@ -60,7 +60,7 @@ SSLCFLAGS= -I$(SSLINCLUDE) -I$(SSLINCLUDE)/openssl\ -DSSL_CERT_DIRECTORY=\"$(SSLCERTS)\" -DSSL_KEY_DIRECTORY=\"$(SSLKEYS)\" @@ -28,7 +26,7 @@ # Extended flags needed for non-standard passwd types. You may need to modify. -@@ -62,7 +62,7 @@ +@@ -74,7 +74,7 @@ # AFSLDFLAGS may also need -L/usr/ucblib -lucb DCECFLAGS= -DDCE_MINIMAL -DPASSWD_OVERRIDE=\"/opt/pop3/passwd/passwd\" DCELDFLAGS= -ldce @@ -37,7 +35,7 @@ # Build parameters normally set by the individual port -@@ -99,7 +99,7 @@ +@@ -111,7 +111,7 @@ # Commands possibly overriden by the individual port ARRC=ar rc @@ -46,7 +44,7 @@ LN=ln -s RANLIB=ranlib -@@ -117,7 +117,7 @@ +@@ -129,7 +129,7 @@ dummy.o pseudo.o netmsg.o flstring.o fdstring.o \ rfc822.o nntp.o smtp.o imap4r1.o pop3.o \ unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o @@ -55,7 +53,7 @@ CAT=cat MAKE=make -@@ -200,6 +200,15 @@ +@@ -212,6 +212,15 @@ BASECFLAGS="-g -B/usr/lib/big/ -Dvoid=char -Dconst=" \ RANLIB=true ARRC="ar -rc" @@ -71,7 +69,7 @@ bs3: # BSD/i386 3.0 or higher $(BUILD) `$(CAT) SPECIALS` OS=bsi \ CHECKPW=bsi LOGINPW=bsi CRXTYPE=nfs \ -@@ -219,8 +228,9 @@ +@@ -231,8 +240,9 @@ SPOOLDIR=/var \ ACTIVEFILE=/usr/local/news/lib/active \ RSHPATH=/usr/bin/rsh \ @@ -83,7 +81,7 @@ bsi: # BSD/i386 $(BUILD) `$(CAT) SPECIALS` OS=$@ \ -@@ -788,7 +798,7 @@ +@@ -803,7 +813,7 @@ build: clean once $(ARCHIVE) |