freebsd-ports/sysutils/ldapvi/Makefile
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

33 lines
810 B
Makefile

PORTNAME= ldapvi
PORTVERSION= 1.7
PORTREVISION= 6
CATEGORIES= sysutils net
MASTER_SITES= http://www.lichteblau.com/download/ \
LOCAL/sbz
MAINTAINER= sbz@FreeBSD.org
COMMENT= Tool to update LDAP entries with a text editor
WWW= http://www.lichteblau.com/ldapvi.html
LICENSE= GPLv2
LIB_DEPENDS= libpopt.so:devel/popt
USES= gmake gnome iconv ldap ncurses pkgconfig
USE_GNOME= glib20
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
EXTRA_PATCHES= ${FILESDIR}/0010-renamed-getline.patch:-p2
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz \
${DOCSDIR_REL}/manual.css ${DOCSDIR_REL}/manual.xml \
${DOCSDIR_REL}/bg.png ${DOCSDIR_REL}/html.xsl
post-patch:
@${REINPLACE_CMD} -e 's/-lssl/-lcrypto/' ${WRKSRC}/configure
.include <bsd.port.mk>