|
|
@@ -33,7 +33,7 @@ Class: BASE
|
|
|
Group: Language
|
|
|
License: GPL
|
|
|
Version: 2.0.9
|
|
|
-Release: 20040609
|
|
|
+Release: 20050613
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://thewml.org/distrib/wml-%{version}.tar.gz
|
|
|
@@ -41,14 +41,15 @@ Source1: configure.eperl
|
|
|
Source2: configure.gm4
|
|
|
Source3: configure.iselect
|
|
|
Source4: configure.gd
|
|
|
+Patch0: wml.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl, gcc
|
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl
|
|
|
-BuildPreReq: png, zlib
|
|
|
-PreReq: png, zlib
|
|
|
+BuildPreReq: png, zlib, ncurses
|
|
|
+PreReq: png, zlib, ncurses
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -75,18 +76,16 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+ %patch -p0
|
|
|
cp %{SOURCE configure.eperl} wml_backend/p3_eperl/configure
|
|
|
cp %{SOURCE configure.gm4} wml_backend/p4_gm4/configure
|
|
|
cp %{SOURCE configure.iselect} wml_aux/iselect/configure
|
|
|
cp %{SOURCE configure.gd} wml_common/gd/configure
|
|
|
- %{l_shtool} subst \
|
|
|
- -e 's;^\([ ]\{1,\}.LIBS.[ ]\{1,\}=>\).*$;\1 [\"-lm @LIBPNG@ %{l_ldflags} -lz\"],;' \
|
|
|
- wml_common/gd/Makefile.PL.in
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
- CPPFLAGS="%{l_cppflags}" \
|
|
|
+ CPPFLAGS="%{l_cppflags ncurses}" \
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
LIBS="%{l_ldflags} -lpng -lz -lm" \
|
|
|
./configure \
|