pkgsrc-WIP-changes archive

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

zoneminder: Tell CMake the exact answers to the details that it is meant to be probing for. This is apparently how you Win when using CMake. Code is based on the same solution in audio/chromaprint.



Module Name:	pkgsrc-wip
Committed By:	davidsainty <david.sainty%gmail.com@localhost>
Pushed By:	dsainty
Date:		Sun Jan 23 10:40:13 2022 +1300
Changeset:	8748b22fd4a7812964ee7f30d15c242745c7a2a8

Modified Files:
	zoneminder/Makefile

Log Message:
zoneminder: Tell CMake the exact answers to the details that it is meant to be probing for.  This is apparently how you Win when using CMake.  Code is based on the same solution in audio/chromaprint.

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

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

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

diffs:
diff --git a/zoneminder/Makefile b/zoneminder/Makefile
index 8d654abe2d..aeaf5a542f 100644
--- a/zoneminder/Makefile
+++ b/zoneminder/Makefile
@@ -112,6 +112,17 @@ CONFIGURE_ARGS+=	--with-ffmpeg=${BUILDLINK_PREFIX.ffmpeg2}
 CONFIGURE_ENV+=		PATH_FFMPEG=${BUILDLINK_PREFIX.ffmpeg2}/bin/ffmpeg2
 CONFIGURE_ENV+=		OPT_FFMPEG=yes
 
+.if ${OPSYS} == "Darwin"
+SOEXT=	dylib
+.else
+SOEXT=	so
+.endif
+
+.for lib in AVFORMAT AVCODEC AVDEVICE AVUTIL SWSCALE
+CMAKE_ARGS+=	-D${lib}_INCLUDE_DIR=${BUILDLINK_PREFIX.ffmpeg2}/include/ffmpeg2
+CMAKE_ARGS+=	-D${lib}_LIBRARIES=${BUILDLINK_PREFIX.ffmpeg2}/lib/ffmpeg2/lib${lib:tl}.${SOEXT}
+.endfor
+
 # The backtrace requires Linux's unportable <execinfo.h> header.
 CONFIGURE_ARGS+=	--enable-crashtrace=no
 


Home | Main Index | Thread Index | Old Index