Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144489994
D54116.1774942491.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D54116.1774942491.diff
View Options
diff --git a/Mk/Uses/inotify.mk b/Mk/Uses/inotify.mk
new file mode 100644
--- /dev/null
+++ b/Mk/Uses/inotify.mk
@@ -0,0 +1,38 @@
+# Handle dependency on the libinotify port
+# inotify was added to base in FreeBSD 15
+#
+# Feature: inotify
+# Valid ARGS: none
+#
+# MAINTAINER: adamw@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_INOTIFY_MK)
+_INCLUDE_USES_INOTIFY_MK= yes
+
+. if !exists(/usr/include/sys/inotify.h)
+INOTIFY_PORT= true
+INOTIFY_INCLUDE_PATH= ${LOCALBASE}/include/sys
+INOTIFY_LIB= -linotify
+INOTIFY_LIB_PATH= ${LOCALBASE}/lib/libinotify.so
+
+LIB_DEPENDS+= libinotify.so:devel/libinotify
+
+. else
+INOTIFY_PORT=
+INOTIFY_INCLUDE_PATH= /usr/include/sys
+INOTIFY_LIB=
+INOTIFY_LIB_PATH= /usr/lib/libc.so
+
+. if exists(${LOCALBASE}/include/sys/inotify.h)
+LIB_DEPENDS+= libinotify.so:devel/libinotify
+. endif
+
+CMAKE_ARGS+= -DINOTIFY_INCLUDE_DIR=${INOTIFY_INCLUDE_PATH} \
+ -DINOTIFY_LIBRARIES=${INOTIFY_LIB_PATH} \
+ -DINOTIFY_LIBRARY=${INOTIFY_LIB_PATH} \
+ -DLIBINOTIFY_INCLUDE_DIR=${INOTIFY_INCLUDE_PATH} \
+ -DLIBINOTIFY_LIBRARIES=${INOTIFY_LIB_PATH} \
+ -DLIBINOTIFY_LIBRARY=${INOTIFY_LIB_PATH}
+. endif
+
+.endif # !defined(_INCLUDE_USES_INOTIFY_MK
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 31, 7:34 AM (6 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28233873
Default Alt Text
D54116.1774942491.diff (1 KB)
Attached To
Mode
D54116: Uses/inotify.mk: Create
Attached
Detach File
Event Timeline
Log In to Comment