# $OpenBSD: Makefile,v 1.21 2002/10/04 08:45:32 jakob Exp $ COMMENT= "RFC 2222 SASL (Simple Authentication and Security Layer)" DISTNAME= cyrus-sasl-1.5.27 PKGNAME= ${DISTNAME}p1 CATEGORIES= security MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/ HOMEPAGE= http://asg.web.cmu.edu/sasl/ MAINTAINER= Jakob Schlyter PERMIT_PACKAGE_CDROM= yes PERMIT_PACKAGE_FTP= yes PERMIT_DISTFILES_CDROM= yes PERMIT_DISTFILES_FTP= yes SEPARATE_BUILD= concurrent CONFIGURE_STYLE= gnu CONFIGURE_ENV+= LDFLAGS='${LDFLAGS}' CONFIGURE_ARGS+= ${CONFIGURE_SHARED} CONFIGURE_ARGS+= --enable-static \ --enable-login \ --enable-krb4="/usr" \ --enable-gssapi="/usr" \ --includedir="${PREFIX}/include/sasl" \ --with-pwcheck="/var/pwcheck" MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/config FLAVORS= db FLAVOR?= .if ${FLAVOR:L:Mdb} LIB_DEPENDS+= db::databases/db CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+= --with-dblib=berkeley flavor-patch: cd ${WRKSRC} && patch < ${FILESDIR}/patch-db .else CONFIGURE_ARGS+= --with-dblib=ndbm flavor-patch: .endif post-patch: flavor-patch @cd ${WRKSRC}/config; \ ${PATCH} --forward --quiet -E < \ ${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltconfig && \ ${PATCH} --forward --quiet -E < \ ${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltmain_sh post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sasl ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/sasl ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/sasl .include