- Fix build with custom LOCALBASE

- use DOCSDIR macro

Reported by:	QATty
This commit is contained in:
Ion-Mihai Tetcu 2009-06-02 13:35:42 +00:00
parent 7e8ced086a
commit 0400662365
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235027
2 changed files with 17 additions and 17 deletions

View File

@ -18,13 +18,17 @@ COMMENT= The cyrus IMSP (Internet Message Support Protocol) server
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
GNU_CONFIGURE= YES
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ARGS= --prefix=${PREFIX} \
--with-sasldir=${LOCALBASE} \
--with-sasl=${LOCALBASE} \
--with-auth=unix
USE_RC_SUBR= imspd
DOCSDIR= ${PREFIX}/share/doc/imspd
pre-configure:
post-patch:
${REINPLACE_CMD} -e "s|<sasl.h>|<sasl2/sasl.h>|" \
${WRKSRC}/configure
@ -35,17 +39,13 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/imsp/options.sample \
/var/imsp/options.dist
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/imspd
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/notes/Setup-instructions \
${PREFIX}/share/doc/imspd
${INSTALL_DATA} ${WRKSRC}/notes/option.registry \
${PREFIX}/share/doc/imspd
${INSTALL_DATA} ${WRKSRC}/notes/Changes-Todo \
${PREFIX}/share/doc/imspd
${INSTALL_DATA} ${WRKSRC}/notes/imsp.implementation \
${PREFIX}/share/doc/imspd
${INSTALL_DATA} ${WRKSRC}/notes/imsp.implementation.updates \
${PREFIX}/share/doc/imspd
${WRKSRC}/notes/option.registry \
${WRKSRC}/notes/Changes-Todo \
${WRKSRC}/notes/imsp.implementation \
${WRKSRC}/notes/imsp.implementation.updates \
${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}

View File

@ -1,10 +1,10 @@
lib/sasl2/imspd.conf
sbin/imspd
%%PORTDOCS%%share/doc/imspd/Setup-instructions
%%PORTDOCS%%share/doc/imspd/option.registry
%%PORTDOCS%%share/doc/imspd/Changes-Todo
%%PORTDOCS%%share/doc/imspd/imsp.implementation
%%PORTDOCS%%share/doc/imspd/imsp.implementation.updates
%%PORTDOCS%%@dirrm share/doc/imspd
%%PORTDOCS%%%%DOCSDIR%%/Setup-instructions
%%PORTDOCS%%%%DOCSDIR%%/option.registry
%%PORTDOCS%%%%DOCSDIR%%/Changes-Todo
%%PORTDOCS%%%%DOCSDIR%%/imsp.implementation
%%PORTDOCS%%%%DOCSDIR%%/imsp.implementation.updates
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@cwd /var
imsp/options.dist