pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mkvtoolnix mkvtoolnix: Try to fix build on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/110abcdf1b9b
branches:  trunk
changeset: 375715:110abcdf1b9b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Mar 21 21:30:16 2022 +0000

description:
mkvtoolnix: Try to fix build on various OS.

Not sure how this worked, the build system is incredibly opaque and tries to
build Windows-only files on at least NetBSD and SunOS.

diffstat:

 multimedia/mkvtoolnix/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 2bd2c52dbfff -r 110abcdf1b9b multimedia/mkvtoolnix/Makefile
--- a/multimedia/mkvtoolnix/Makefile    Mon Mar 21 17:58:08 2022 +0000
+++ b/multimedia/mkvtoolnix/Makefile    Mon Mar 21 21:30:16 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.190 2022/03/14 11:09:23 adam Exp $
+# $NetBSD: Makefile,v 1.191 2022/03/21 21:30:16 jperkin Exp $
 
 DISTNAME=      mkvtoolnix-66.0.0
 CATEGORIES=    multimedia
@@ -39,6 +39,14 @@
 
 INSTALL_ENV+=  SHELL=${SH:Q}
 
+.include "../../mk/bsd.prefs.mk"
+
+pre-build:
+       cd ${WRKSRC} && ${RM} src/common/*/windows.cpp
+.if ${OPSYS} != "Darwin"
+       cd ${WRKSRC} && ${RM} src/common/*/macos.cpp
+.endif
+
 do-build:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE}
 



Home | Main Index | Thread Index | Old Index