- Fix build with clang

- Use PLIST_FILES
- Remove extra tabs and spaces
This commit is contained in:
Alexander Logvinov 2012-01-03 05:00:28 +00:00
parent 7d4b33face
commit d96f9bb669
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288452
2 changed files with 9 additions and 10 deletions

View file

@ -12,29 +12,29 @@ MASTER_SITES= ftp://ftp.corpit.ru/home/mjt/mdpop3d/
MAINTAINER= avl@FreeBSD.org
COMMENT= A simple and small POP3 daemon implementation with Maildir support
PLIST_FILES= libexec/mdpop3d
MAN8= mdpop3d.8
MANCOMPRESSED= no
OPTIONS= PAM "Build with PAM support" off \
APOP "Build with APOP command support (requires PAM)" off
OPTIONS= PAM "Build with PAM support" off \
APOP "Build with APOP command support (requires PAM)" off
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|LIBS = -lpam -ldl|LIBS = -lpam|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|LIBS = -lpam -ldl|LIBS = -lpam|;/^CC[[:blank:]]*=/d' \
${WRKSRC}/Makefile
.if defined(WITHOUT_PAM)
@${REINPLACE_CMD} -e 's|LIBS = -lpam|LIBS = -lcrypt|' \
${WRKSRC}/Makefile
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|DEFS = -DUSE_PAM|#DEFS = -DUSE_PAM|' \
${WRKSRC}/Makefile
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \
${WRKSRC}/Makefile
${WRKSRC}/Makefile
.endif
.if defined(WITHOUT_APOP)
@${REINPLACE_CMD} -e 's|OPTS = -DUSE_APOP|#OPTS = -DUSE_APOP|' \
${WRKSRC}/Makefile
${WRKSRC}/Makefile
.endif
do-install:

View file

@ -1 +0,0 @@
libexec/mdpop3d