diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-01-05 12:33:26 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-01-05 12:33:26 +0000 |
commit | e9df015fea87672e0fea103681991baff839f037 (patch) | |
tree | a0dfa3fe17170553f3a78f7ae47ee3db05582c77 /wm | |
parent | d5261dd0e63eaa0d219de0bf9cb70d7cfc852054 (diff) | |
download | pkgsrc-e9df015fea87672e0fea103681991baff839f037.tar.gz |
Import icewm-1.3.8 as wm/icewm13.
IceWM provides a small, fast and familiar window manager for the X11 window
system. Compatibility with the mwm window manager is desired and will be
implemented where appropriate.
IceWM is designed to emulate the look of Motif, OS/2 Warp 4, OS/2 Warp 3 and
Windows 95. It also tries to combine the feel of these systems whenever it
is compatible. Others might added in the future in the core distribution,
though many themes are available through the network.
Generally, it tries to make all functions available both by keyboard and by
mouse (this is not currently possible when using mouse focus).
This package provides IceWM 1.3 branch release.
Diffstat (limited to 'wm')
-rw-r--r-- | wm/icewm13/DESCR | 13 | ||||
-rw-r--r-- | wm/icewm13/Makefile | 28 | ||||
-rw-r--r-- | wm/icewm13/PLIST | 305 | ||||
-rw-r--r-- | wm/icewm13/distinfo | 8 | ||||
-rw-r--r-- | wm/icewm13/patches/patch-Makefile.in | 24 | ||||
-rw-r--r-- | wm/icewm13/patches/patch-src_wmtaskbar.cc | 23 | ||||
-rw-r--r-- | wm/icewm13/patches/patch-src_ylocale.cc | 16 |
7 files changed, 417 insertions, 0 deletions
diff --git a/wm/icewm13/DESCR b/wm/icewm13/DESCR new file mode 100644 index 00000000000..42be45eea01 --- /dev/null +++ b/wm/icewm13/DESCR @@ -0,0 +1,13 @@ +IceWM provides a small, fast and familiar window manager for the X11 window +system. Compatibility with the mwm window manager is desired and will be +implemented where appropriate. + +IceWM is designed to emulate the look of Motif, OS/2 Warp 4, OS/2 Warp 3 and +Windows 95. It also tries to combine the feel of these systems whenever it +is compatible. Others might added in the future in the core distribution, +though many themes are available through the network. + +Generally, it tries to make all functions available both by keyboard and by +mouse (this is not currently possible when using mouse focus). + +This package provides IceWM 1.3 branch release. diff --git a/wm/icewm13/Makefile b/wm/icewm13/Makefile new file mode 100644 index 00000000000..7b3a5d05498 --- /dev/null +++ b/wm/icewm13/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2014/01/05 12:33:26 ryoon Exp $ + +DISTNAME= icewm-1.3.8 +CATEGORIES= wm +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=icewm/} + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://example.com/ +COMMENT= TODO: Short description of the package +#LICENSE= # TODO: (see mk/license.mk) + +CONFLICTS+= icewm-imlib-[0-9]* + +FILESDIR= ${.CURDIR}/../../wm/icewm/files + +GNU_CONFIGURE= yes +USE_LANGUAGES= c++ +USE_TOOLS+= pkg-config + +post-extract: + cp ${FILESDIR}/bsd-daemon.xpm ${WRKSRC}/lib/taskbar + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../graphics/gdk-pixbuf2-xlib/buildlink3.mk" +.include "../../x11/libXft/buildlink3.mk" +.include "../../x11/libXinerama/buildlink3.mk" +.include "../../x11/libXrandr/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/wm/icewm13/PLIST b/wm/icewm13/PLIST new file mode 100644 index 00000000000..5c9818d566e --- /dev/null +++ b/wm/icewm13/PLIST @@ -0,0 +1,305 @@ +@comment $NetBSD: PLIST,v 1.1 2014/01/05 12:33:26 ryoon Exp $ +bin/icehelp +bin/icesh +bin/icewm +bin/icewm-session +bin/icewm-set-gnomewm +bin/icewmbg +bin/icewmhint +bin/icewmtray +share/icewm/icons/app_16x16.xpm +share/icewm/icons/app_32x32.xpm +share/icewm/icons/emacs_16x16.xpm +share/icewm/icons/emacs_32x32.xpm +share/icewm/icons/file_16x16.xpm +share/icewm/icons/file_32x32.xpm +share/icewm/icons/folder_16x16.xpm +share/icewm/icons/folder_32x32.xpm +share/icewm/icons/fte_16x16.xpm +share/icewm/icons/fte_32x32.xpm +share/icewm/icons/java_16x16.xpm +share/icewm/icons/java_32x32.xpm +share/icewm/icons/vim_16x16.xpm +share/icewm/icons/vim_32x32.xpm +share/icewm/icons/vim_48x48.xpm +share/icewm/icons/xterm_16x16.xpm +share/icewm/icons/xterm_32x32.xpm +share/icewm/keys +share/icewm/ledclock/a.xpm +share/icewm/ledclock/colon.xpm +share/icewm/ledclock/dot.xpm +share/icewm/ledclock/m.xpm +share/icewm/ledclock/n0.xpm +share/icewm/ledclock/n1.xpm +share/icewm/ledclock/n2.xpm +share/icewm/ledclock/n3.xpm +share/icewm/ledclock/n4.xpm +share/icewm/ledclock/n5.xpm +share/icewm/ledclock/n6.xpm +share/icewm/ledclock/n7.xpm +share/icewm/ledclock/n8.xpm +share/icewm/ledclock/n9.xpm +share/icewm/ledclock/p.xpm +share/icewm/ledclock/percent.xpm +share/icewm/ledclock/slash.xpm +share/icewm/ledclock/space.xpm +share/icewm/mailbox/errmail.xpm +share/icewm/mailbox/mail.xpm +share/icewm/mailbox/newmail.xpm +share/icewm/mailbox/nomail.xpm +share/icewm/mailbox/unreadmail.xpm +share/icewm/menu +share/icewm/preferences +share/icewm/taskbar/bsd-daemon.xpm +share/icewm/taskbar/collapse.xpm +share/icewm/taskbar/desktop.xpm +share/icewm/taskbar/expand.xpm +share/icewm/taskbar/start.xpm +share/icewm/taskbar/windows.xpm +share/icewm/themes/Infadel2/Ergonomic.theme +share/icewm/themes/Infadel2/Overloaded.theme +share/icewm/themes/Infadel2/closeA.xpm +share/icewm/themes/Infadel2/closeI.xpm +share/icewm/themes/Infadel2/cursors/left.xpm +share/icewm/themes/Infadel2/cursors/move.xpm +share/icewm/themes/Infadel2/cursors/right.xpm +share/icewm/themes/Infadel2/cursors/sizeB.xpm +share/icewm/themes/Infadel2/cursors/sizeBL.xpm +share/icewm/themes/Infadel2/cursors/sizeBR.xpm +share/icewm/themes/Infadel2/cursors/sizeL.xpm +share/icewm/themes/Infadel2/cursors/sizeR.xpm +share/icewm/themes/Infadel2/cursors/sizeT.xpm +share/icewm/themes/Infadel2/cursors/sizeTL.xpm +share/icewm/themes/Infadel2/cursors/sizeTR.xpm +share/icewm/themes/Infadel2/default.theme +share/icewm/themes/Infadel2/depthA.xpm +share/icewm/themes/Infadel2/depthI.xpm +share/icewm/themes/Infadel2/fonts.dir +share/icewm/themes/Infadel2/hideA.xpm +share/icewm/themes/Infadel2/hideI.xpm +share/icewm/themes/Infadel2/icons/app_16x16.xpm +share/icewm/themes/Infadel2/icons/folder_16x16.xpm +share/icewm/themes/Infadel2/icons/folder_32x32.xpm +share/icewm/themes/Infadel2/mailbox/errmail.xpm +share/icewm/themes/Infadel2/mailbox/mail.xpm +share/icewm/themes/Infadel2/mailbox/newmail.xpm +share/icewm/themes/Infadel2/mailbox/nomail.xpm +share/icewm/themes/Infadel2/mailbox/unreadmail.xpm +share/icewm/themes/Infadel2/maximizeA.xpm +share/icewm/themes/Infadel2/maximizeI.xpm +share/icewm/themes/Infadel2/menuButtonA.xpm +share/icewm/themes/Infadel2/menuButtonI.xpm +share/icewm/themes/Infadel2/minimizeA.xpm +share/icewm/themes/Infadel2/minimizeI.xpm +share/icewm/themes/Infadel2/restoreA.xpm +share/icewm/themes/Infadel2/restoreI.xpm +share/icewm/themes/Infadel2/rolldownA.xpm +share/icewm/themes/Infadel2/rolldownI.xpm +share/icewm/themes/Infadel2/rollupA.xpm +share/icewm/themes/Infadel2/rollupI.xpm +share/icewm/themes/Infadel2/snap.pcf +share/icewm/themes/Infadel2/taskbar/start.xpm +share/icewm/themes/Infadel2/taskbar/windows.xpm +share/icewm/themes/Infadel2/titleAB.xpm +share/icewm/themes/Infadel2/titleAJ.xpm +share/icewm/themes/Infadel2/titleAM.xpm +share/icewm/themes/Infadel2/titleAP.xpm +share/icewm/themes/Infadel2/titleAQ.xpm +share/icewm/themes/Infadel2/titleAR.xpm +share/icewm/themes/Infadel2/titleAS.xpm +share/icewm/themes/Infadel2/titleAT.xpm +share/icewm/themes/Infadel2/titleIB.xpm +share/icewm/themes/Infadel2/titleIJ.xpm +share/icewm/themes/Infadel2/titleIM.xpm +share/icewm/themes/Infadel2/titleIP.xpm +share/icewm/themes/Infadel2/titleIQ.xpm +share/icewm/themes/Infadel2/titleIR.xpm +share/icewm/themes/Infadel2/titleIS.xpm +share/icewm/themes/Infadel2/titleIT.xpm +share/icewm/themes/gtk2/closeA.xpm +share/icewm/themes/gtk2/closeI.xpm +share/icewm/themes/gtk2/default.theme +share/icewm/themes/gtk2/maximizeA.xpm +share/icewm/themes/gtk2/maximizeI.xpm +share/icewm/themes/gtk2/menuButtonA.xpm +share/icewm/themes/gtk2/menuButtonI.xpm +share/icewm/themes/gtk2/minimizeA.xpm +share/icewm/themes/gtk2/minimizeI.xpm +share/icewm/themes/gtk2/restoreA.xpm +share/icewm/themes/gtk2/restoreI.xpm +share/icewm/themes/icedesert/closeA.xpm +share/icewm/themes/icedesert/closeI.xpm +share/icewm/themes/icedesert/closeO.xpm +share/icewm/themes/icedesert/default.theme +share/icewm/themes/icedesert/maximizeA.xpm +share/icewm/themes/icedesert/maximizeI.xpm +share/icewm/themes/icedesert/maximizeO.xpm +share/icewm/themes/icedesert/menuButtonA.xpm +share/icewm/themes/icedesert/menuButtonI.xpm +share/icewm/themes/icedesert/menuButtonO.xpm +share/icewm/themes/icedesert/minimizeA.xpm +share/icewm/themes/icedesert/minimizeI.xpm +share/icewm/themes/icedesert/minimizeO.xpm +share/icewm/themes/icedesert/restoreA.xpm +share/icewm/themes/icedesert/restoreI.xpm +share/icewm/themes/icedesert/restoreO.xpm +share/icewm/themes/icedesert/titleAB.xpm +share/icewm/themes/icedesert/titleAT.xpm +share/icewm/themes/icedesert/titleIB.xpm +share/icewm/themes/icedesert/titleIT.xpm +share/icewm/themes/metal2/closeA.xpm +share/icewm/themes/metal2/closeI.xpm +share/icewm/themes/metal2/default.theme +share/icewm/themes/metal2/depthA.xpm +share/icewm/themes/metal2/depthI.xpm +share/icewm/themes/metal2/dframeAB.xpm +share/icewm/themes/metal2/dframeABL.xpm +share/icewm/themes/metal2/dframeABR.xpm +share/icewm/themes/metal2/dframeAL.xpm +share/icewm/themes/metal2/dframeAR.xpm +share/icewm/themes/metal2/dframeAT.xpm +share/icewm/themes/metal2/dframeATL.xpm +share/icewm/themes/metal2/dframeATR.xpm +share/icewm/themes/metal2/dframeIB.xpm +share/icewm/themes/metal2/dframeIBL.xpm +share/icewm/themes/metal2/dframeIBR.xpm +share/icewm/themes/metal2/dframeIL.xpm +share/icewm/themes/metal2/dframeIR.xpm +share/icewm/themes/metal2/dframeIT.xpm +share/icewm/themes/metal2/dframeITL.xpm +share/icewm/themes/metal2/dframeITR.xpm +share/icewm/themes/metal2/frameAB.xpm +share/icewm/themes/metal2/frameABL.xpm +share/icewm/themes/metal2/frameABR.xpm +share/icewm/themes/metal2/frameAL.xpm +share/icewm/themes/metal2/frameAR.xpm +share/icewm/themes/metal2/frameAT.xpm +share/icewm/themes/metal2/frameATL.xpm +share/icewm/themes/metal2/frameATR.xpm +share/icewm/themes/metal2/frameIB.xpm +share/icewm/themes/metal2/frameIBL.xpm +share/icewm/themes/metal2/frameIBR.xpm +share/icewm/themes/metal2/frameIL.xpm +share/icewm/themes/metal2/frameIR.xpm +share/icewm/themes/metal2/frameIT.xpm +share/icewm/themes/metal2/frameITL.xpm +share/icewm/themes/metal2/frameITR.xpm +share/icewm/themes/metal2/hideA.xpm +share/icewm/themes/metal2/hideI.xpm +share/icewm/themes/metal2/maximizeA.xpm +share/icewm/themes/metal2/maximizeI.xpm +share/icewm/themes/metal2/menuButtonA.xpm +share/icewm/themes/metal2/menuButtonI.xpm +share/icewm/themes/metal2/minimizeA.xpm +share/icewm/themes/metal2/minimizeI.xpm +share/icewm/themes/metal2/restoreA.xpm +share/icewm/themes/metal2/restoreI.xpm +share/icewm/themes/metal2/rolldownA.xpm +share/icewm/themes/metal2/rolldownI.xpm +share/icewm/themes/metal2/rollupA.xpm +share/icewm/themes/metal2/rollupI.xpm +share/icewm/themes/metal2/titleAB.xpm +share/icewm/themes/metal2/titleAL.xpm +share/icewm/themes/metal2/titleAM.xpm +share/icewm/themes/metal2/titleAP.xpm +share/icewm/themes/metal2/titleAR.xpm +share/icewm/themes/metal2/titleAS.xpm +share/icewm/themes/metal2/titleAT.xpm +share/icewm/themes/metal2/titleIB.xpm +share/icewm/themes/metal2/titleIL.xpm +share/icewm/themes/metal2/titleIM.xpm +share/icewm/themes/metal2/titleIP.xpm +share/icewm/themes/metal2/titleIR.xpm +share/icewm/themes/metal2/titleIS.xpm +share/icewm/themes/metal2/titleIT.xpm +share/icewm/themes/motif/close.xpm +share/icewm/themes/motif/default.theme +share/icewm/themes/motif/maximize.xpm +share/icewm/themes/motif/menu.xpm +share/icewm/themes/motif/minimize.xpm +share/icewm/themes/motif/restore.xpm +share/icewm/themes/nice/blue.theme +share/icewm/themes/nice/close.xpm +share/icewm/themes/nice/default.theme +share/icewm/themes/nice/hide.xpm +share/icewm/themes/nice/maximize.xpm +share/icewm/themes/nice/minimize.xpm +share/icewm/themes/nice/restore.xpm +share/icewm/themes/nice/rolldown.xpm +share/icewm/themes/nice/rollup.xpm +share/icewm/themes/nice2/closeA.xpm +share/icewm/themes/nice2/closeI.xpm +share/icewm/themes/nice2/default.theme +share/icewm/themes/nice2/maximizeA.xpm +share/icewm/themes/nice2/maximizeI.xpm +share/icewm/themes/nice2/menuButtonA.xpm +share/icewm/themes/nice2/menuButtonI.xpm +share/icewm/themes/nice2/minimizeA.xpm +share/icewm/themes/nice2/minimizeI.xpm +share/icewm/themes/nice2/restoreA.xpm +share/icewm/themes/nice2/restoreI.xpm +share/icewm/themes/nice2/titleAB.xpm +share/icewm/themes/nice2/titleAT.xpm +share/icewm/themes/nice2/titleIB.xpm +share/icewm/themes/nice2/titleIT.xpm +share/icewm/themes/warp3/close.xpm +share/icewm/themes/warp3/default.theme +share/icewm/themes/warp3/hide.xpm +share/icewm/themes/warp3/maximize.xpm +share/icewm/themes/warp3/minimize.xpm +share/icewm/themes/warp3/restore.xpm +share/icewm/themes/warp3/rolldown.xpm +share/icewm/themes/warp3/rollup.xpm +share/icewm/themes/warp4/close.xpm +share/icewm/themes/warp4/default.theme +share/icewm/themes/warp4/hide.xpm +share/icewm/themes/warp4/maximize.xpm +share/icewm/themes/warp4/minimize.xpm +share/icewm/themes/warp4/restore.xpm +share/icewm/themes/win95/close.xpm +share/icewm/themes/win95/default.theme +share/icewm/themes/win95/maximize.xpm +share/icewm/themes/win95/minimize.xpm +share/icewm/themes/win95/restore.xpm +share/icewm/themes/yellowmotif/close.xpm +share/icewm/themes/yellowmotif/default.theme +share/icewm/themes/yellowmotif/maximize.xpm +share/icewm/themes/yellowmotif/menu.xpm +share/icewm/themes/yellowmotif/minimize.xpm +share/icewm/themes/yellowmotif/restore.xpm +share/icewm/toolbar +share/icewm/winoptions +share/locale/be/LC_MESSAGES/icewm.mo +share/locale/bg/LC_MESSAGES/icewm.mo +share/locale/ca/LC_MESSAGES/icewm.mo +share/locale/cs/LC_MESSAGES/icewm.mo +share/locale/da/LC_MESSAGES/icewm.mo +share/locale/de/LC_MESSAGES/icewm.mo +share/locale/el/LC_MESSAGES/icewm.mo +share/locale/en/LC_MESSAGES/icewm.mo +share/locale/es/LC_MESSAGES/icewm.mo +share/locale/fi/LC_MESSAGES/icewm.mo +share/locale/fr/LC_MESSAGES/icewm.mo +share/locale/hr/LC_MESSAGES/icewm.mo +share/locale/hu/LC_MESSAGES/icewm.mo +share/locale/id/LC_MESSAGES/icewm.mo +share/locale/it/LC_MESSAGES/icewm.mo +share/locale/ja/LC_MESSAGES/icewm.mo +share/locale/ko/LC_MESSAGES/icewm.mo +share/locale/lt/LC_MESSAGES/icewm.mo +share/locale/lv/LC_MESSAGES/icewm.mo +share/locale/mk/LC_MESSAGES/icewm.mo +share/locale/nb/LC_MESSAGES/icewm.mo +share/locale/nl/LC_MESSAGES/icewm.mo +share/locale/pl/LC_MESSAGES/icewm.mo +share/locale/pt_BR/LC_MESSAGES/icewm.mo +share/locale/ro/LC_MESSAGES/icewm.mo +share/locale/ru/LC_MESSAGES/icewm.mo +share/locale/sk/LC_MESSAGES/icewm.mo +share/locale/sl/LC_MESSAGES/icewm.mo +share/locale/sv/LC_MESSAGES/icewm.mo +share/locale/tr/LC_MESSAGES/icewm.mo +share/locale/uk/LC_MESSAGES/icewm.mo +share/locale/vi/LC_MESSAGES/icewm.mo +share/locale/zh_CN/LC_MESSAGES/icewm.mo +share/locale/zh_TW/LC_MESSAGES/icewm.mo diff --git a/wm/icewm13/distinfo b/wm/icewm13/distinfo new file mode 100644 index 00000000000..bbb4786dfc3 --- /dev/null +++ b/wm/icewm13/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2014/01/05 12:33:26 ryoon Exp $ + +SHA1 (icewm-1.3.8.tar.gz) = dc9155227129be14aced00c24c572356e0fa5cd8 +RMD160 (icewm-1.3.8.tar.gz) = cacf40e529a10ab8eb33961236432efd080e81b6 +Size (icewm-1.3.8.tar.gz) = 905680 bytes +SHA1 (patch-Makefile.in) = c283daa93d33270cc9a648e083fc75c8a695d59d +SHA1 (patch-src_wmtaskbar.cc) = 5e536a60b9d0a604369f6cc3010e7f577f103d5d +SHA1 (patch-src_ylocale.cc) = 193d3c8b59175855054d3e825b2da4ea0c968123 diff --git a/wm/icewm13/patches/patch-Makefile.in b/wm/icewm13/patches/patch-Makefile.in new file mode 100644 index 00000000000..e79e6933248 --- /dev/null +++ b/wm/icewm13/patches/patch-Makefile.in @@ -0,0 +1,24 @@ +$NetBSD: patch-Makefile.in,v 1.1 2014/01/05 12:33:26 ryoon Exp $ + +--- Makefile.in.orig 2013-11-17 16:54:39.000000000 +0000 ++++ Makefile.in +@@ -35,7 +35,8 @@ DESTDIR = + + ################################################################################ + +-BINFILES = @BINFILES@ icewm-set-gnomewm ++BINFILES = @BINFILES@ ++SCRIPTFILES = icewm-set-gnomewm + LIBFILES = lib/preferences lib/winoptions lib/keys \ + lib/menu lib/toolbar # lib/programs + DOCFILES = README BUGS CHANGES COPYING AUTHORS INSTALL VERSION icewm.lsm +@@ -86,6 +87,9 @@ install-base: base + @for bin in $(BINFILES); do \ + $(INSTALLBIN) "$${bin}" "$(DESTDIR)$(BINDIR)"; \ + done ++ @for script in $(SCRIPTFILES); do \ ++ ${BSD_INSTALL_SCRIPT} "$${script}" "$(DESTDIR)$(BINDIR)"; \ ++ done + + @echo "Installing presets and icons in $(DESTDIR)$(LIBDIR)" + @$(INSTALLDIR) "$(DESTDIR)$(LIBDIR)" diff --git a/wm/icewm13/patches/patch-src_wmtaskbar.cc b/wm/icewm13/patches/patch-src_wmtaskbar.cc new file mode 100644 index 00000000000..b2603cf6214 --- /dev/null +++ b/wm/icewm13/patches/patch-src_wmtaskbar.cc @@ -0,0 +1,23 @@ +$NetBSD: patch-src_wmtaskbar.cc,v 1.1 2014/01/05 12:33:26 ryoon Exp $ + +--- src/wmtaskbar.cc.orig 2013-11-17 16:54:39.000000000 +0000 ++++ src/wmtaskbar.cc +@@ -80,6 +80,10 @@ static void initPixmaps() { + * filename. This will be unified and be a forced standard in + * icewm-2 + */ ++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) ++ /* pkgsrc on *BSD: Try Beastie first */ ++ startImage = subdirs->loadImage(base, "bsd-daemon.xpm"); ++#else + startImage = themedirs->loadImage(base, "start.xpm"); + #if 1 + if (startImage == null || !startImage->valid()) +@@ -91,6 +95,7 @@ static void initPixmaps() { + if (startImage == null || !startImage->valid()) + startImage = subdirs->loadImage(base, "start.xpm"); + #endif ++#endif + + windowsImage = subdirs->loadImage(base, "windows.xpm"); + showDesktopImage = subdirs->loadImage(base, "desktop.xpm"); diff --git a/wm/icewm13/patches/patch-src_ylocale.cc b/wm/icewm13/patches/patch-src_ylocale.cc new file mode 100644 index 00000000000..ef0e06e2138 --- /dev/null +++ b/wm/icewm13/patches/patch-src_ylocale.cc @@ -0,0 +1,16 @@ +$NetBSD: patch-src_ylocale.cc,v 1.1 2014/01/05 12:33:26 ryoon Exp $ + +--- src/ylocale.cc.orig 2013-11-17 16:54:39.000000000 +0000 ++++ src/ylocale.cc +@@ -152,7 +152,11 @@ YUChar *YLocale::unicodeString(const YLC + char * inbuf((char *) lStr), * outbuf((char *) uStr); + size_t inlen(lLen), outlen(4 * lLen); + ++#if defined(__NetBSD__) || defined(__sun) ++ if (0 > (int) iconv(instance->toUnicode, const_cast<const char **>(&inbuf), &inlen, &outbuf, &outlen)) ++#else + if (0 > (int) iconv(instance->toUnicode, &inbuf, &inlen, &outbuf, &outlen)) ++#endif + warn(_("Invalid multibyte string \"%s\": %s"), lStr, strerror(errno)); + + *((YUChar *) outbuf) = 0; |