pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/abiword Patch added for gcc 3.3.x issue:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/369aa7598980
branches:  trunk
changeset: 486413:369aa7598980
user:      reed <reed%pkgsrc.org@localhost>
date:      Tue Dec 28 01:56:41 2004 +0000

description:
Patch added for gcc 3.3.x issue:
xap_UnixEncodingManager.cpp:551: error: invalid conversion from `const char*'
   to `char*'

Include ../../devel/popt/buildlink3.mk (and not using abiword's popt).

Add support for building on Darwin/Mac OS X. (Note: using X11 instead of Cocoa.)

Bump PKGREVISION.

diffstat:

 editors/abiword/Makefile         |  10 +++++++++-
 editors/abiword/distinfo         |   3 ++-
 editors/abiword/patches/patch-ae |  28 ++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 2 deletions(-)

diffs (81 lines):

diff -r 1f92049de361 -r 369aa7598980 editors/abiword/Makefile
--- a/editors/abiword/Makefile  Tue Dec 28 01:39:32 2004 +0000
+++ b/editors/abiword/Makefile  Tue Dec 28 01:56:41 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.82 2004/11/22 13:31:46 adam Exp $
+# $NetBSD: Makefile,v 1.83 2004/12/28 01:56:41 reed Exp $
 
 .include "Makefile.common"
 
 PKGNAME=       abiword-${ABIWORD_DIST_VERSION}
+PKGREVISION=   1
 COMMENT=       Open Source cross-platform word processor
 
 # GTK1 version and previous name of the GTK2 version
@@ -22,6 +23,12 @@
 CONFIGURE_ARGS+=       --enable-gucharmap
 .endif
 CONFIGURE_ARGS+=       --with-sys-wv
+.if ${OPSYS} == "Darwin"
+# hardcode relative install path in libwv (MacOS X only)
+CONFIGURE_ARGS+=       --without-epath
+# Use X11 instead of Cocoa API
+CONFIGURE_ARGS+=       --disable-Cocoa
+.endif
 CONFIGURE_ARGS+=       --with-zlib=${BUILDLINK_PREFIX.zlib}
 
 post-install:
@@ -38,6 +45,7 @@
 
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../converters/wv/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
 
 .if !empty(PKG_OPTIONS:Mgucharmap)
 .include "../../fonts/gucharmap/buildlink3.mk"
diff -r 1f92049de361 -r 369aa7598980 editors/abiword/distinfo
--- a/editors/abiword/distinfo  Tue Dec 28 01:39:32 2004 +0000
+++ b/editors/abiword/distinfo  Tue Dec 28 01:56:41 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2004/11/22 13:31:46 adam Exp $
+$NetBSD: distinfo,v 1.31 2004/12/28 01:56:41 reed Exp $
 
 SHA1 (abiword-2.0.14.tar.bz2) = 1ecbf566da6fda5af401e8025ffe2a6c3092f9d9
 Size (abiword-2.0.14.tar.bz2) = 22587062 bytes
@@ -6,3 +6,4 @@
 SHA1 (patch-ab) = 27c48de3374288c7f6d6749ff18ebeedf91cb3ab
 SHA1 (patch-ac) = a8ba221c53832a3cab97f23b0cb07f94cd351f56
 SHA1 (patch-ad) = 15b34ebdfde5bf94360ad11ad3693843bd509030
+SHA1 (patch-ae) = aededf86e6a48e7901680ecb05aee3fa9fa9a48a
diff -r 1f92049de361 -r 369aa7598980 editors/abiword/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/abiword/patches/patch-ae  Tue Dec 28 01:56:41 2004 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ae,v 1.14 2004/12/28 01:56:41 reed Exp $
+
+--- src/af/xap/unix/xap_UnixEncodingManager.cpp.orig   Fri Dec 17 16:05:43 2004
++++ src/af/xap/unix/xap_UnixEncodingManager.cpp        Fri Dec 17 16:23:13 2004
+@@ -548,7 +548,7 @@
+                                       MYLANG += LanguageISOName;
+                                       MYLANG += "_";
+                                       MYLANG += LanguageISOTerritory;
+-                                      putenv(MYLANG.utf8_str());
++                                      putenv(const_cast<char*>MYLANG.utf8_str());
+ #else
+                                       UT_UTF8String MYLANG (LanguageISOName);
+                                       MYLANG += "_";
+@@ -571,7 +571,7 @@
+ #if defined(SETENV_MISSING)
+                                       MYLANG = "LANG=";
+                                       MYLANG += OLDLANG;
+-                                      putenv(MYLANG.utf8_str());
++                                      putenv(const_cast<char*>MYLANG.utf8_str());
+ #else
+                                       setenv("LANG", OLDLANG.utf8_str(), 1);
+ #endif                        
+@@ -584,4 +584,4 @@
+               }
+       }
+       describe();
+-}
++};



Home | Main Index | Thread Index | Old Index