1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/chinese/xsim/Makefile
Jimmy Olgeni 37e782dfbc Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories A-C.

CR:		D196
Approved by:	portmgr (bapt)
2014-06-09 11:21:52 +00:00

45 lines
1.4 KiB
Makefile

# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
# $FreeBSD$
PORTNAME= xsim
PORTVERSION= 0.3.9.4
PORTREVISION= 3
CATEGORIES= chinese
MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION}
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
${PORTNAME}-data-freebsd-gb2312.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple and fast GBK Chinese XIM server
USE_XORG= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cn-locale=eucCN \
--with-bdb-includes=${BDB_INCLUDE_DIR} \
--with-bdb-libraries=${BDB_LIB_DIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message xsim.sh
USE_BDB= 40+
CFLAGS+= -fPIC
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_s.so`
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
${WRKSRC}/xsim/IMdkit/IMConn.c
@${FIND} ${WRKSRC} -name xsimrc.in -or -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -Ee 's,@prefix@/(plugins|dat|bin),${DATADIR}/\1,g'
@${FIND} ${WRKSRC} ! -type d \
-exec ${GREP} -q _CPP_BITS_IOSBASE_H '{}' \; \
-exec ${REINPLACE_CMD} 's/#ifdef _CPP_BITS_IOSBASE_H/#if defined(_IOS_BASE_H) || defined(_CPP_BITS_IOSBASE_H)/g' '{}' \;
${REINPLACE_CMD} "s#-O2#${CFLAGS}#g; s,/usr/local,${LOCALBASE},; s|s,@bdblib@,\$$bdblib,|s,@bdblib@,${BDB_LIB_CXX_NAME},|" ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim
@${MKDIR} ${DATADIR}/dat
@${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>