freebsd-ports/net/ruby-ldap/Makefile
Tijl Coosemans 37f54e0f66 net/openldap24-*:
- Convert to USES=libtool and bump dependent ports
- Avoid USE_AUTOTOOLS
- Don't use PTHREAD_LIBS
- Use MAKE_CMD

databases/glom:
- Drop :keepla
- Add INSTALL_TARGET=install-strip

databases/libgda4* databases/libgda5*:
- Convert to USES=libtool and bump dependent ports
- USES=tar:xz
- Use INSTALL_TARGET=install-strip
- Use @sample

databases/libgdamm:
- Drop :keepla
- USES=tar:bzip2
- Use INSTALL_TARGET=install-strip

databases/libgdamm5:
- Add INSTALL_TARGET=install-strip
- Drop --enable-static (inherited from old repocopy)

devel/anjuta x11-toolkits/py-gnome-extras:
- Drop :keepla

dns/powerdns dns/powerdns-devel:
- Convert to USES=libtool
- Add INSTALL_TARGET=install-strip
- Disable static modules
- Stop creating library symlinks with .0 suffix, not needed for dynamically
  opened modules

mail/dovecot2:
- Add USES=libtool

mail/dovecot2-pigeonhole:
- Drop CONFIGURE_TARGET (incorrect for Dragonfly)
- Add USES=libtool and INSTALL_TARGET=install-strip

math/gnumeric:
- USES=libtool tar:xz

Approved by:	portmgr (implicit, bump unstaged ports)
2014-07-24 18:34:16 +00:00

63 lines
1.8 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= ldap
PORTVERSION= 0.9.10
PORTREVISION= 2
CATEGORIES= net ruby
MASTER_SITES= RF
MASTER_SITE_SUBDIR= ruby-${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Ruby interface to LDAP API based on RFC1823
OPTIONS_DEFINE= DOCS
WITH_LDAP_BACKEND?= openldap2
.if ${WITH_LDAP_BACKEND} == ldapsdk
LIB_DEPENDS= ${LOCALBASE}/mozilla/directory/lib/libldap.so.1:${PORTSDIR}/net/ldapsdk
.else
USE_OPENLDAP= yes
.endif
USE_BZIP2= yes
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
.include <bsd.port.pre.mk>
# Configure options:
# --with-ldap specify the ldap directory
# --with-ldap-incdir specify the directory which contains ldap.h and lber.h
# --with-ldap-libdir specify the directory which contains ldap libraries
# --with-netscape specify this to use Netscape SDK
# --with-openldap2 specify this to use OpenLDAP-2.x
.if ${WITH_LDAP_BACKEND} == openldap2
USE_OPENSSL= yes
CONFIGURE_ARGS?= --with-openldap2 \
--with-ldap-dir="${LOCALBASE}"
.elif ${WITH_LDAP_BACKEND} == ldapsdk
CONFIGURE_ARGS?= --with-netscape \
--with-ldap-dir="${LOCALBASE}/mozilla/directory"
.endif
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog FAQ README TODO
post-patch:
${RUBY} -i -pe 'gsub %r|/usr/local/openldap|, "${PREFIX}"' \
-e 'gsub /ruby-1\.6/, "${RUBY}"' ${WRKSRC}/test/test.sh
post-install:
${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
@(cd ${WRKSRC}/test/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/)
@(cd ${WRKSRC}/example/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/)
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODDOCDIR}/
.include <bsd.port.post.mk>