chinese/scim-pinyin: Fix build with llvm16

- Pet portclippy
- Utilize USES=localbase

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-07-23 21:13:19 +02:00
parent 6d73075a1f
commit 4c4d74fc6c
1 changed files with 10 additions and 6 deletions

View File

@ -8,22 +8,26 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= SCIM Chinese Smart Pinyin input method
WWW= https://github.com/scim-im/scim
BUILD_DEPENDS= scim>=1.2.0:textproc/scim
RUN_DEPENDS:= ${BUILD_DEPENDS}
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake iconv libtool:keepla pathfix pkgconfig
BUILD_DEPENDS= scim>=1.2.0:textproc/scim
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= gmake iconv libtool:keepla localbase:ldflags pathfix pkgconfig
USE_CXXSTD= c++14
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-skim-support
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include -D__STDC_ISO_10646__
LDFLAGS+= -L${LOCALBASE}/lib -lintl
CPPFLAGS+= -D__STDC_ISO_10646__
LDFLAGS+= -lintl
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls