OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 30-Sep-2005 09:55:34 Branch: HEAD Handle: 2005093008553300 Modified files: openpkg-src/mutt15 mutt15.spec Log: port forward the ncurses support from mutt 1.4 Summary: Revision Changes Path 1.33 +19 -3 openpkg-src/mutt15/mutt15.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/mutt15/mutt15.spec ============================================================================ $ cvs diff -u -r1.32 -r1.33 mutt15.spec --- openpkg-src/mutt15/mutt15.spec 18 Sep 2005 18:31:15 -0000 1.32 +++ openpkg-src/mutt15/mutt15.spec 30 Sep 2005 07:55:33 -0000 1.33 @@ -38,7 +38,7 @@ Group: Mail License: BSD Version: %{V_mutt}i -Release: 20050918 +Release: 20050930 # build options %option with_comp no @@ -46,6 +46,7 @@ %option with_initials no %option with_quote no %option with_sidebar no +%option with_ncurses no # list of sources Source0: ftp://ftp.mutt.org/mutt/devel/mutt-%{V_mutt}.tar.gz @@ -62,8 +63,15 @@ BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, make PreReq: OpenPKG, openpkg >= 20040130 -BuildPreReq: openssl, slang, libidn, libiconv -PreReq: openssl, slang, libidn, libiconv +BuildPreReq: openssl, libidn, libiconv +PreReq: openssl, libidn, libiconv +%if "%{with_ncurses}" == "yes" +BuildPreReq: ncurses +PreReq: ncurses +%else +BuildPreReq: slang +PreReq: slang +%endif AutoReq: no AutoReqProv: no Provides: mutt @@ -151,13 +159,21 @@ esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ +%if "%{with_ncurses}" == "yes" + CPPFLAGS="%{l_cppflags ncurses libidn .}" \ +%else CPPFLAGS="%{l_cppflags libidn .}" \ +%endif LDFLAGS="-Limap %{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ --sysconfdir=%{l_prefix}/etc/mutt \ --with-docdir=%{l_prefix}/share/mutt \ +%if "%{with_ncurses}" == "yes" + --with-curses=%{l_prefix} \ +%else --with-slang=%{l_prefix} \ +%endif --with-ssl=%{l_prefix} \ --enable-pop \ --enable-imap \ @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org