megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
annotate media-libs/blackmagic-desktop-video/blackmagic-desktop-video-12.5.ebuild @ 258:1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
commit 04d1b06f1ef195542b349745a54363216d62a85a
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Mon Aug 7 19:03:55 2023 +0200
media-libs/blackmagic-desktop-video: integrate udev_reload as asked
commit e978764acb35ba478b0a9c01782adc148a2c9dd5
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Mon Aug 7 18:53:27 2023 +0200
BlackMagic Desktop Video: bump to 12.5 (SDK 12.5.1)
author | Migration Sync <gentoo-overlay@megacoffee.net> |
---|---|
date | Mon, 07 Aug 2023 17:15:02 +0000 |
parents | |
children |
rev | line source |
---|---|
258
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
1 # Copyright 1999-2023 Gentoo Foundation |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
3 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
4 # TODOs: |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
5 # - fix QA notice about installing symlinks in /usr/lib |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
6 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
7 EAPI=8 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
8 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
9 inherit linux-info linux-mod udev |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
10 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
11 DESCRIPTION="Desktop Video - drivers and tools for products by Blackmagic Design including DeckLink, UltraStudio and Intensity" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
12 HOMEPAGE="http://www.blackmagicdesign.com/" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
13 HOMEPAGE_DOWNLOAD_NAME="Desktop Video ${PV}" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
14 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
15 SRC_URI="Blackmagic_Desktop_Video_Linux_${PV}.tar.gz" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
16 DESKTOP_VIDEO_SHORT_VERSION="12.5" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
17 DESKTOP_VIDEO_VERSION="12.5a15" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
18 CONTAINER_DIR="Blackmagic_Desktop_Video_Linux_${DESKTOP_VIDEO_SHORT_VERSION}" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
19 UNPACKED_DIR="desktopvideo-${DESKTOP_VIDEO_VERSION}-x86_64" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
20 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
21 LICENSE="BlackmagicDesktopVideo" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
22 SLOT="0" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
23 KEYWORDS="~amd64" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
24 #IUSE="autostart +desktop patch_compat" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
25 IUSE="autostart +desktop" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
26 RESTRICT="fetch splitdebug strip" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
27 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
28 # dependencies found via command: (ldd would include transitive dependencies) |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
29 # for file in /usr/lib/libDeckLink* /usr/lib/blackmagic/DesktopVideo/* /usr/lib/blackmagic/DesktopVideo/plugins/*/*; do objdump -p $file | grep NEEDED; done 2>/dev/null | cut -b24- | sort | uniq | grep -vE 'lib(Qt5(Core|Network|Gui|Widgets)|qxcb|qgtk2|DeckLink)' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
30 # equery belongs $(for file in /usr/lib/libDeckLink* /usr/lib/blackmagic/DesktopVideo/* /usr/lib/blackmagic/DesktopVideo/plugins/*/*; do objdump -p $file | grep NEEDED; done 2>/dev/null | cut -b24- | sort | uniq | grep -vE 'lib(Qt5(Core|Network|Gui|Widgets)|qxcb|qgtk2|DeckLink)') |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
31 DEPEND="" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
32 RDEPEND="${DEPEND} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
33 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
34 desktop? ( |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
35 media-libs/freetype |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
36 media-libs/fontconfig |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
37 media-libs/libglvnd |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
38 sys-apps/dbus |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
39 x11-libs/libICE |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
40 x11-libs/libSM |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
41 x11-libs/libX11 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
42 x11-libs/libXext |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
43 x11-libs/libXrender |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
44 x11-libs/libxcb |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
45 ) |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
46 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
47 dev-libs/glib |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
48 dev-libs/libusb |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
49 sys-apps/util-linux |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
50 sys-devel/gcc |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
51 sys-libs/glibc |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
52 sys-libs/libcxx |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
53 sys-libs/libcxxabi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
54 " |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
55 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
56 # supress QA warnings about stripping etc., i.e. stuff we cannot change since we install prebuilt binaries |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
57 QA_PREBUILT="opt/blackmagic-desktop-video/usr/bin/* opt/blackmagic-desktop-video/usr/lib/*" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
58 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
59 # for kernel module compilation |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
60 MODULE_NAMES="blackmagic(misc:${S}/usr/src/blackmagic-${DESKTOP_VIDEO_VERSION}:${S}/usr/src/blackmagic-${DESKTOP_VIDEO_VERSION}) blackmagic-io(misc:${S}/usr/src/blackmagic-io-${DESKTOP_VIDEO_VERSION}:${S}/usr/src/blackmagic-io-${DESKTOP_VIDEO_VERSION})" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
61 BUILD_TARGETS="clean all" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
62 BUILD_PARAMS="-j1" # work around race-condition causing .bmd-support.o.cmd to be missing |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
63 CONFIG_CHECK="~!WERROR" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
64 ERROR_WERROR="If compilation fails disable CONFIG_WERROR and recompile kernel before retrying." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
65 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
66 #PATCH_COMPAT_MAX_MAJOR=6 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
67 #PATCH_COMPAT_MAX_MINOR=1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
68 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
69 #OFFICIAL_COMPAT_MAX_MAJOR=6 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
70 #OFFICIAL_COMPAT_MAX_MINOR=1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
71 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
72 pkg_nofetch() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
73 # 1 2 3 4 5 6 7 8 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
74 # 1234567890123456789012345678901234567890123456789012345678901234567890123456789012 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
75 einfo "Please visit ${HOMEPAGE} and download \"${HOMEPAGE_DOWNLOAD_NAME}\"" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
76 einfo "for your product from the support section and move it to your DISTDIR" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
77 einfo "(/var/cache/distfiles or /usr/portage/distfiles unless you changed it)." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
78 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
79 einfo " expected filename: ${SRC_URI}" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
80 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
81 einfo "If your browser downloads a .tar file you will need to rename it to .tar.gz" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
82 } |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
83 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
84 #pkg_pretend() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
85 # if kernel_is -gt $PATCH_COMPAT_MAX_MAJOR $PATCH_COMPAT_MAX_MINOR; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
86 # # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
87 # ewarn "Your kernel version seems to be unsupported; you have two options if modules do" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
88 # ewarn "not work/compile:" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
89 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
90 # ewarn " 1) Recommended: downgrade to an officially supported kernel version (e.g. ${OFFICIAL_COMPAT_MAX_MAJOR}.${OFFICIAL_COMPAT_MAX_MINOR})" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
91 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
92 # ewarn " 2) Downgrade to an inofficially supported kernel version (max. ${PATCH_COMPAT_MAX_MAJOR}.${PATCH_COMPAT_MAX_MINOR}) and apply" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
93 # ewarn " the *inofficial* patch which allows more recent kernel versions but may void" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
94 # ewarn " warranty permanently. This can be done by setting the USE-flag patch_compat" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
95 # ewarn " for this ebuild. The patch is not guaranteed to work at all and may even" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
96 # ewarn " damage your hardware. Use at your own risk; you've been warned!" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
97 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
98 # ewarn "It's highly recommended to choose option 1 and wait for an officially supported" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
99 # ewarn "update unless you want to risk loosing your hardware and support." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
100 # elif kernel_is -gt $OFFICIAL_COMPAT_MAX_MAJOR $OFFICIAL_COMPAT_MAX_MINOR && ! use patch_compat; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
101 # # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
102 # ewarn "Your kernel version seems to be unsupported; you have two options if modules do" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
103 # ewarn "not work/compile:" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
104 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
105 # ewarn " 1) Recommended: downgrade to an officially supported kernel version (e.g. ${OFFICIAL_COMPAT_MAX_MAJOR}.${OFFICIAL_COMPAT_MAX_MINOR})" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
106 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
107 # ewarn " 2) Apply an *inofficial* patch which allows more recent kernel versions but may" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
108 # ewarn " void warranty permanently. This can be done by setting the USE-flag" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
109 # ewarn " patch_compat for this ebuild. The patch is not guaranteed to work at all" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
110 # ewarn " and may even damage your hardware. Use at your own risk; you've been warned!" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
111 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
112 # ewarn "It's highly recommended to choose option 1 and wait for an officially supported" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
113 # ewarn "update unless you want to risk loosing your hardware and support." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
114 # elif kernel_is -le $OFFICIAL_COMPAT_MAX_MAJOR $OFFICIAL_COMPAT_MAX_MINOR && use patch_compat; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
115 # # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
116 # einfo "Your kernel version is officially supported by this release. It is recommended" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
117 # einfo "to unset patch_compat USE flag until you need it again." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
118 # einfo "Inofficial patches will not be applied this time." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
119 # fi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
120 #} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
121 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
122 src_unpack() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
123 unpack ${A} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
124 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
125 cd ${WORKDIR} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
126 tar xfz ${CONTAINER_DIR}/other/x86_64/desktopvideo-${DESKTOP_VIDEO_VERSION}-x86_64.tar.gz |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
127 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
128 # symlink to what is supposed to have been prepared |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
129 ln -s ${UNPACKED_DIR} ${P} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
130 } |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
131 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
132 #src_prepare() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
133 # if kernel_is -gt $OFFICIAL_COMPAT_MAX_MAJOR $OFFICIAL_COMPAT_MAX_MINOR && use patch_compat; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
134 # eapply "${FILESDIR}/12.4.1__6_1__01_prandom_u32.patch" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
135 # eapply "${FILESDIR}/12.4.1__6_1__02_snd_dma_continuous_data.patch" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
136 # fi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
137 # eapply_user |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
138 #} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
139 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
140 src_compile() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
141 # library/tools are binary but kernel module requires compilation |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
142 linux-mod_src_compile |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
143 } |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
144 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
145 src_install() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
146 # all pre-built binaries should go into /opt and be symlinked to usr/bin etc. |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
147 finalinstalldir="/opt/blackmagic-desktop-video" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
148 installdir="${D}${finalinstalldir}" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
149 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
150 mkdir -p ${installdir} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
151 cp -a ${WORKDIR}/${UNPACKED_DIR}/* ${installdir}/ |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
152 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
153 # copy text files (readme and license) from parent directory |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
154 cp -a ${WORKDIR}/${CONTAINER_DIR}/*.txt ${installdir}/ |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
155 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
156 # there should a blank directory in /etc according to the archive... |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
157 mkdir -p ${installdir}/etc/blackmagic |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
158 chmod 755 ${installdir}/etc/blackmagic |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
159 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
160 # NOTE: Not linking usr/lib/systemd as I do not use that and thus canot test it... |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
161 symlinks=( |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
162 'etc/init.d/DesktopVideoHelper' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
163 'etc/dracut.conf.d/dracut-blackmagic.conf' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
164 'usr/bin/BlackmagicDesktopVideoSetup' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
165 'usr/bin/DesktopVideoUpdateTool' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
166 'usr/bin/DesktopVideoUpdater' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
167 'usr/lib/blackmagic' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
168 'usr/lib/libDeckLinkAPI.so' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
169 'usr/lib/libDeckLinkPreviewAPI.so' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
170 'usr/share/applications/BlackmagicDesktopVideoSetup.desktop' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
171 'usr/share/applications/DesktopVideoUpdater.desktop' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
172 'usr/share/icons/hicolor/16x16/apps/BlackmagicDesktopVideoSetup.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
173 'usr/share/icons/hicolor/16x16/apps/DesktopVideoUpdater.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
174 'usr/share/icons/hicolor/32x32/apps/BlackmagicDesktopVideoSetup.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
175 'usr/share/icons/hicolor/32x32/apps/DesktopVideoUpdater.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
176 'usr/share/icons/hicolor/48x48/apps/BlackmagicDesktopVideoSetup.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
177 'usr/share/icons/hicolor/48x48/apps/DesktopVideoUpdater.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
178 'usr/share/icons/hicolor/128x128/apps/BlackmagicDesktopVideoSetup.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
179 'usr/share/icons/hicolor/128x128/apps/DesktopVideoUpdater.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
180 'usr/share/icons/hicolor/256x256/apps/BlackmagicDesktopVideoSetup.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
181 'usr/share/icons/hicolor/256x256/apps/DesktopVideoUpdater.png' |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
182 ) |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
183 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
184 for path in "${symlinks[@]}"; do |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
185 dosym /opt/blackmagic-desktop-video/${path} ${path} |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
186 done |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
187 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
188 # copy but do not compress documentation |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
189 # reason for having it twice (in /opt and /usr): |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
190 # - symlinking with original directory names causes a QA notice as we should use our package name |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
191 # - symlinking with our package name causes some weird sandbox violation |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
192 docompress -x /usr/share/doc |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
193 docinto desktopvideo |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
194 dodoc -r ${finalinstalldir}/usr/share/doc/desktopvideo/* |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
195 docinto desktopvideo-gui |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
196 dodoc -r ${finalinstalldir}/usr/share/doc/desktopvideo-gui/* |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
197 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
198 # dneuge: no clue on how to use this... |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
199 ## QA notice says we should generate a linker script if we don't place libraries in /usr/lib |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
200 ## see: https://devmanual.gentoo.org/eclass-reference/toolchain-funcs.eclass/index.html |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
201 #gen_usr_ldscript usr/lib/libDeckLinkAPI.so usr/lib/libDeckLinkPreviewAPI.so |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
202 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
203 # don't symlink man-pages, install a copy instead |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
204 # NOTE: DesktopVideoHelper appears to have disappeared, so we won't install the man page either |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
205 doman usr/share/man/man1/BlackmagicDesktopVideoSetup.1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
206 doman usr/share/man/man1/BlackmagicFirmwareUpdater.1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
207 doman usr/share/man/man1/DesktopVideoHelper.1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
208 doman usr/share/man/man1/DesktopVideoUpdateTool.1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
209 doman usr/share/man/man1/DesktopVideoUpdater.1 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
210 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
211 # udev rules should be placed in /lib/udev/rules.d instead |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
212 dosym /opt/blackmagic-desktop-video/etc/udev/rules.d/55-blackmagic.rules /lib/udev/rules.d/55-blackmagic.rules |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
213 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
214 # add firmware check to autostart? |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
215 if use autostart; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
216 dosym /opt/blackmagic-desktop-video/etc/xdg/autostart/DesktopVideoUpdaterAutoStart.desktop /etc/xdg/autostart/DesktopVideoUpdaterAutoStart.desktop |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
217 fi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
218 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
219 # kernel module |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
220 linux-mod_src_install |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
221 } |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
222 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
223 pkg_postinst() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
224 # kernel module |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
225 linux-mod_pkg_postinst |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
226 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
227 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
228 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
229 einfo "Please do *NOT* report any QA errors to Gentoo or Blackmagic!" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
230 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
231 einfo "Kernel modules are blackmagic and blackmagic-io. Try blackmagic if in doubt." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
232 einfo "When upgrading, please rmmod both first. Then modprobe blackmagic to see if it" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
233 einfo "works (it should print your devices to kernel log)." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
234 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
235 einfo "Installed tools are DesktopVideoUpdateTool (CLI), DesktopVideoUpdater (GUI) and" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
236 einfo "BlackmagicDesktopVideoSetup." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
237 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
238 einfo "For Media Express emerge media-video/blackmagic-media-express." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
239 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
240 if use autostart; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
241 einfo "Automated firmware update check has been installed." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
242 else |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
243 einfo "Automated firmware update check has *not* been installed this time." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
244 einfo "(set USE flag autostart if you want that)" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
245 fi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
246 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
247 einfo "If your product is not being recognized, there are two common reasons:" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
248 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
249 einfo " 1) You may need to increase the vmalloc limit in your kernel." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
250 einfo " This can be done by adding e.g. vmalloc=256M to your kernel boot line. You" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
251 einfo " can see current usage by running" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
252 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
253 einfo " # grep VmallocUsed /proc/meminfo" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
254 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
255 einfo " 2) Your firmware may be outdated. Make sure you reload the modules (or simply" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
256 einfo " reboot) and then run DesktopVideoUpdateTool (CLI) or, if you prefer," |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
257 einfo " DesktopVideoUpdater (GUI)" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
258 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
259 einfo "Licenses can be found in: ${finalinstalldir}/usr/share/doc/" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
260 einfo "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
261 udev_reload || ewarn "Reloading udev rules failed, you may want to check this before rebooting!" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
262 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
263 #if kernel_is -gt $OFFICIAL_COMPAT_MAX_MAJOR $OFFICIAL_COMPAT_MAX_MINOR && use patch_compat; then |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
264 # # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
265 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
266 # ewarn " *** YOU HAVE APPLIED INOFFICIAL PATCHES TO INSTALLED KERNEL MODULES ***" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
267 # ewarn " *** DO NOT REPORT ANY ERRORS TO BLACKMAGIC, YOU BREAK WARRANTY ***" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
268 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
269 # ewarn "Applying those patches is generally discouraged as it can potentially damage" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
270 # ewarn "your hardware and therefore may void your warranty. You are recommended to" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
271 # ewarn "go back to an older kernel and wait for an official update instead of applying" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
272 # ewarn "these patches. At the very least, note that there is no support of any kind when" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
273 # ewarn "using patched drivers. Avoid contacting the vendor for support while using" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
274 # ewarn "inofficial drivers. Revert to official drivers and retry with untainted hardware" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
275 # ewarn "if something doesn't work as expected. Additionally, your system may behave" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
276 # ewarn "unstable." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
277 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
278 # ewarn "Remove USE-flag patch_compat and re-emerge this ebuild immediately before use" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
279 # ewarn "if you enabled it accidentally." |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
280 # ewarn "" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
281 # ewarn " *** USE AT YOUR OWN RISK ***" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
282 #fi |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
283 } |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
284 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
285 pkg_postrm() { |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
286 udev_reload || ewarn "Reloading udev rules failed, you may want to check this before rebooting!" |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
287 |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
288 # kernel module |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
289 linux-mod_pkg_postrm |
1767728323bb
[sync] imported 4c2cea0..04d1b06 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff
changeset
|
290 } |