diff options
author | 2008-06-08 14:22:45 +0000 | |
---|---|---|
committer | 2008-06-08 14:22:45 +0000 | |
commit | d9733338c098d1f5920ef3df420876abdeef5292 (patch) | |
tree | 5e0d2fe465890dbba137c51c5e48266626c63818 /media-radio/unixcw/files | |
parent | New license file for xmlrpc-epi ebuild. (diff) | |
download | sunrise-d9733338c098d1f5920ef3df420876abdeef5292.tar.gz sunrise-d9733338c098d1f5920ef3df420876abdeef5292.tar.bz2 sunrise-d9733338c098d1f5920ef3df420876abdeef5292.zip |
media-radio/unixcw: Modified to to repsect use flag settings.
svn path=/sunrise/; revision=6277
Diffstat (limited to 'media-radio/unixcw/files')
-rw-r--r-- | media-radio/unixcw/files/unixcw-2.3-config.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-radio/unixcw/files/unixcw-2.3-config.patch b/media-radio/unixcw/files/unixcw-2.3-config.patch new file mode 100644 index 000000000..acd447bfe --- /dev/null +++ b/media-radio/unixcw/files/unixcw-2.3-config.patch @@ -0,0 +1,54 @@ +--- configure.ac.orig 2006-07-13 07:31:21.000000000 +0200 ++++ configure.ac 2008-06-08 14:30:41.000000000 +0200 +@@ -46,8 +46,24 @@ + AC_SUBST(GZIP) + AC_SUBST(LDCONFIG) + ++AC_MSG_CHECKING(--enable-ncurses argument) ++AC_ARG_ENABLE(ncurses, ++ [ --enable-ncurses Include curses based Morse code Tutor], ++ [enable_ncurses=$enableval], ++ [enable_ncurses="no"]) ++AC_MSG_RESULT($enable_ncurses) ++ ++AC_MSG_CHECKING(--enable-qt3 argument) ++AC_ARG_ENABLE(qt3, ++ [ --enable-qt3 Include QT based Morse code Tutor], ++ [enable_qt=$enableval], ++ [enable_qt="no"]) ++AC_MSG_RESULT($enable_qt) ++ ++if test "$enable_ncurses" = 'yes'; then + # Checks for libraries. + AC_CHECK_LIB(curses, initscr) ++fi + + # Checks for header files, and refuse to go on if no KIOCSOUND is available. + AC_HEADER_STDC +@@ -92,13 +108,17 @@ + # Decide on which subdirectories to build; substitute into SUBDIRS. Build + # cwcp if curses is available, and xcwcp if Qt is available. + SUBDIRS="cwlib cwutils cw cwgen" ++ ++if test "$enable_ncurses" = 'yes'; then + # Simple test for curses based on prior library check. + if test $ac_cv_lib_curses_initscr = 'yes' ; then + SUBDIRS="$SUBDIRS cwcp" + else + AC_MSG_WARN([Cannot find libcurses - unable to build cwcp]) + fi ++fi + ++if test "$enable_qt3" = 'yes'; then + # Look for $QTDIR. If found, then look for moc, either on $PATH, or + # in $QTDIR/bin. + MOC_EARLIEST=3 +@@ -135,6 +155,8 @@ + AC_MSG_WARN([Cannot find libqt - unable to build xcwcp]) + AC_MSG_WARN([Hint: try setting a value for the QTDIR variable]) + fi ++fi ++ + AC_SUBST(SUBDIRS) + + # Add -Wall, -W, -pedantic, and other paranoia to gcc command flags, and -Wall |