Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.21 2017/04/14 08:24:03 ajacoutot Exp $
  2. COMMENT= update LDAP entries with a text editor
  3. DISTNAME= ldapvi-1.7
  4. CATEGORIES= editors
  5. REVISION= 7
  6. HOMEPAGE= http://www.lichteblau.com/ldapvi.html
  7. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB += c crypto curses glib-2.0 intl lber ldap popt readline
  11. WANTLIB += ssl
  12. MASTER_SITES= http://www.lichteblau.com/download/
  13. BUILD_DEPENDS= textproc/libxslt
  14. LIB_DEPENDS= devel/glib2 \
  15. databases/openldap \
  16. devel/popt
  17. MAKE_FILE= GNUmakefile
  18. USE_GMAKE= Yes
  19. CONFIGURE_STYLE= gnu
  20. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  21. LDFLAGS="-L${LOCALBASE}/lib"
  22. NO_TEST= Yes
  23. pre-build:
  24. sed -i "s,/etc/ldap,${SYSCONFDIR}/openldap,g" ${WRKSRC}/ldapvi.1
  25. do-install:
  26. cd ${WRKSRC}/manual && ${MAKE_PROGRAM} ${MAKE_FILE} manual.html
  27. ${INSTALL_DATA_DIR} ${PREFIX}/bin
  28. ${INSTALL_DATA_DIR} ${PREFIX}/man/man1
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ldapvi
  30. ${INSTALL_PROGRAM} ${WRKSRC}/ldapvi ${PREFIX}/bin
  31. ${INSTALL_DATA} ${WRKSRC}/ldapvi.1 ${PREFIX}/man/man1
  32. ${INSTALL_DATA} ${WRKSRC}/manual/bg.png \
  33. ${WRKSRC}/manual/manual.css \
  34. ${WRKSRC}/manual/manual.html ${PREFIX}/share/doc/ldapvi
  35. .include <bsd.port.mk>