1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/mail/isync/Makefile
2021-06-08 20:18:12 +02:00

43 lines
1.1 KiB
Makefile

# Created by: eivind
PORTNAME= isync
PORTVERSION= 1.4.2
CATEGORIES= mail
MASTER_SITES= SF
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Maintain local copies of remote IMAP folders w/synchronized flags
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
USES= alias bdb cpe perl5 ssl
CPE_VENDOR= oswald_buddenhagen
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sasl=${LOCALBASE} \
--with-ssl=${OPENSSLLIB:H}
MAKE_ARGS+= SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
CPPFLAGS+= -I${BDB_INCLUDE_DIR}
LDFLAGS+= -L${BDB_LIB_DIR}
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base
BROKEN= requires OpenSSL 1.1.1, upgrade to FreeBSD 12.x/13.x or add DEFAULT_VERSIONS+=ssl=openssl to /etc/make.conf
.endif
post-patch:
@${REINPLACE_CMD} -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|\$$(docdir)/examples|\$$(sysconfdir)|g' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|-ansi||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.post.mk>