pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mkvtoolnix mkvtoolnix: fix buildling on mac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48668c7d7f76
branches:  trunk
changeset: 391634:48668c7d7f76
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Feb 12 23:46:23 2019 +0000

description:
mkvtoolnix: fix buildling on macOS; remove DRAKE_FLAGS because current rake automatically chosses number of jobs

diffstat:

 multimedia/mkvtoolnix/Makefile               |  10 ++--------
 multimedia/mkvtoolnix/distinfo               |   4 ++--
 multimedia/mkvtoolnix/patches/patch-Rakefile |  22 +++++++++++-----------
 3 files changed, 15 insertions(+), 21 deletions(-)

diffs (69 lines):

diff -r e6930a1a9ef0 -r 48668c7d7f76 multimedia/mkvtoolnix/Makefile
--- a/multimedia/mkvtoolnix/Makefile    Tue Feb 12 23:25:28 2019 +0000
+++ b/multimedia/mkvtoolnix/Makefile    Tue Feb 12 23:46:23 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.125 2019/02/11 08:18:07 adam Exp $
+# $NetBSD: Makefile,v 1.126 2019/02/12 23:46:23 adam Exp $
 
 DISTNAME=      mkvtoolnix-31.0.0
 CATEGORIES=    multimedia
@@ -35,14 +35,8 @@
 
 INSTALL_ENV+=  SHELL=${SH:Q}
 
-.if !empty(MAKE_JOBS)
-DRAKE_ARGS=    -v -j${MAKE_JOBS}
-.else
-DRAKE_ARGS=    # empty
-.endif
-
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} ${DRAKE_ARGS}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE}
 
 do-install:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${RAKE} install
diff -r e6930a1a9ef0 -r 48668c7d7f76 multimedia/mkvtoolnix/distinfo
--- a/multimedia/mkvtoolnix/distinfo    Tue Feb 12 23:25:28 2019 +0000
+++ b/multimedia/mkvtoolnix/distinfo    Tue Feb 12 23:46:23 2019 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.62 2019/02/11 08:18:07 adam Exp $
+$NetBSD: distinfo,v 1.63 2019/02/12 23:46:23 adam Exp $
 
 SHA1 (mkvtoolnix-31.0.0.tar.xz) = 0a7dd9b4e90e222450dc3cc83560f1d77e54deac
 RMD160 (mkvtoolnix-31.0.0.tar.xz) = 32cef0bce6f968b45f7fa200eab5899557ea7581
 SHA512 (mkvtoolnix-31.0.0.tar.xz) = 085bc7d5a2b2e692d584bef5f31aab8dc25883cc93d9f2b2c35ea6356d64536763b6e9f7cef2dbaf1b789e73c05cb5f9e76ce76c54f034aa9d46c30983d1a5b7
 Size (mkvtoolnix-31.0.0.tar.xz) = 7282492 bytes
-SHA1 (patch-Rakefile) = bac8a1e581725e329079ab0acccd83795d707594
+SHA1 (patch-Rakefile) = 85e44c7649dc27207d127a2957d3a9aeed49ec7e
 SHA1 (patch-build-config.in) = a9072de691ee3e011b472280dd276a67f1799fac
 SHA1 (patch-src_common_locale.cpp) = 46ba293fb0dee8af0e6e6fbe17c725a509101109
diff -r e6930a1a9ef0 -r 48668c7d7f76 multimedia/mkvtoolnix/patches/patch-Rakefile
--- a/multimedia/mkvtoolnix/patches/patch-Rakefile      Tue Feb 12 23:25:28 2019 +0000
+++ b/multimedia/mkvtoolnix/patches/patch-Rakefile      Tue Feb 12 23:46:23 2019 +0000
@@ -1,14 +1,14 @@
-$NetBSD: patch-Rakefile,v 1.1 2018/12/02 17:13:41 adam Exp $
+$NetBSD: patch-Rakefile,v 1.2 2019/02/12 23:46:23 adam Exp $
 
-Fix linking on macOS.
+Fix buildling on macOS.
 
---- Rakefile.orig      2018-12-02 17:00:02.000000000 +0000
+--- Rakefile.orig      2019-02-12 23:14:10.000000000 +0000
 +++ Rakefile
-@@ -1111,6 +1111,7 @@ if $build_mkvtoolnix_gui
-     libraries($common_libs, :qt).
-     libraries("-mwindows", :powrprof, :if => $building_for[:windows]).
-     libraries("-framework IOKit", :if => $building_for[:macos]).
-+    libraries("-framework CoreFoundation", :if => $building_for[:macos]).
-     libraries($custom_libs).
-     create
- end
+@@ -145,7 +145,6 @@ def setup_globals
+   cxxflags                 = "#{cflags_common} #{c(:STD_CXX)}"
+   cxxflags                += " -Woverloaded-virtual" if c(:COMPILER_TYPE) != "gcc" # too many false positives in EbmlElement.h on g++ 8
+   cxxflags                += " -Wnon-virtual-dtor -Wextra -Wno-missing-field-initializers #{c(:WSHADOW_COMPATIBLE_LOCAL)} #{c(:WNO_MAYBE_UNINITIALIZED)}"
+-  cxxflags                += " -fvisibility=hidden -fvisibility-inlines-hidden" if $building_for[:macos]
+   cxxflags                += " #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:USER_CXXFLAGS)}"
+ 
+   ldflags                  = ""



Home | Main Index | Thread Index | Old Index