1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00
Muhammad Moinur Rahman 6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00

54 lines
1.5 KiB
Makefile

PORTNAME= cone
PORTVERSION= 1.7
CATEGORIES= mail
# This is for beta versions, leave it in please:
#MASTER_SITES= http://www.courier-mta.org/beta/${PORTNAME}/ \
# http://www.lerctr.org/~ler/
# This is for release versions, leave it in please:
MASTER_SITES= SF/courier/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Console based mail client with POP3/IMAP/SMAP support
WWW= https://www.courier-mta.org/cone/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.GPL
BUILD_DEPENDS= gpgv:security/gnupg1
LIB_DEPENDS= libaspell.so:textproc/aspell \
libcourier-unicode.so:devel/courier-unicode \
libidn.so:dns/libidn
RUN_DEPENDS= gpgv:security/gnupg1
USES= compiler:c++11-lang fam gettext gmake gnome iconv ldap:24 \
localbase:ldflags ncurses perl5 pkgconfig shebangfix ssl \
tar:bzip2
USE_GNOME= libxml2
SHEBANG_FILES= sysconftool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --exec-prefix=${PREFIX} \
--with-certdb=${PREFIX}/share/cone/rootcerts \
--with-notice=unicode
INSTALL_TARGET= install-strip
CPPFLAGS+= -D_XOPEN_SOURCE_EXTENDED
OPTIONS_DEFINE= DOCS
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/leaf
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mailtool
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/cone
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${STAGEDIR}${PREFIX}/sbin/cone-sysconftool
@${RM} ${STAGEDIR}${PREFIX}/share/cone/rootcerts/.0
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>