Lines 4-29
Link Here
|
4 |
PORTNAME= inotify-tools |
4 |
PORTNAME= inotify-tools |
5 |
PORTVERSION= 3.14.01 |
5 |
PORTVERSION= 3.14.01 |
6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
|
|
7 |
PORTREVISION= 1 |
7 |
CATEGORIES= sysutils |
8 |
CATEGORIES= sysutils |
8 |
|
9 |
|
9 |
MAINTAINER= yuri@rawbw.com |
10 |
MAINTAINER= yuri@rawbw.com |
10 |
COMMENT= Command-line utilities to watch for file events |
11 |
COMMENT= Command-line utilities to watch for file events |
11 |
|
12 |
|
12 |
LICENSE= AGPLv3 |
13 |
LICENSE= GPLv2 |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
15 |
|
14 |
LIB_DEPENDS= libinotify.so:devel/libinotify |
16 |
LIB_DEPENDS= libinotify.so:devel/libinotify |
15 |
|
17 |
|
|
|
18 |
USES= autoreconf gmake libtool localbase |
16 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= rvoicilas |
20 |
GH_ACCOUNT= rvoicilas |
18 |
GH_TAGNAME= 1df9af4 |
21 |
GH_TAGNAME= 1df9af4 |
19 |
|
|
|
20 |
USES= autoreconf gmake libtool |
21 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ARGS= --disable-doxygen |
23 |
CONFIGURE_ARGS= --disable-doxygen |
23 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
24 |
INSTALL_TARGET= install-strip |
25 |
INSTALL_TARGET= install-strip |
25 |
|
26 |
|
26 |
CPPFLAGS+= -I${LOCALBASE}/include |
27 |
OPTIONS_DEFINE= STATIC |
27 |
LDFLAGS+= -L${LOCALBASE}/lib |
28 |
OPTIONS_SUB= yes |
28 |
|
29 |
|
|
|
30 |
post-patch: |
31 |
@${REINPLACE_CMD} -e 's|stat64|stat|' \ |
32 |
${WRKSRC}/src/common.c \ |
33 |
${WRKSRC}/libinotifytools/src/inotifytools.c |
34 |
|
35 |
post-build-STATIC-on: |
36 |
@cd ${WRKSRC}/src && \ |
37 |
${CC} -pthread ${LDFLAGS} -static -o inotifywait.static inotifywait.o common.o ../libinotifytools/src/.libs/libinotifytools.a ${LOCALBASE}/lib/libinotify.a && \ |
38 |
${CC} -pthread ${LDFLAGS} -static -o inotifywatch.static inotifywatch.o common.o ../libinotifytools/src/.libs/libinotifytools.a ${LOCALBASE}/lib/libinotify.a |
39 |
|
40 |
post-install-STATIC-on: |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/src/inotifywait.static ${STAGEDIR}${PREFIX}/bin |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/src/inotifywatch.static ${STAGEDIR}${PREFIX}/bin |
43 |
|
29 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |