updated ebuild for gnusound-0.7.4
Created attachment 64546 [details] gnusound-0.7.4.ebuild
Created attachment 64547 [details, diff] gnusound-0.7.4-destdir.patch
Created attachment 64548 [details, diff] gnusound-0.7.4-invert_mute_switches.patch
I've added additional IUSE flags to ebuild: flac, ffmpeg, sndfile, lame. gnusound uses this libs if they are available. But there is no way to disable usage of this libs. So gnusound will build with "ffmpeg" support, even if "-ffmpeg" is passed in command line. I don't know the correct way of handling this issue in Gentoo ebuilds.
(In reply to comment #4) > I've added additional IUSE flags to ebuild: flac, ffmpeg, sndfile, lame. > gnusound uses this libs if they are available. But there is no way to disable > usage of this libs. So gnusound will build with "ffmpeg" support, even if > "-ffmpeg" is passed in command line. > > I don't know the correct way of handling this issue in Gentoo ebuilds. You need to patch configure.in/configure.ac/configure to respect the value of a withFEATURE=no. I can make some samples if you need
(In reply to comment #5) > > You need to patch configure.in/configure.ac/configure to respect the value of a > withFEATURE=no. I can make some samples if you need Thanks, I'm familiar with autoconf system. I simply don't like the idea of patching some application build system for each new release.
This is a sample from a live configure.ac I have: dnl First of, you need to define the --with params AC_ARG_WITH(x11, [ --with-x11 force/disable x11 support],, with_x11=auto) AC_ARG_WITH(adplug, [ --with-adplug force/disable adplug support],, with_adplug=auto) dnl Then when testing for features, we check if the feature is actually wanted. Bit stupid perphaps, but I don't know any better way to implement both yes, auto and no for a feature, that also exit if user wants the feature, and it isn't found if test "x$with_x11" != "xno"; then AC_CHECK_HEADER(X11/extensions/xf86dga.h, , if test "x$with_x11" = "xyes"; then AC_MSG_ERROR("DGA (version 2) header files was not found", -1); else with_x11="no"; fi , [#include <X11/Xlib.h> ]) fi if test "x$with_x11" != "xno"; then AC_CHECK_HEADER(X11/extensions/xf86vmode.h, , if test "x$with_x11" = "xyes"; then AC_MSG_ERROR("xvidmode header files was not found", -1); else with_x11="no"; fi, [#include <X11/Xlib.h> ]) fi AC_LANG_PUSH(C++) if test "x$with_adplug" != "xno"; then AC_CHECK_HEADER(adplug/adplug.h, , if test "x$with_adplug" = "xyes"; then AC_MSG_ERROR("Adplug header files was not found"); else with_adplug="no"; fi) fi if test "x$with_adplug" != "xno"; then AC_CHECK_LIB(adplug, docell0, , if test "x$with_adplug" = "xyes"; then AC_MSG_ERROR("Adplug was not found"); else with_adplug="no"; fi) fi if test "x$with_adplug" != "xno"; then AC_TRY_LINK([#include <adplug/emuopl.h>], [CEmuopl opl = CEmuopl(48000, 1, 1)], , AC_MSG_ERROR("Adplug was compiled with a different c++ compiler")) fi dnl Then we can check the results, before generating the result files AC_SUBST(HAVE_X11) if test "x$with_x11" = "xno"; then DGA_LIBS= HAVE_X11= else HAVE_X11=1 AC_DEFINE(HAVE_X11) fi AC_SUBST(HAVE_ADPLUG) AC_SUBST(ADPLUG_INI) if test "x$with_adplug" = "xno"; then HAVE_ADPLUG= ADPLUG_INI= else HAVE_ADPLUG=1 ADPLUG_INI=opltype fi
Bumped, force the use of gnome2, added mandriva's patches plus one to remove those damn automagic deps.