head	1.8;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4;
locks; strict;
comment	@# @;


1.8
date	2012.11.17.05.54.55;	author svnexp;	state Exp;
branches;
next	1.7;

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

1.6
date	2009.01.05.17.27.24;	author pav;	state Exp;
branches;
next	1.5;

1.5
date	2007.08.04.11.40.41;	author gabor;	state Exp;
branches;
next	1.4;

1.4
date	2006.11.14.19.01.12;	author rafan;	state Exp;
branches;
next	1.3;

1.3
date	2006.11.11.21.27.12;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.11.18.44.18;	author rafan;	state Exp;
branches;
next	1.1;

1.1
date	2006.11.10.20.13.09;	author rafan;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for:	big5width
# Date created:				Sep 20 2006
# Whom:					Rong-En Fan <rafan@@FreeBSD.org>
#
# $FreeBSD: head/chinese/big5width/Makefile 300895 2012-07-14 12:56:14Z beat $
#

PORTNAME=	big5width
PORTVERSION=	1.0
CATEGORIES=	chinese
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	rafan@@FreeBSD.org
COMMENT=	Unicode width dirty fix for Big5 font (${LANG} locale)

BASELOCALEDIR=	/usr/share/locale
LOCALEDIR=	${PREFIX}/share/locale
LANG=		zh_TW.UTF-8

PLIST_SUB=	BASELOCALEDIR=${BASELOCALEDIR} \
		LOCALEDIR=${LOCALEDIR} \
		LANG=${LANG}

.include <bsd.port.pre.mk>

SRCDIR=		${SRC_BASE}/share/mklocale

.if !exists(${SRCDIR})
IGNORE=		need to build this port with the locale source
.endif

do-extract:
	@@${MKDIR} ${WRKDIR}
	@@${CP} -R ${SRCDIR} ${WRKSRC}
	@@${CP} ${WRKSRC}/UTF-8.src ${WRKSRC}/${LANG}.src

do-build:
	/usr/bin/mklocale -o ${WRKSRC}/LC_CTYPE ${WRKSRC}/${LANG}.src

do-install:
	${MKDIR} ${LOCALEDIR}/${LANG}
	${INSTALL_DATA} ${WRKSRC}/LC_CTYPE ${LOCALEDIR}/${LANG}
	${LN} -fs ${LOCALEDIR}/${LANG}/LC_CTYPE \
		${BASELOCALEDIR}/${LANG}/LC_CTYPE

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.7
log
@Catch up with usage of SRC_BASE introduced in bsd.port.mk r1.662.  This
should fix the builds on pointyhat-west.

Hat:		portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Remove conditional checks relevant only on FreeBSD 5.x and older
@
text
@d27 1
a27 2
SRCBASE?=	${PORTSDIR}/../src
SRCDIR=		${SRCBASE}/share/mklocale
@


1.5
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
@a26 4
.if ${OSVERSION} < 502110
IGNORE=		requires UTF-8 locales in base system
.endif

@


1.4
log
@- Now I understand what really happened. share/locale/zh_TW.UTF-8/LC_CTYPE
  is a symlink to ../UTF-8/LC_CTYPE. So, changing the linking target is
  enough.

This should really fix pointyhat build.
@
text
@d17 1
a17 1
BASELOCALEDIR=	${DESTDIR}/usr/share/locale
@


1.3
log
@- Link is evil. Instead, we directly overwrite the locale file and
  put it back when deinstall.

This should fix the build according to my tinderbox.
@
text
@d49 1
a49 3
	${CP} -p ${BASELOCALEDIR}/${LANG}/LC_CTYPE \
		${LOCALEDIR}/${LANG}/LC_CTYPE.old
	${CP} -p ${LOCALEDIR}/${LANG}/LC_CTYPE \
@


1.2
log
@- Try to fix build by not modifying base locale file.
@
text
@d51 1
a51 2
.if !defined(PACKAGE_BUILDING) # don't modify building environment
	${LN} -sf ${LOCALEDIR}/${LANG}/LC_CTYPE \
a52 1
.endif
@


1.1
log
@Add big5width 1.0: Unicode width dirty fix for Big5 font (zh_TW.UTF-8 locale).

Obtained from:	Kuang-che Wu (kcwu at csie.org)
@
text
@d51 1
d54 1
@

