# New ports collection makefile for:	zh-tw-mldonkey
# Date created:				Wed Mar 10 19:36:06 CST 2004
# Whom:					Hung-Te Lin
#                                       <piaip@csie.ntu.edu.tw>
#
# $FreeBSD: ports/chinese/mldonkey-core/Makefile,v 1.2 2004/04/05 01:46:28 ijliao Exp $
#
# Only core (HTML/telnet) is affected. GUI has no problem with Chinese.

PORTNAME=	mldonkey-core
CATEGORIES=	chinese

MAINTAINER=	piaip@csie.ntu.edu.tw
COMMENT=	Client 'core' for MLDonkey with Traditional Chinese (Big5) support

WITHOUT_GUI=	yes
MASTERDIR=	${.CURDIR}/../../net/mldonkey
EXTRA_PATCHES=	${.CURDIR}/files/patch-driverControlers.ml

WRAPPERPREFIX=  ${.CURDIR}/files/wrapper-prefix
WRAPPER= 	${WRKDIR}/wrapper.sh

# build our own wrapper script
post-patch-script:
	@${MV} -f ${WRAPPER} ${WRAPPER}.orig
	@${CAT} ${WRAPPERPREFIX} ${WRAPPER}.orig > ${WRAPPER}

.include "${MASTERDIR}/Makefile"

# I know this will lead portlint to fail,
# but we have to do so.
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}tw-
