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.
comparison media-video/blackmagic-media-express/blackmagic-media-express-3.5.2.ebuild @ 161:8f57dd94cc9c
adding media-video/blackmagic-media-express in version 3.5.2 as bundled by Desktop Video 10.6.8
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sun, 12 Jun 2016 15:51:45 +0200 |
parents | media-libs/blackmagic-desktop-video/blackmagic-desktop-video-10.6.8.ebuild@9567a60f67e3 |
children | 2ee95703831d |
comparison
equal
deleted
inserted
replaced
160:9567a60f67e3 | 161:8f57dd94cc9c |
---|---|
1 # Copyright 1999-2016 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 | |
4 # TODOs: | |
5 # - fix QA notice about installing symlinks in /usr/lib | |
6 | |
7 EAPI=5 | |
8 | |
9 DESKTOP_VIDEO_SHORT_VERSION="10.6.8" | |
10 MEDIA_EXPRESS_VERSION="3.5.2a2" | |
11 | |
12 DESCRIPTION="Media Express - Blackmagic Design's tool for media capture, organization and playback" | |
13 HOMEPAGE="http://www.blackmagicdesign.com/" | |
14 HOMEPAGE_DOWNLOAD_NAME="Desktop Video ${DESKTOP_VIDEO_SHORT_VERSION}" | |
15 | |
16 SRC_URI="Blackmagic_Desktop_Video_Linux_${DESKTOP_VIDEO_SHORT_VERSION}.tar" | |
17 UNPACKED_DIR="mediaexpress-${MEDIA_EXPRESS_VERSION}-x86_64" | |
18 | |
19 LICENSE="BlackmagicDesktopVideo" | |
20 SLOT="0" | |
21 KEYWORDS="~amd64" | |
22 #IUSE="autostart" | |
23 RESTRICT="fetch" | |
24 | |
25 # dependencies for binaries found by commands: (ldd lists transitive dependencies as well which isn't what we want) | |
26 # for file in /usr/lib/blackmagic/me/*; do objdump -p $file | grep NEEDED; done 2>/dev/null | cut -b24- | sort | uniq | grep -vE 'lib(Qt|MXF|DNxHDCodec)' | |
27 # equery belongs $(for file in /usr/lib/blackmagic/me/*; do objdump -p $file | grep NEEDED; done 2>/dev/null | cut -b24- | sort | uniq | grep -vE 'lib(Qt|MXF|DNxHDCodec)') | |
28 | |
29 DEPEND="" | |
30 RDEPEND="${DEPEND} | |
31 >=media-libs/blackmagic-desktop-video-10.6 | |
32 | |
33 dev-libs/glib:2 | |
34 media-libs/alsa-lib | |
35 media-libs/libpng:1.2 | |
36 sys-devel/gcc | |
37 sys-libs/glibc | |
38 sys-libs/zlib | |
39 virtual/glu | |
40 x11-libs/libX11 | |
41 x11-libs/libXext | |
42 " | |
43 | |
44 # supress QA warnings about stripping etc., i.e. stuff we cannot change since we install prebuilt binaries | |
45 QA_PREBUILT="opt/blackmagic-media-express/usr/lib/*" | |
46 | |
47 pkg_nofetch() { | |
48 einfo "Media Express is bundled with Desktop Video downloads." | |
49 einfo "" | |
50 einfo "Please visit ${HOMEPAGE} and download \"${HOMEPAGE_DOWNLOAD_NAME}\"" | |
51 einfo "for your product from the support section and move it to ${DISTDIR}" | |
52 einfo "" | |
53 einfo " expected filename: ${SRC_URI}" | |
54 einfo "" | |
55 einfo "If your browser downloads a .tar.gz file you will need to gunzip it." | |
56 } | |
57 | |
58 src_unpack() { | |
59 unpack ${A} | |
60 | |
61 cd ${WORKDIR} | |
62 tar xfz Blackmagic_Desktop_Video_Linux_${DESKTOP_VIDEO_SHORT_VERSION}/other/x86_64/mediaexpress-${MEDIA_EXPRESS_VERSION}-x86_64.tar.gz | |
63 | |
64 # symlink to what is supposed to have been prepared | |
65 ln -s ${UNPACKED_DIR} ${P} | |
66 } | |
67 | |
68 src_install() { | |
69 # all pre-built binaries should go into /opt and be symlinked to usr/bin etc. | |
70 finalinstalldir="/opt/blackmagic-media-express" | |
71 installdir="${D}${finalinstalldir}" | |
72 | |
73 mkdir -p ${installdir} | |
74 cp -a ${WORKDIR}/${UNPACKED_DIR}/* ${installdir}/ | |
75 | |
76 # NOTE: Not linking usr/lib/systemd as I don't use that and thus can't test it... | |
77 symlinks=( | |
78 'usr/bin/MediaExpress' | |
79 'usr/lib/blackmagic/me' | |
80 'usr/share/applications/MediaExpress.desktop' | |
81 'usr/share/doc/mediaexpress' | |
82 'usr/share/icons/hicolor/32x32/apps/MediaExpress.png' | |
83 'usr/share/icons/hicolor/48x48/apps/MediaExpress.png' | |
84 'usr/share/icons/hicolor/256x256/apps/MediaExpress.png' | |
85 ) | |
86 | |
87 for path in "${symlinks[@]}"; do | |
88 dosym ${finalinstalldir}/${path} ${path} | |
89 done | |
90 | |
91 # dneuge: no clue on how to use this... | |
92 ## QA notice says we should generate a linker script if we don't place libraries in /usr/lib | |
93 ## see: https://devmanual.gentoo.org/eclass-reference/toolchain-funcs.eclass/index.html | |
94 #gen_usr_ldscript usr/lib/libDeckLinkAPI.so usr/lib/libDeckLinkPreviewAPI.so | |
95 | |
96 # don't symlink man-pages, install a copy instead | |
97 doman usr/share/man/man1/*.1 | |
98 } | |
99 | |
100 pkg_postinst() { | |
101 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
102 einfo "Please do *NOT* report any QA errors to Gentoo or Blackmagic!" | |
103 einfo "" | |
104 einfo "License can be found in: ${finalinstalldir}/usr/share/doc/mediaexpress/License.txt" | |
105 } |