OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 10-May-2004 10:12:19
Branch: HEAD Handle: 2004051009121900
Modified files:
openpkg-src/tre tre.spec
Log:
add optional UTF-8 support
Summary:
Revision Changes Path
1.13 +16 -3 openpkg-src/tre/tre.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/tre/tre.spec
============================================================================
$ cvs diff -u -r1.12 -r1.13 tre.spec
--- openpkg-src/tre/tre.spec 9 May 2004 17:57:29 -0000 1.12
+++ openpkg-src/tre/tre.spec 10 May 2004 08:12:19 -0000 1.13
@@ -34,10 +34,11 @@
Group: Text
License: GPL
Version: 0.6.7
-Release: 20040509
+Release: 20040510
# package options
%option with_agrep no
+%option with_utf8 no
# list of sources
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
@@ -47,6 +48,10 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
PreReq: OpenPKG, openpkg >= 20040130
+%if "%{with_utf8}" == "yes"
+BuildPreReq: libutf8
+PreReq: libutf8
+%endif
AutoReq: no
AutoReqProv: no
@@ -78,6 +83,7 @@
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
./configure \
--prefix=%{l_prefix} \
%if "%{with_agrep}" == "yes"
@@ -85,10 +91,17 @@
%else
--disable-agrep \
%endif
- --without-alloca \
- --enable-system-abi \
+%if "%{with_utf8}" == "yes"
+ --with-libutf8=%{l_prefix} \
+ --enable-wchar \
+ --enable-multibyte \
+%else
+ --without-libutf8 \
--disable-wchar \
--disable-multibyte \
+%endif
+ --without-alloca \
+ --enable-system-abi \
--disable-nls \
--without-libiconv-prefix \
--without-libintl-prefix \
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]