pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Replicate the polkit hack for cmake. It works there now, though I'm not sure we get the same guarantee it will always work under cmake that we do under configure.



Module Name:	pkgsrc-wip
Committed By:	davidsainty <david.sainty%gmail.com@localhost>
Pushed By:	dsainty
Date:		Sat Jan 15 12:18:30 2022 +1300
Changeset:	7d3f9e5e161856b7bd4e9e205acb9f8c1651842d

Modified Files:
	zoneminder/Makefile

Log Message:
Replicate the polkit hack for cmake.  It works there now, though I'm not sure we get the same guarantee it will always work under cmake that we do under configure.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d3f9e5e161856b7bd4e9e205acb9f8c1651842d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zoneminder/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diffs:
diff --git a/zoneminder/Makefile b/zoneminder/Makefile
index b557cb43ce..0cfec511ea 100644
--- a/zoneminder/Makefile
+++ b/zoneminder/Makefile
@@ -91,7 +91,10 @@ CONFIGURE_ARGS+=	--localstatedir=${VARBASE}
 
 # PolicyKit doesn't actually seem to be necessary.  This hack disables
 # configure's hunt for PolicyKit, but has no other apparent ill effects.
+# cmake needs an almost identical hack - though resorting to patching might
+# be safer.
 CONFIGURE_ENV+=		POLKIT_CFLAGS=" " POLKIT_LIBS=" "
+CMAKE_ARGS+=		-DPOLKIT_LIBRARIES=" " -DPOLKIT_INCLUDE_DIR=" "
 
 PTHREAD_AUTO_VARS=	yes
 .include "../../mk/pthread.buildlink3.mk"


Home | Main Index | Thread Index | Old Index