2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-10-30 23:49:54 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mboxgrep
|
2003-12-17 07:52:51 +01:00
|
|
|
PORTVERSION= 0.7.9
|
2012-12-10 20:11:11 +01:00
|
|
|
PORTREVISION= 3
|
2001-10-30 23:49:54 +01:00
|
|
|
CATEGORIES= mail
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF
|
2001-10-30 23:49:54 +01:00
|
|
|
|
2002-03-14 01:11:40 +01:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Utility to scan mailboxes for messages matching a regular expression
|
2001-10-30 23:49:54 +01:00
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
2012-12-10 20:11:11 +01:00
|
|
|
LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre
|
2001-10-30 23:49:54 +01:00
|
|
|
.endif
|
|
|
|
|
2014-05-12 18:32:34 +02:00
|
|
|
USES= uidfix
|
2001-10-30 23:49:54 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2007-03-09 09:05:08 +01:00
|
|
|
USE_OPENSSL= yes
|
2001-10-30 23:49:54 +01:00
|
|
|
|
2003-12-17 07:52:51 +01:00
|
|
|
INFO= mboxgrep
|
2001-10-30 23:49:54 +01:00
|
|
|
|
2003-12-17 07:52:51 +01:00
|
|
|
DOCS= ChangeLog NEWS README TODO
|
2001-10-30 23:49:54 +01:00
|
|
|
|
2003-12-22 21:01:04 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,void \*tmpp,FILE \*tmpp,g' ${WRKSRC}/src/main.c
|
2014-05-12 18:32:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,$$(prefix),$$(DESTDIR)$$(prefix),g' \
|
|
|
|
-e 's,$$(mandir),$$(DESTDIR)$$(mandir),g' \
|
|
|
|
-e 's,$$(infodir),$$(DESTDIR)$$(infodir),g' \
|
|
|
|
${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in
|
2003-12-22 21:01:04 +01:00
|
|
|
|
2001-10-30 23:49:54 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2014-05-12 18:32:34 +02:00
|
|
|
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
|
2001-10-30 23:49:54 +01:00
|
|
|
.for f in ${DOCS}
|
2014-05-12 18:32:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2001-10-30 23:49:54 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|