Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144637265
D54116.id167676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D54116.id167676.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
Wed, Feb 11, 12:28 PM (13 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26820732
Default Alt Text
D54116.id167676.diff (1 KB)
Attached To
Mode
D54116: Uses/inotify.mk: Create
Attached
Detach File
Event Timeline
Log In to Comment