2000-07-14 09:27:33 +00:00
|
|
|
# New ports collection makefile for: cclient
|
|
|
|
# Date created: 2 July 2000
|
2000-09-12 05:18:07 +00:00
|
|
|
# Whom: Kelly Yancey <kbyanc@FreeBSD.org>
|
2000-07-14 09:27:33 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cclient
|
2005-05-30 19:57:06 +00:00
|
|
|
PORTVERSION= 2004d
|
2001-10-05 08:28:52 +00:00
|
|
|
PORTEPOCH= 1
|
2004-06-04 14:21:47 +00:00
|
|
|
CATEGORIES= mail devel ipv6
|
2003-05-21 00:54:21 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/%SUBDIR%/ \
|
|
|
|
http://atreides.freenix.no/~anders/%SUBDIR%/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/imap/%SUBDIR%/ \
|
|
|
|
ftp://ftp.nuug.no/pub/anders/distfiles/%SUBDIR%/
|
2003-05-21 00:13:49 +00:00
|
|
|
MASTER_SITE_SUBDIR= . old
|
2002-11-26 12:05:13 +00:00
|
|
|
DISTNAME= imap-${PORTVERSION}
|
2000-07-14 09:27:33 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
2002-03-14 00:11:40 +00:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Mark Crispin's C-client mail access routines
|
2000-07-14 09:27:33 +00:00
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
2000-11-01 14:23:09 +00:00
|
|
|
ALL_TARGET= bsf
|
2002-11-27 03:53:42 +00:00
|
|
|
.if defined(WITHOUT_SSL)
|
|
|
|
MAKE_ARGS+= SSLTYPE=none
|
|
|
|
.else
|
2001-04-05 03:21:41 +00:00
|
|
|
USE_OPENSSL= yes
|
2002-11-27 03:53:42 +00:00
|
|
|
.if defined(WITH_SSL_AND_PLAINTEXT)
|
|
|
|
MAKE_ARGS+= SSLTYPE=unix
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= SSLTYPE=unix.nopwd
|
|
|
|
.endif
|
2001-04-05 03:21:41 +00:00
|
|
|
.endif
|
|
|
|
|
2002-11-26 12:05:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2002-11-04 01:37:23 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-10-05 08:28:52 +00:00
|
|
|
|
2000-07-14 09:27:33 +00:00
|
|
|
SHLIBBASE= c-client4
|
2000-12-18 09:55:11 +00:00
|
|
|
SHLIBMAJ= 8
|
2000-07-14 09:27:33 +00:00
|
|
|
SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ}
|
|
|
|
MAKE_ENV= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}
|
|
|
|
PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
2000-11-01 14:23:09 +00:00
|
|
|
SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ}.0
|
2000-07-14 09:27:33 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-23 15:57:14 +00:00
|
|
|
post-patch:
|
2002-11-26 12:05:13 +00:00
|
|
|
.for file in Makefile src/osdep/unix/Makefile src/osdep/unix/Makefile.gss
|
2002-11-06 13:27:06 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/${file}
|
2001-03-23 15:57:14 +00:00
|
|
|
.endfor
|
2005-01-30 13:31:57 +00:00
|
|
|
@${REINPLACE_CMD} -e "s:/etc/ssl/certs:${PREFIX}/certs:g; \
|
|
|
|
s:/etc/ssl/private:${PREFIX}/certs:g" ${WRKSRC}/Makefile
|
2005-05-30 19:57:06 +00:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
|
|
|
@${REINPLACE_CMD} -e "s|^IP=4|IP=6|" ${WRKSRC}/Makefile \
|
|
|
|
${WRKSRC}/src/osdep/unix/Makefile
|
|
|
|
.endif
|
2001-03-23 15:57:14 +00:00
|
|
|
|
2000-07-14 09:27:33 +00:00
|
|
|
post-configure:
|
|
|
|
@${ECHO_MSG} ">> The c-client shared library will be named ${SHLIBNAME}"
|
|
|
|
|
2004-06-04 14:21:47 +00:00
|
|
|
HEADERS= c-client.h dummy.h env.h env_unix.h fdstring.h flstring.h \
|
|
|
|
fs.h ftl.h imap4r1.h linkage.c linkage.h mail.h mbx.h mh.h \
|
|
|
|
misc.h mx.h netmsg.h newsrc.h nl.h nntp.h osdep.h pseudo.h \
|
|
|
|
rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h utf8.h
|
2001-10-05 08:28:52 +00:00
|
|
|
PORTREV_H= ${WRKDIR}/portrevision.h
|
|
|
|
|
|
|
|
post-build:
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "#define CCLIENT_PORTVERSION \"${PORTVERSION}\"" >${PORTREV_H}
|
2002-11-27 03:53:42 +00:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "#define CCLIENT_SSLENABLED \"yes\"" >>${PORTREV_H}
|
2001-10-05 08:28:52 +00:00
|
|
|
.else
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "#define CCLIENT_SSLENABLED \"no\"" >>${PORTREV_H}
|
2001-10-05 08:28:52 +00:00
|
|
|
.endif
|
2000-07-14 09:27:33 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/include/c-client
|
|
|
|
.for f in ${HEADERS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/c-client/${f} ${PREFIX}/include/c-client
|
|
|
|
.endfor
|
|
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
|
|
${WRKSRC}/c-client/${SHLIBNAME} ${PREFIX}/lib
|
|
|
|
${LN} -sf ${SHLIBNAME} ${PREFIX}/lib/lib${SHLIBBASE}.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a \
|
|
|
|
${PREFIX}/lib/lib${SHLIBBASE}.a
|
|
|
|
|
|
|
|
post-install:
|
2001-10-05 08:28:52 +00:00
|
|
|
${INSTALL_DATA} ${PORTREV_H} ${PREFIX}/include/c-client
|
2002-11-27 03:53:42 +00:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2001-04-05 03:21:41 +00:00
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
@${ECHO} "Warning: You have chosen to include SSL support. Applications/ports that use"
|
2003-10-28 23:34:18 +00:00
|
|
|
@${ECHO} "the cclient library but do not support SSL may stop working or have problems"
|
2002-11-27 03:53:42 +00:00
|
|
|
@${ECHO} "linking. Linking them explicitly with ssl (-lssl -lcrypto) may or may not help."
|
2001-04-05 03:21:41 +00:00
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
.endif
|
2000-07-14 09:27:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|