summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2020-06-28 02:33:05 +0000
committerryoon <ryoon@pkgsrc.org>2020-06-28 02:33:05 +0000
commitcf71442e9d2c7ce3b73338181d2bea9009350b38 (patch)
treec1c74396f96c52f356e70037b8192bc2dc0391b3
parent5c34b54b4ef0691f6a5e1c91f31657525929bab9 (diff)
downloadpkgsrc-cf71442e9d2c7ce3b73338181d2bea9009350b38.tar.gz
open_jtalk: Fix build under NetBSD 9 or earlier
-rw-r--r--audio/open_jtalk/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/open_jtalk/Makefile b/audio/open_jtalk/Makefile
index 2e1713de443..f8e3a777beb 100644
--- a/audio/open_jtalk/Makefile
+++ b/audio/open_jtalk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/06/16 13:35:05 ryoon Exp $
+# $NetBSD: Makefile,v 1.2 2020/06/28 02:33:05 ryoon Exp $
DISTNAME= open_jtalk-1.11
CATEGORIES= audio
@@ -14,6 +14,11 @@ USE_LANGUAGES= c c++
MAKE_ENV+= dicdir=${PREFIX}/share/open_jtalk/dic
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9].[0-8]*-*)
+CFLAGS+= -fpermissive # for iconv(3) and const char**
+.endif
+
CONFIGURE_ARGS+= --with-hts-engine-header-path=${BUILDLINK_DIR}/include
CONFIGURE_ARGS+= --with-hts-engine-library-path=${BUILDLINK_DIR}/lib
CONFIGURE_ARGS+= --with-charset=UTF-8