head	1.24;
access;
symbols
	RELEASE_8_3_0:1.23
	RELEASE_9_0_0:1.23
	RELEASE_7_4_0:1.22
	RELEASE_8_2_0:1.22
	RELEASE_6_EOL:1.22
	RELEASE_8_1_0:1.22
	RELEASE_7_3_0:1.22
	RELEASE_8_0_0:1.22
	RELEASE_7_2_0:1.19
	RELEASE_7_1_0:1.19
	RELEASE_6_4_0:1.19
	RELEASE_5_EOL:1.19
	RELEASE_7_0_0:1.18
	RELEASE_6_3_0:1.18
	PRE_XORG_7:1.15
	RELEASE_4_EOL:1.15
	RELEASE_6_2_0:1.15
	RELEASE_6_1_0:1.12
	RELEASE_5_5_0:1.12
	RELEASE_6_0_0:1.11
	RELEASE_5_4_0:1.10
	RELEASE_4_11_0:1.9
	RELEASE_5_3_0:1.9
	RELEASE_4_10_0:1.8
	RELEASE_5_2_1:1.7
	RELEASE_5_2_0:1.7
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3;
locks; strict;
comment	@# @;


1.24
date	2012.11.17.05.54.58;	author svnexp;	state Exp;
branches;
next	1.23;

1.23
date	2011.11.06.16.36.34;	author miwi;	state Exp;
branches;
next	1.22;

1.22
date	2009.08.22.00.15.08;	author amdmi3;	state Exp;
branches;
next	1.21;

1.21
date	2009.06.04.22.07.28;	author gerald;	state Exp;
branches;
next	1.20;

1.20
date	2009.06.01.21.56.00;	author itetcu;	state Exp;
branches;
next	1.19;

1.19
date	2008.04.19.17.47.05;	author miwi;	state Exp;
branches;
next	1.18;

1.18
date	2007.08.12.13.48.10;	author arved;	state Exp;
branches;
next	1.17;

1.17
date	2007.08.04.11.40.43;	author gabor;	state Exp;
branches;
next	1.16;

1.16
date	2007.05.19.20.00.50;	author flz;	state Exp;
branches;
next	1.15;

1.15
date	2006.08.14.07.07.07;	author clsung;	state Exp;
branches;
next	1.14;

1.14
date	2006.05.03.23.38.34;	author edwin;	state Exp;
branches;
next	1.13;

1.13
date	2006.04.01.12.44.58;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2005.09.15.13.58.22;	author barner;	state Exp;
branches;
next	1.11;

1.11
date	2005.07.25.21.58.10;	author linimon;	state Exp;
branches;
next	1.10;

1.10
date	2005.01.08.15.50.05;	author sem;	state Exp;
branches;
next	1.9;

1.9
date	2004.08.01.17.48.42;	author vanilla;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.18.12.43.55;	author kris;	state Exp;
branches;
next	1.7;

1.7
date	2003.11.21.03.09.44;	author linimon;	state Exp;
branches;
next	1.6;

1.6
date	2003.10.16.04.15.45;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2003.10.16.01.11.46;	author kris;	state Exp;
branches;
next	1.4;

1.4
date	2003.10.16.01.10.33;	author kris;	state Exp;
branches;
next	1.3;

