Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 341822 Details for
Bug 461496
media-video/avidemux-2.6.1: make -j7 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++, make: *** No targets specified and no makefile found. Stop.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
avidemux-2.6.1.ebuild
file_461496.txt (text/plain), 9.29 KB, created by
Tom Wijsman (TomWij) (RETIRED)
on 2013-03-12 17:00:19 UTC
(
hide
)
Description:
avidemux-2.6.1.ebuild
Filename:
MIME Type:
Creator:
Tom Wijsman (TomWij) (RETIRED)
Created:
2013-03-12 17:00:19 UTC
Size:
9.29 KB
patch
obsolete
># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.6.1.ebuild,v 1.5 2013/03/11 12:41:18 tomwij Exp $ > >EAPI="5" > >PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" >inherit cmake-utils eutils flag-o-matic l10n toolchain-funcs > >SLOT="2.6" >MY_P="${PN}_${PV}" > >DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" >HOMEPAGE="http://fixounet.free.fr/${PN}" >SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" > ># Multiple licenses because of all the bundled stuff. >LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" >KEYWORDS="~amd64 ~x86" >IUSE="aften a52 alsa amr debug dts fontconfig gtk jack lame libsamplerate mmx oss nls qt4 sdl -system-ffmpeg vorbis truetype xvid x264 xv" > >RDEPEND=" > >=dev-lang/spidermonkey-1.5-r2 > dev-libs/libxml2 > media-libs/libpng > x11-libs/libX11 > x11-libs/libXext > x11-libs/libXrender > virtual/libiconv > aften? ( media-libs/aften ) > alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 ) > amr? ( media-libs/opencore-amr ) > dts? ( media-libs/libdca ) > fontconfig? ( media-libs/fontconfig ) > gtk? ( >=x11-libs/gtk+-2.6.0:2 ) > jack? ( > media-sound/jack-audio-connection-kit > libsamplerate? ( media-libs/libsamplerate ) > ) > lame? ( media-sound/lame ) > qt4? ( >=dev-qt/qtgui-4.8.3:4 ) > sdl? ( media-libs/libsdl ) > system-ffmpeg? ( >=media-video/ffmpeg-1.0[aac,cpudetection,mp3,theora] ) > truetype? ( >=media-libs/freetype-2.1.5 ) > x264? ( media-libs/x264 ) > xv? ( x11-libs/libXv ) > xvid? ( media-libs/xvid ) > vorbis? ( media-libs/libvorbis ) >" >DEPEND=" > $RDEPEND > oss? ( virtual/os-headers ) > nls? ( sys-devel/gettext ) > virtual/pkgconfig >" > >S="${WORKDIR}/${MY_P}" >BUILD_S="${WORKDIR}/${P}_build" > >PHASES="buildCore:avidemux_core${POSTFIX} > buildCli:avidemux/cli${POSTFIX} > buildPluginsCommon:avidemux_plugins${POSTFIX} > buildPluginsCLI:avidemux_plugins${POSTFIX}" > >use qt4 && PHASES+=" buildQt4:avidemux/qt4${POSTFIX} > buildPluginsQt4:avidemux_plugins${POSTFIX}" > >use gtk && PHASES+=" buildGtk:avidemux/gtk${POSTFIX} > buildPluginsGtk:avidemux_plugins${POSTFIX}" > >src_prepare() { > base_src_prepare > > # TODO: convert to l10n.eclass usage > local lingua= po_files= qt_ts_files= avidemux_ts_files= > for lingua in ${LINGUAS}; do > if has ${lingua} ${AVIDEMUX_LANGS}; then > if [[ -e ${S}/po/${lingua}.po ]]; then > po_files+=" \${po_subdir}/${lingua}.po" > fi > if [[ -e ${S}/po/qt_${lingua}.ts ]]; then > qt_ts_files+=" \${ts_subdir}/qt_${lingua}.ts" > fi > if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then > avidemux_ts_files+=" \${ts_subdir}/${PN}_${lingua}.ts" > fi > fi > done > > sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \ > "${S}/cmake/Po.cmake" || die "po_files sed failed" > > sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \ > -e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \ > "${S}/cmake/Ts.cmake" || die "ts_files sed failed" > > # Fix icon name -> avidemux-2.6.png > sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." > > # The desktop file is broken. It uses avidemux2 instead of avidemux3 > # so it will actually launch avidemux-2.5 if it is installed. > sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." > > # Now rename the desktop file to not collide with 2.5. > mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." > > # Fix major issues in desktop files wrt bugs #291453, #316599, #430500 > # duplicate desktop file. > cp ${PN}-2.6.desktop ${PN}-2.6-gtk.desktop || die "Desktop file copy failed." > > # The desktop file is broken. It uses avidemux2 instead of avidemux3 > # so it will actually launch avidemux-2.5 if it is installed. > sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}-2.6.desktop || die "Desktop file fix failed." > > # Preparations to support the system ffmpeg. > if use system-ffmpeg ; then > rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "Failed to remove ffmpeg." > > sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg." > sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg." > sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "Failed to remove ffmpeg." > fi > > # Avoid existing avidemux installations from making the build process fail, bug #461496. > sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${S}/buildCore/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake || die "Failed to avoid existing avidemux installation from making the build fail." > sed -i -e "s:.*MESSAGE.*FATAL_ERROR.*ADM_coreConfig.*::g" avidemux/commonCmakeApplication.cmake || die "Failed to avoid existing avidemux installation from making the build fail." > sed -i -e "s:include(\${AVIDEMUX_SEARCH_INCLUDE_DIR}/avidemux/2.6/ADM_coreConfig.cmake):include(${S}/buildCore/config/ADM_coreConfig.cmake):g" avidemux_plugins/CMakeLists.txt || die "Failed to avoid existing avidemux installation from making the build fail." > > mkdir "${S}"/libs || die "Couldn't create intermediary library directory." > append-cflags -I"${S}"/buildCore/ffmpeg/source/ -L"${S}"/libs/ > append-cxxflags -I"${S}"/buildCore/ffmpeg/source/ -L"${S}"/libs/ > append-ldflags -L"${S}"/libs/ >} > >src_configure() { > local x mycmakeargs plugin_ui > > mycmakeargs=" > $(for x in ${IUSE}; do cmake-utils_use ${x/#-/}; done) > $(cmake-utils_use amr OPENCORE_AMRWB) > $(cmake-utils_use amr OPENCORE_AMRNB) > $(cmake-utils_use dts LIBDCA) > $(cmake-utils_use nls GETTEXT) > $(cmake-utils_use truetype FREETYPE2) > $(cmake-utils_use xv XVIDEO) > " > use debug && POSTFIX="_debug" && mycmakeargs+="-DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug" > > for PHASE in ${PHASES} ; do > SOURCE="${PHASE%%:*}" > DEST="${PHASE#*:}" > > cd "${S}" || die "Can't enter source folder." > mkdir "${SOURCE}" || die "Can't create build folder." > cd "${SOURCE}" || die "Can't enter build folder." > > if [[ "${SOURCE}" == "buildPluginsCommon" ]] ; then > plugin_ui="-DPLUGIN_UI=COMMON" > elif [[ "${SOURCE}" == "buildPluginsCLI" ]] ; then > plugin_ui="-DPLUGIN_UI=CLI" > elif [[ "${SOURCE}" == "buildPluginsQt4" ]] ; then > plugin_ui="-DPLUGIN_UI=QT4" > elif [[ "${SOURCE}" == "buildPluginsGtk" ]]; then > plugin_ui="-DPLUGIN_UI=GTK" > fi > > cmake -DAVIDEMUX_SOURCE_DIR="${S}" \ > -DCMAKE_INSTALL_PREFIX="/usr" \ > ${mycmakeargs} ${plugin_ui} -G "Unix Makefiles" ../"${DEST}/" > done > > # Copy generated config files such that they are visible to the translation units, bug #461496. > cp -Rv "${S}"/build*/config/* "${S}"/avidemux_core/ADM_core/include/ || die "Couldn't copy generated config files." > > # Make sure link scripts works against the intermediate library directory. > LINKS=$(find "${S}" -name '*.dir' | grep -v buildCore) > > for LINK in $LINKS ; do > if [[ -f $LINK/link.txt ]] ; then > sed -i -e "s:/usr/lib\(32\|64\|\)/lib:-l:g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > sed -i -e "s:.so\(\.[0-9]*\)*::g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > sed -i -e "s:-rpath,:-rpath,\"${S}\"/libs\::g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > sed -i -e "s:\(libADM_UI_Cli6\|libADM_render6_cli\|libADM_ae_lav_aac\|libQt[a-zA-Z]*\):\1.so:g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > sed -i -e "s: -Wl,name,[a-zA-Z0-9_.]*::g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > sed -i -e "s: -lund: -lasound:g" $LINK/link.txt || die "Couldn't replace library directories in $LINK." > fi > > if [[ -f $LINK/build.make ]] ; then > sed -i -e "/\/usr\/lib\(32\|64\|\)\/lib/d" $LINK/build.make || die "Couldn't replace library directories in $LINK." > fi > done >} > >src_compile() { > # Add lax vector typing for PowerPC. > if use ppc || use ppc64 ; then > append-cflags -flax-vector-conversions > fi > > # See bug 432322. > use x86 && replace-flags -O0 -O1 > > for PHASE in ${PHASES} ; do > SOURCE="${PHASE%%:*}" > > cd "${S}/${SOURCE}" || die "Can't enter build folder." > > if [[ "${SOURCE}" == "buildCore" ]] ; then > # TODO: Report this upstream, seems to be within ffmpeg code. > emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" > > # Make libraries available to next phases. > cp -Rv "${S}"/buildCore/ADM_core*/src/*.so "${S}"/buildCore/ffmpeg/build/lib*/*.so* "${S}"/libs || die "Couldn't copy library files to intermediary library directory." > else > emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" > fi > done >} > >src_install() { > for PHASE in ${PHASES} ; do > SOURCE="${PHASE%%:*}" > > cd "${S}/${SOURCE}" || die "Can't enter build folder." > > if [[ "${SOURCE}" == "buildCore" ]] ; then > # TODO: Report this upstream, seems to be within ffmpeg code. > emake DESTDIR="${ED}" -j1 install > else > emake DESTDIR="${ED}" install > fi > done > > cd "${S}" || die "Can't enter source folder." > > fperms +x /usr/bin/avidemux3_cli > fperms +x /usr/bin/avidemux3_jobs > use gtk && fperms +x /usr/bin/avidemux3_gtk > use qt4 && fperms +x /usr/bin/avidemux3_qt4 > > newicon ${PN}_icon.png ${PN}-2.6.png > use gtk && domenu ${PN}-2.6-gtk.desktop > use qt4 && domenu ${PN}-2.6.desktop > > dodoc AUTHORS README >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 461496
:
341782
| 341822