pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/mecab-base Fix build on SunOS with gcc>=4.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/44b540356f47
branches:  trunk
changeset: 597098:44b540356f47
user:      hans <hans%pkgsrc.org@localhost>
date:      Fri Dec 16 16:49:26 2011 +0000

description:
Fix build on SunOS with gcc>=4.6

diffstat:

 textproc/mecab-base/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r e7827cdd3d7d -r 44b540356f47 textproc/mecab-base/Makefile
--- a/textproc/mecab-base/Makefile      Fri Dec 16 15:59:54 2011 +0000
+++ b/textproc/mecab-base/Makefile      Fri Dec 16 16:49:26 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/10/14 08:22:35 obache Exp $
+# $NetBSD: Makefile,v 1.6 2011/12/16 16:49:26 hans Exp $
 #
 
 .include "../../textproc/mecab/Makefile.common"
@@ -17,9 +17,13 @@
 OWN_DIRS=              ${PREFIX:Q}/lib/mecab/dic
 
 .include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
 
 .if ${OPSYS} == "SunOS"
 USE_TOOLS+=            gmake
+.  if !empty(CC_VERSION:Mgcc-4.[6-9].*)
+CFLAGS.SunOS+=         -D_XOPEN_SOURCE=600 -std=c99
+.  endif
 .endif
 
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}



Home | Main Index | Thread Index | Old Index