1.3
date	2003.04.05.17.30.18;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2003.03.27.05.25.44;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2003.03.27.01.39.53;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Switch exporter over
@
text
@# New ports collection makefile for:	xsim
# Date created:		30 Dec 2002
# Whom:			Shen Chuan-Hsing <statue@@freebsd.sinica.edu.tw>
#
# $FreeBSD: head/chinese/xsim/Makefile 300895 2012-07-14 12:56:14Z beat $
#

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=	A 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`

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>
@


1.23
log
@- Get rid FreeBSD 6.X support
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.22
log
@- Switch SourceForge ports to the new File Release System: categories starting with B,C
@
text
@a27 2
.include <bsd.port.pre.mk>

a28 3
.if ${OSVERSION} < 700000
MAKE_ARGS+=	gcclib=`${CXX} -print-file-name=libgcc_pic.a`
.else
a29 1
.endif
d47 1
a47 1
.include <bsd.port.post.mk>
@


1.21
log
@Fix post-patch to allow for CFLAGS containing a slash (which happens
in case of pathnames).
@
text
@d12 1
a12 1
MASTER_SITES=	SF
@


1.20
log
@Fix with custom LOCALBASE. Not the right way, but fixed.

Prompted by:	QATty
@
text
@d45 1
a45 1
	${REINPLACE_CMD} "s/-O2/${CFLAGS}/g; s,/usr/local,${LOCALBASE},; s|s,@@bdblib@@,\$$bdblib,|s,@@bdblib@@,${BDB_LIB_CXX_NAME},|" ${WRKSRC}/configure
@


1.19
log
@- 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)
@
text
@d21 3
a23 1
CONFIGURE_ARGS=	--with-cn-locale=eucCN
d45 1
a45 1
	@@${REINPLACE_CMD} "s/-O2/${CFLAGS}/g" ${WRKSRC}/configure
@


1.18
log
@Fix build on CURRENT 64bit archs
@
text
@d10 1
a10 1
PORTREVISION=	2
d12 1
a12 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
d19 1
a19 1
USE_XLIB=	yes
@


1.17
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@d30 1
d32 3
@


1.16
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d43 1
a43 1
	${INSTALL_DATA} ${WRKDIR}/xsim.sh ${TARGETDIR}/bin/xsim
@


1.15
log
@- Respect DESTDIR
- Use USE_BDB

PR:		ports/101906
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.14
log
@remove USE_REINPLACE for all ports with categories starting with C
@
text
@d10 1
a19 2
LIB_DEPENDS=	db4:${PORTSDIR}/databases/db4

d25 1
d43 1
a43 1
	${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim
@


1.13
log
@Use SUB_FILES
@
text
@a20 1
USE_REINPLACE=	yes
@


1.12
log
@Fix build on 64bit architectures by adding -fPIC to CFLAGS.

Submitted by:	Johan van Selst <johans@@stack.nl>
PR:		ports/85089
Tested by:	submitter (amd64), barner (sparc64, i386)
@
text
@d25 2
d44 1
a44 2
	@@${SED} "s|%%PREFIX%%|${PREFIX}|g" <${FILESDIR}/xsim.sh \
		>${PREFIX}/bin/xsim && ${CHMOD} 555 ${PREFIX}/bin/xsim
d47 1
a47 1
	@@${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE}
@


1.11
log
@Reset bouncing maintainer address.  These ports are now available for
adoption.

Note that I have left the maintainer's own ftp site as a MASTERSITE
because it still appears to be active (for now, anyways).

Hat:	portmgr
@
text
@d28 2
a29 3
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
BROKEN=		"Does not compile on amd64 or ia64 (missing -fPIC)"
.endif
@


1.10
log
@- Pass maintainership to submitter

PR:		ports/75730
Submitted by:	statue(at)freebsd.netlab.cse.yzu.edu.tw
@
text
@d16 1
a16 1
MAINTAINER=	statue@@freebsd.netlab.cse.yzu.edu.tw
@


1.9
log
@1. Compilation failure when using GCC 3.4
2. Does not respect ${CFLAGS}
3. Dependancy problem: This port has preference on db4 over db3.3, i.e. when
   both are present, it uses db4. So change the dependancy from db3.3 to db4.
4. The default installation does not create user settings, which causes write
   attempt to global settings and the consequent failure confuses users.
5. Locale zh_CN.EUC is not present on 5.x. Swith to zh_CN.eucCN.

PR:		ports/69251
Submitted by:	Jie Gao <gaoj@@cpsc.ucalgary.ca>
@
text
@d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.8
log
@BROKEN on amd64 and ia64: Missing -fPIC
@
text
@d19 1
a19 1
LIB_DEPENDS=	db3.3:${PORTSDIR}/databases/db3
d24 1
a24 1
CONFIGURE_ARGS=	--with-cn-locale=EUC
d37 4
d43 2
a44 1
	@@${LN} -s ${DATADIR}/bin/xsim ${PREFIX}/bin/xsim
@


1.7
log
@statue@@freebsd.sinica.edu.tw has asked for all the maintained
ports to be reset to ports@@FreeBSD.org.  We're sorry to see you
go and want to thank you for your help in the past.

PR:		ports/59515
Submitted by:	statue@@freebsd.sinica.edu.tw
@
text
@d26 6
d44 1
a44 1
.include <bsd.port.mk>
@


1.6
log
@Before committing the previous BROKEN changes I carefully checked the status
of each port on bento and for recent fixes.  Unfortunately at some point I
got confused and switched to the wrong list :-)  As a result I picked up a
number of ports that were fixed a while ago.  Sorry for the false alarm,
maintainers.

Pointy hat to:	kris
@
text
@d16 1
a16 1
MAINTAINER=	statue@@freebsd.sinica.edu.tw
@


1.5
log
@Correct whitespace in previous
@
text
@a25 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile"
.endif

d38 1
a38 1
.include <bsd.port.post.mk>
@


1.4
log
@BROKEN on 5.x: does not compile
@
text
@d29 1
a29 1
BROKEN=         "Does not compile"
@


1.3
log
@fix xsim-data and xsinrc
add xsim-data-freebsd-gb2312.tar.gz

PR:		50597
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@d26 6
d44 1
a44 1
.include <bsd.port.mk>
@


1.2
log
@add a missing \\
@
text
@d13 2
d29 2
a30 4
	@@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
		${REINPLACE_CMD} -e 's,@@prefix@@/plugins,${DATADIR}/plugins,g' \
			-e 's,@@prefix@@/dat,${DATADIR}/dat,g' \
			-e 's,@@prefix@@/bin,${DATADIR}/bin,g'
d33 3
a35 2
	@@${LN} -s ${PREFIX}/share/xsim/bin/xsim ${PREFIX}/bin/xsim
	@@cd ${WRKSRC} && make install-data
@


1.1
log
@add xsim 0.3.9.4
A simple and fast GBK Chinese XIM server

PR:		48968
Submitted by:	Shen Chuan-Hsing <statue@@freebsd.sinica.edu.tw>
@
text
@d25 1
a25 1
	@@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' 
@

