openbsd-ports/editors/ldapvi/Makefile
sthen 1c30160016 Add various patches to ldapvi from upstream git/mailing list submissions:
- add -y support to read password from a file
- remove useless header that vim whines about
- preserve order of attribute values
- fix possible LP64 issue (improper sentinel)
- allow editors/pagers with arguments
- getline namespace collision, upstream git 256ced029c
- fix hash generation

OK ajacoutot@
2012-03-02 08:01:06 +00:00

56 lines
1.3 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.14 2012/03/02 08:01:06 sthen Exp $
COMMENT= update LDAP entries with a text editor
DISTNAME= ldapvi-1.7
CATEGORIES= editors
REVISION= 3
HOMEPAGE= http://www.lichteblau.com/ldapvi.html
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.lichteblau.com/download/
WANTLIB= c curses crypto readline ssl
MODULES= devel/gettext
BUILD_DEPENDS= textproc/libxslt
LIB_DEPENDS= devel/glib2 \
databases/openldap \
devel/popt
WANTLIB += glib-2.0>=0.8 lber ldap popt
MAKE_FILE= GNUmakefile
USE_GMAKE= Yes
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
NO_REGRESS= Yes
pre-build:
@perl -pi -e "s,/etc/ldap,${SYSCONFDIR}/openldap,g" ${WRKSRC}/ldapvi.1
do-install:
cd ${WRKSRC}/manual && ${MAKE_PROGRAM} ${MAKE_FILE} manual.html
${INSTALL_DATA_DIR} ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ldapvi
${INSTALL_PROGRAM} ${WRKSRC}/ldapvi ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/ldapvi.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/manual/bg.png \
${WRKSRC}/manual/manual.css \
${WRKSRC}/manual/manual.html ${PREFIX}/share/doc/ldapvi
.include <bsd.port.mk>