pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Fix PLIST handling for fen/fsevents/inotify/kqueue on various platforms.
Module Name: pkgsrc-wip
Committed By: Filip Hajny <filip%joyent.com@localhost>
Pushed By: fhajny
Date: Sat Jan 16 08:43:48 2016 +0000
Changeset: 094f604c075d0dd4daa69664ba77a4edb01bf04f
Modified Files:
fswatch/Makefile
fswatch/PLIST
Log Message:
Fix PLIST handling for fen/fsevents/inotify/kqueue on various
platforms.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=094f604c075d0dd4daa69664ba77a4edb01bf04f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
fswatch/Makefile | 19 +++++++++++++++++++
fswatch/PLIST | 6 ++++--
2 files changed, 23 insertions(+), 2 deletions(-)
diffs:
diff --git a/fswatch/Makefile b/fswatch/Makefile
index 09185e8..d1e4029 100644
--- a/fswatch/Makefile
+++ b/fswatch/Makefile
@@ -17,7 +17,26 @@ INFO_FILES= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+= fen fsevents inotify kqueue
+
+.if ${OPSYS} == "Darwin"
+PLIST.fsevents= yes
+.elif ${OPSYS} == "SunOS"
+PLIST.fen= yes
+.endif
+.if defined(PKG_HAVE_KQUEUE)
+PLIST.kqueue= yes
+.endif
+.for dir in ${COMPILER_INCLUDE_DIRS}
+. if exists(${dir}/sys/inotify.h)
+PLIST.inotify= yes
+. endif
+.endfor
+
pre-configure:
cd ${WRKSRC} && ./autogen.sh
+.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/fswatch/PLIST b/fswatch/PLIST
index c705eeb..c0303f5 100644
--- a/fswatch/PLIST
+++ b/fswatch/PLIST
@@ -1,9 +1,11 @@
@comment $NetBSD$
bin/fswatch
include/libfswatch/c++/event.hpp
-include/libfswatch/c++/fen_monitor.hpp
+${PLIST.fen}include/libfswatch/c++/fen_monitor.hpp
+${PLIST.fsevents}include/libfswatch/c++/fsevents_monitor.hpp
include/libfswatch/c++/filter.hpp
-include/libfswatch/c++/inotify_monitor.hpp
+${PLIST.inotify}include/libfswatch/c++/inotify_monitor.hpp
+${PLIST.kqueue}include/libfswatch/c++/kqueue_monitor.hpp
include/libfswatch/c++/libfswatch_exception.hpp
include/libfswatch/c++/libfswatch_map.hpp
include/libfswatch/c++/libfswatch_set.hpp
Home |
Main Index |
Thread Index |
Old Index