]> git.pld-linux.org Git - packages/moc.git/commitdiff
- add -ltinfow patch; rel 3 auto/th/moc-2_4_4-3
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 26 Aug 2010 21:09:15 +0000 (21:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    moc.spec -> 1.50
    ncurses-tinfo.patch -> 1.1

moc.spec
ncurses-tinfo.patch [new file with mode: 0644]

index 208e09124eac9dd492c9b3fb2db8c7ccbd074756..03674d055bda0c693764d13b21a8a214ea1a67ca 100644 (file)
--- a/moc.spec
+++ b/moc.spec
@@ -7,12 +7,13 @@ Summary(hu.UTF-8):    Konzolos audiólejátszó egyszerű ncurses felülettel
 Summary(pl.UTF-8):     Konsolowy odtwarzacz audio z prostym interfejsem ncurses
 Name:          moc
 Version:       2.4.4
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/Sound
 Source0:       ftp://ftp.daper.net/pub/soft/moc/stable/%{name}-%{version}.tar.bz2
 # Source0-md5: 647c770a5542a4ae5437386807a89796
 Patch0:                %{name}-home_etc.patch
+Patch1:                ncurses-tinfo.patch
 URL:           http://moc.daper.net/
 BuildRequires: a52dec-libs-devel
 BuildRequires: alsa-lib-devel
@@ -205,6 +206,7 @@ należy uruchomić ponownie MOC.
 %prep
 %setup -q
 %{?with_home_etc:%patch0 -p1}
+%patch1 -p1
 
 
 rm -rf libltdl
diff --git a/ncurses-tinfo.patch b/ncurses-tinfo.patch
new file mode 100644 (file)
index 0000000..f9ee9ee
--- /dev/null
@@ -0,0 +1,36 @@
+--- moc-2.4.4/m4/mp_with_curses.m4~    2006-02-12 13:55:08.000000000 +0200
++++ moc-2.4.4/m4/mp_with_curses.m4     2010-08-27 00:08:09.671905405 +0300
+@@ -38,7 +38,7 @@
+               [Define if you have ncursesw.h]))
+            AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncursesw/curses.h])
+            AC_DEFINE(HAVE_NCURSESW, 1, [Define if you have libncursesw])
+-           CURSES_LIB="-lncursesw"
++           CURSES_LIB="-lncursesw -ltinfow"
+          fi
+    fi
+  
+@@ -53,13 +53,13 @@
+      if test "$mp_cv_curses" = yes
+      then
+        AC_DEFINE(HAVE_CURSES_H, 1, [Define if you have curses.h])
+-       CURSES_LIB="-lcurses"
++       CURSES_LIB="-lcurses -ltinfo"
+      fi
+    fi
+    if test ! "$CURSES_LIB"
+    then
+      AC_CACHE_CHECK([for working ncurses], mp_cv_ncurses,
+-       [LIBS="$mp_save_LIBS -lncurses"
++       [LIBS="$mp_save_LIBS -lncurses -ltinfo"
+         AC_TRY_LINK(
+           [#include <ncurses.h>],
+           [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
+@@ -67,7 +67,7 @@
+      if test "$mp_cv_ncurses" = yes
+      then
+        AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncurses.h])
+-       CURSES_LIB="-lncurses"
++       CURSES_LIB="-lncurses -ltinfo"
+      fi
+    fi
+    LIBS="$mp_save_LIBS"
This page took 0.058495 seconds and 4 git commands to generate.