freebsd-ports/chinese/xsim/Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: xsim
# Date created: 30 Dec 2002
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#
PORTNAME= xsim
PORTVERSION= 0.3.9.4
PORTREVISION= 3
CATEGORIES= chinese
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
${PORTNAME}-data-freebsd-gb2312.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple and fast GBK Chinese XIM server
USE_XORG= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cn-locale=eucCN
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message xsim.sh
USE_BDB= 40+
.include <bsd.port.pre.mk>
CFLAGS+= -fPIC
.if ${OSVERSION} < 700000
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_pic.a`
.else
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_s.so`
.endif
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" ${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.post.mk>