2003-03-27 01:39:53 +00:00
|
|
|
# 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
|
- 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
|
|
|
PORTREVISION= 3
|
2003-03-27 01:39:53 +00:00
|
|
|
CATEGORIES= chinese
|
2009-08-22 00:15:15 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION}
|
2003-04-05 17:30:18 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
|
|
|
|
${PORTNAME}-data-freebsd-gb2312.tar.gz
|
2003-03-27 01:39:53 +00:00
|
|
|
|
2005-07-25 21:58:10 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-27 01:39:53 +00:00
|
|
|
COMMENT= A simple and fast GBK Chinese XIM server
|
|
|
|
|
- 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
|
|
|
USE_XORG= x11
|
2003-03-27 01:39:53 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-06-01 21:56:00 +00:00
|
|
|
CONFIGURE_ARGS= --with-cn-locale=eucCN \
|
|
|
|
--with-bdb-includes=${BDB_INCLUDE_DIR} \
|
|
|
|
--with-bdb-libraries=${BDB_LIB_DIR}
|
2006-04-01 12:44:58 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message xsim.sh
|
2006-08-14 07:07:07 +00:00
|
|
|
USE_BDB= 40+
|
2003-03-27 01:39:53 +00:00
|
|
|
|
2004-03-18 12:43:55 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-09-15 13:58:22 +00:00
|
|
|
CFLAGS+= -fPIC
|
2007-08-12 13:48:10 +00:00
|
|
|
.if ${OSVERSION} < 700000
|
2005-09-15 13:58:22 +00:00
|
|
|
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_pic.a`
|
2007-08-12 13:48:10 +00:00
|
|
|
.else
|
|
|
|
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_s.so`
|
|
|
|
.endif
|
2004-03-18 12:43:55 +00:00
|
|
|
|
2003-03-27 01:39:53 +00:00
|
|
|
post-patch:
|
2003-03-27 05:25:44 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
|
2003-03-27 01:39:53 +00:00
|
|
|
${WRKSRC}/xsim/IMdkit/IMConn.c
|
2003-04-05 17:30:18 +00:00
|
|
|
@${FIND} ${WRKSRC} -name xsimrc.in -or -name Makefile.in | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -Ee 's,@prefix@/(plugins|dat|bin),${DATADIR}/\1,g'
|
2004-08-01 17:48:43 +00:00
|
|
|
@${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' '{}' \;
|
2009-06-04 22:07:28 +00:00
|
|
|
${REINPLACE_CMD} "s#-O2#${CFLAGS}#g; s,/usr/local,${LOCALBASE},; s|s,@bdblib@,\$$bdblib,|s,@bdblib@,${BDB_LIB_CXX_NAME},|" ${WRKSRC}/configure
|
2003-03-27 01:39:53 +00:00
|
|
|
|
|
|
|
post-install:
|
2007-08-04 11:41:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim
|
2003-04-05 17:30:18 +00:00
|
|
|
@${MKDIR} ${DATADIR}/dat
|
|
|
|
@${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat
|
2006-04-01 12:44:58 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-03-27 01:39:53 +00:00
|
|
|
|
2004-03-18 12:43:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|