1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/japanese/Wnn6-lib/Makefile
Muhammad Moinur Rahman 9b178ffd7e */*: llvm15 build fixes
llvm15 was also merged into 13.2-STABLE effective from OSVERSION
1302505. Fix the ports that failed to build with llvm15.

Approved by:	portmgr (blanket)
2023-05-17 18:30:15 +02:00

42 lines
1.1 KiB
Makefile

PORTNAME= Wnn6-lib
PORTVERSION= 2000.9.1
PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.omronsoft.co.jp/pub/Wnn6/sdk_source/
DISTNAME= Wnn6-SDK
MAINTAINER= hrs@FreeBSD.org
COMMENT= Wnn6 client library
WWW= https://www.omronsoft.co.jp/
OPTIONS_DEFINE= DOCS
USES= imake
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/src/contrib/im/Xsi
PORTDOCS= README
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
${WRKSRC}/config/Project.tmpl \
${WRKSRC}/config/X11.tmpl \
${WRKSRC}/Makefile.ini
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} make World -f Makefile.ini)
post-install:
${LN} -sf libwnn6_fromsrc.a ${STAGEDIR}${PREFIX}/lib/libwnn6.a
${MKDIR} ${STAGEDIR}${PREFIX}/include/wnn6/wnn
${INSTALL_DATA} ${WRKSRC}/Wnn/include/*.h ${STAGEDIR}${PREFIX}/include/wnn6/wnn
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>