Lines 2-50
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= watchman |
4 |
PORTNAME= watchman |
5 |
PORTVERSION= 4.5.0 |
|
|
6 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
|
|
6 |
DISTVERSION= 4.9.0-1115 |
7 |
DISTVERSIONSUFFIX= -gde3c5f68 |
7 |
CATEGORIES= sysutils |
8 |
CATEGORIES= sysutils |
8 |
|
9 |
|
|
|
10 |
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/ |
11 |
PATCHFILES= 7bbea1f8e75337d135815da440835a701fb26379.patch:-p1 |
12 |
|
9 |
MAINTAINER= linpct@gmail.com |
13 |
MAINTAINER= linpct@gmail.com |
10 |
COMMENT= File alteration monitoring service |
14 |
COMMENT= File alteration monitoring service |
11 |
|
15 |
|
12 |
LICENSE= APACHE20 |
16 |
LICENSE= APACHE20 |
|
|
17 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
18 |
|
14 |
BROKEN_mips= fails to build: watchman.h:169: undefined reference to '__sync_add_and_fetch_8' |
19 |
BROKEN_mips= fails to build: watchman.h:169: undefined reference to '__sync_add_and_fetch_8' |
15 |
BROKEN_mips64= fails to build: watchman.h:169: undefined reference to '__sync_add_and_fetch_8' |
20 |
BROKEN_mips64= fails to build: watchman.h:169: undefined reference to '__sync_add_and_fetch_8' |
16 |
|
21 |
|
|
|
22 |
LIB_DEPENDS= libboost_system.so:devel/boost-libs \ |
23 |
libdouble-conversion.so:devel/double-conversion \ |
24 |
libevent.so:devel/libevent \ |
25 |
libfolly.so:devel/folly \ |
26 |
libgflags.so:devel/gflags \ |
27 |
libglog.so:devel/glog \ |
28 |
liblz4.so:archivers/liblz4 \ |
29 |
libpcre.so:devel/pcre \ |
30 |
libsnappy.so:archivers/snappy \ |
31 |
libsodium.so:security/libsodium \ |
32 |
libunwind.so:devel/libunwind \ |
33 |
libzstd.so:archivers/zstd |
34 |
|
35 |
USES= cmake compiler:c++17-lang pkgconfig ssl |
17 |
USE_GITHUB= yes |
36 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= facebook |
37 |
GH_ACCOUNT= facebook |
19 |
|
38 |
|
20 |
USES= autoreconf gmake pkgconfig |
39 |
CMAKE_ON= BUILD_SHARED_LIBS |
21 |
GNU_CONFIGURE= yes |
40 |
|
22 |
CONFIGURE_ENV= ac_cv_prog_HAVE_ARC=false ac_cv_header_sys_inotify_h=no |
|
|
23 |
CONFIGURE_ARGS= --without-python --without-ruby # in separate ports |
24 |
TEST_TARGET= check |
41 |
TEST_TARGET= check |
25 |
|
42 |
|
26 |
PLIST_FILES= bin/${PORTNAME} \ |
43 |
PLIST_FILES= bin/${PORTNAME} |
27 |
"@dir(,,2777) /var/run/${PORTNAME}" |
|
|
28 |
PORTDOCS= README.markdown |
29 |
|
44 |
|
30 |
OPTIONS_DEFINE= BACKTRACE PCRE DOCS |
|
|
31 |
OPTIONS_DEFAULT=BACKTRACE PCRE |
32 |
|
33 |
BACKTRACE_DESC= Stack backtrace support via (lib)execinfo |
34 |
BACKTRACE_LIBS= -lexecinfo |
35 |
|
36 |
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
37 |
PCRE_CONFIGURE_WITH= pcre |
38 |
|
39 |
CPPFLAGS+= -Wno-error |
40 |
|
41 |
post-patch: |
42 |
# https://www.gnu.org/prep/standards/html_node/Directory-Variables.html |
43 |
@${REINPLACE_CMD} -e 's,xprefix/var,localstatedir,' \ |
44 |
-e '\,/etc, { s//$$sysconfdir/; /=/s/^/eval /; }' \ |
45 |
${WRKSRC}/configure.ac |
46 |
@${REINPLACE_CMD} -e '/^docdir = /d' \ |
47 |
-e '/not-empty/d; /chmod g+s/d;' \ |
48 |
${WRKSRC}/Makefile.am |
49 |
|
50 |
.include <bsd.port.mk> |
45 |
.include <bsd.port.mk> |