diff options
author | bapt <bapt@FreeBSD.org> | 2014-03-06 00:09:47 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-03-06 00:09:47 +0800 |
commit | 6ca206943b1a142393fdf118a5b24ac30084ec5c (patch) | |
tree | 741e35951da5154c35225094b7a13f8360831730 /sysutils/grok | |
parent | b231e0cadbb660de2290ba7cfc6b8a420722c8bc (diff) | |
download | freebsd-ports-gnome-6ca206943b1a142393fdf118a5b24ac30084ec5c.tar.gz freebsd-ports-gnome-6ca206943b1a142393fdf118a5b24ac30084ec5c.tar.zst freebsd-ports-gnome-6ca206943b1a142393fdf118a5b24ac30084ec5c.zip |
Use libevent2
Support stage
Diffstat (limited to 'sysutils/grok')
-rw-r--r-- | sysutils/grok/Makefile | 31 | ||||
-rw-r--r-- | sysutils/grok/pkg-plist | 1 |
2 files changed, 16 insertions, 16 deletions
diff --git a/sysutils/grok/Makefile b/sysutils/grok/Makefile index 7929ddafc946..25efd486a915 100644 --- a/sysutils/grok/Makefile +++ b/sysutils/grok/Makefile @@ -2,44 +2,43 @@ PORTNAME= grok PORTVERSION= 1.20110708.1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= sysutils MASTER_SITES= GOOGLE_CODE MAINTAINER= wxs@FreeBSD.org -COMMENT= An expert system for real-time log analysis +COMMENT= Expert system for real-time log analysis -BUILD_DEPENDS= gperf>=3.0.3:${PORTSDIR}/devel/gperf \ - libevent>=1.3:${PORTSDIR}/devel/libevent \ - pcre>=7.6:${PORTSDIR}/devel/pcre \ - tokyocabinet>=1.4.9:${PORTSDIR}/databases/tokyocabinet +OPTIONS_DEFINE= DOCS + +BUILD_DEPENDS= gperf>=3.0.3:${PORTSDIR}/devel/gperf +LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ + libevent-2.0.so:${PORTSDIR}/devel/libevent2 \ + libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet RUN_DEPENDS:= ${BUILD_DEPENDS} MAKE_ENV+= GPERF=${LOCALBASE}/bin/gperf \ EXTRA_CFLAGS=-I${LOCALBASE}/include \ EXTRA_LDFLAGS=-L${LOCALBASE}/lib -USE_GMAKE= yes +USES= gmake USE_LDCONFIG= yes +LDFLAGS+= `pkgconf --libs libevent` +CFLAGS+= `pkgconf --cflags libevent` SUB_FILES= pkg-message PROJECTHOST= semicomplete PORTDOCS= CHANGELIST INSTALL -MAN1= grok.1 -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} 's|PREFIX=|PREFIX?=|; s|-g root|-g wheel|' \ + @${REINPLACE_CMD} 's|PREFIX=|PREFIX?=|; s|-g root|-g wheel|; s|-levent||g' \ ${WRKSRC}/Makefile post-install: - ${INSTALL_MAN} ${WRKSRC}/grok.1 ${PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - @${INSTALL} -d ${DOCSDIR} - @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif - @${CAT} ${PKGMESSAGE} + ${INSTALL_MAN} ${WRKSRC}/grok.1 ${STAGEDIR}${PREFIX}/man/man1 + @${INSTALL} -d ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/sysutils/grok/pkg-plist b/sysutils/grok/pkg-plist index ae43b6d599fa..055404fcd8dc 100644 --- a/sysutils/grok/pkg-plist +++ b/sysutils/grok/pkg-plist @@ -9,6 +9,7 @@ include/grok_match.h include/grok_pattern.h include/grok_version.h lib/libgrok.so +man/man1/grok.1.gz %%DATADIR%%/patterns/base @dirrm %%DATADIR%%/patterns @dirrm %%DATADIR%% |