head	1.56;
access;
symbols
	RELEASE_8_3_0:1.51
	RELEASE_9_0_0:1.51
	RELEASE_7_4_0:1.50
	RELEASE_8_2_0:1.50
	RELEASE_6_EOL:1.50
	RELEASE_8_1_0:1.49
	RELEASE_7_3_0:1.49
	RELEASE_8_0_0:1.49
	RELEASE_7_2_0:1.48
	RELEASE_7_1_0:1.47
	RELEASE_6_4_0:1.47
	RELEASE_5_EOL:1.46
	RELEASE_7_0_0:1.45
	RELEASE_6_3_0:1.45
	PRE_XORG_7:1.44
	RELEASE_4_EOL:1.41
	RELEASE_6_2_0:1.41
	RELEASE_6_1_0:1.39
	RELEASE_5_5_0:1.39
	RELEASE_6_0_0:1.39
	RELEASE_5_4_0:1.39
	RELEASE_4_11_0:1.39
	RELEASE_5_3_0:1.37
	RELEASE_4_10_0:1.34
	RELEASE_5_2_1:1.31
	RELEASE_5_2_0:1.31
	RELEASE_4_9_0:1.30
	RELEASE_5_1_0:1.27
	RELEASE_4_8_0:1.26
	RELEASE_5_0_0:1.24
	RELEASE_4_7_0:1.24
	RELEASE_4_6_2:1.19
	RELEASE_4_6_1:1.19
	RELEASE_4_6_0:1.19
	RELEASE_5_0_DP1:1.17
	RELEASE_4_5_0:1.8
	RELEASE_4_4_0:1.8
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.5
	RELEASE_4_1_1:1.4
	mutt_1_2_5:1.1.1.1
	CLIVE:1.1.1;
locks; strict;
comment	@# @;


1.56
date	2012.11.17.05.54.57;	author svnexp;	state Exp;
branches;
next	1.55;

1.55
date	2012.09.29.06.35.42;	author rafan;	state Exp;
branches;
next	1.54;

1.54
date	2012.07.22.09.15.04;	author crees;	state Exp;
branches;
next	1.53;

1.53
date	2012.06.24.05.13.19;	author rafan;	state Exp;
branches;
next	1.52;

1.52
date	2012.04.14.12.51.34;	author rafan;	state Exp;
branches;
next	1.51;

1.51
date	2011.10.01.16.42.58;	author sunpoet;	state Exp;
branches;
next	1.50;

1.50
date	2010.09.26.20.16.03;	author rafan;	state Exp;
branches;
next	1.49;

1.49
date	2009.06.29.06.02.51;	author rafan;	state Exp;
branches;
next	1.48;

1.48
date	2009.02.11.13.31.52;	author rafan;	state Exp;
branches;
next	1.47;

1.47
date	2008.06.06.13.14.35;	author edwin;	state Exp;
branches;
next	1.46;

1.46
date	2008.05.22.04.18.45;	author rafan;	state Exp;
branches;
next	1.45;

1.45
date	2007.06.30.20.28.43;	author rafan;	state Exp;
branches;
next	1.44;

1.44
date	2007.04.16.03.24.18;	author rafan;	state Exp;
branches;
next	1.43;

1.43
date	2007.04.12.07.35.28;	author rafan;	state Exp;
branches;
next	1.42;

1.42
date	2007.03.05.12.22.44;	author rafan;	state Exp;
branches;
next	1.41;

1.41
date	2006.07.03.07.17.04;	author clive;	state Exp;
branches;
next	1.40;

1.40
date	2006.04.20.10.50.48;	author clive;	state Exp;
branches;
next	1.39;

1.39
date	2004.12.20.16.23.12;	author clive;	state Exp;
branches;
next	1.38;

1.38
date	2004.11.14.16.43.28;	author clive;	state Exp;
branches;
next	1.37;

1.37
date	2004.08.29.15.58.50;	author clive;	state Exp;
branches;
next	1.36;

1.36
date	2004.08.18.03.41.57;	author clive;	state Exp;
branches;
next	1.35;

1.35
date	2004.06.16.17.52.36;	author clive;	state Exp;
branches;
next	1.34;

1.34
date	2004.03.30.19.03.27;	author clive;	state Exp;
branches;
next	1.33;

1.33
date	2004.02.14.07.55.34;	author clive;	state Exp;
branches;
next	1.32;

1.32
date	2004.02.07.12.26.00;	author kris;	state Exp;
branches;
next	1.31;

1.31
date	2003.11.07.16.10.56;	author clive;	state Exp;
branches;
next	1.30;

1.30
date	2003.08.09.06.38.39;	author clive;	state Exp;
branches;
next	1.29;

1.29
date	2003.06.28.19.13.11;	author clive;	state Exp;
branches;
next	1.28;

1.28
date	2003.06.13.17.44.46;	author clive;	state Exp;
branches;
next	1.27;

1.27
date	2003.05.04.09.53.39;	author clive;	state Exp;
branches;
next	1.26;

1.26
date	2003.02.21.12.42.26;	author knu;	state Exp;
branches;
next	1.25;

1.25
date	2003.01.01.20.48.15;	author clive;	state Exp;
branches;
next	1.24;

1.24
date	2002.10.01.11.45.11;	author clive;	state Exp;
branches;
next	1.23;

1.23
date	2002.09.01.15.54.44;	author clive;	state Exp;
branches;
next	1.22;

1.22
date	2002.08.29.20.21.54;	author clive;	state Exp;
branches;
next	1.21;

1.21
date	2002.08.27.13.39.17;	author clive;	state Exp;
branches;
next	1.20;

1.20
date	2002.06.16.17.07.55;	author clive;	state Exp;
branches;
next	1.19;

1.19
date	2002.05.03.18.55.16;	author clive;	state Exp;
branches;
next	1.18;

1.18
date	2002.04.15.00.03.25;	author clive;	state Exp;
branches;
next	1.17;

1.17
date	2002.03.18.07.12.20;	author clive;	state Exp;
branches;
next	1.16;

1.16
date	2002.03.16.05.20.31;	author clive;	state Exp;
branches;
next	1.15;

1.15
date	2002.03.14.06.31.21;	author clive;	state Exp;
branches;
next	1.14;

1.14
date	2002.03.09.20.23.25;	author clive;	state Exp;
branches;
next	1.13;

1.13
date	2002.03.09.17.21.54;	author clive;	state Exp;
branches;
next	1.12;

1.12
date	2002.02.17.22.38.59;	author clive;	state Exp;
branches;
next	1.11;

1.11
date	2002.01.30.08.20.48;	author clive;	state Exp;
branches;
next	1.10;

1.10
date	2002.01.30.02.35.26;	author clive;	state Exp;
branches;
next	1.9;

1.9
date	2002.01.28.18.06.30;	author clive;	state Exp;
branches;
next	1.8;

1.8
date	2001.09.05.07.03.34;	author clive;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.29.15.28.41;	author clive;	state Exp;
branches;
next	1.6;

1.6
date	2001.05.22.18.19.37;	author sobomax;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.08.10.25.14;	author asami;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.02.06.03.51;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.31.21.19.22;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2000.08.30.05.31.57;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.26.09.02.47;	author vanilla;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.08.26.09.02.47;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.56
log
@Switch exporter over
@
text
@# ex:ts=8
# Ports collection makefile for:  mutt w/pgp hooks
# Date created:			  Thur July 25, 1996
# Whom:				  David O'Brien (obrien@@NUXI.com)
#
# $FreeBSD: head/chinese/mutt/Makefile 305029 2012-09-29 06:35:42Z rafan $
#

PORTREVISION=	3
CATEGORIES=	chinese

MASTERDIR=	${.CURDIR}/../../mail/mutt
REVISEDATE=	20100927
PORTREVISION=	${REVISEDATE}

# XXX: Currently PORTREVISION assignment is not perfect. It needs to
# inherit its master port's PORTREVISION and be appended.

MAINTAINER=	rafan@@FreeBSD.org
COMMENT=	The Mongrel of Mail User Agents with Chinese support

CONFLICTS=	ja-mutt-[0-9]* ja-mutt-devel-[0-9]* mutt-[0-9]* mutt-lite-[0-9]*

LIB_DEPENDS+=	hz.0:${PORTSDIR}/chinese/autoconvert

LDFLAGS_ADD+=	-lhz

WITH_MUTT_LOCALES_FIX=	yes
WITH_MUTT_NCURSES=	yes
.if !defined(PACKAGE_BUILDING)
WITHOUT_MUTT_SGMLFORMAT=	yes
WITHOUT_MUTT_HTML=		yes
WITHOUT_MUTT_XML=		yes
WITHOUT_MUTT_COMPRESSED_FOLDERS=yes
.endif
MUTT_SLAVE_HTML_PAGES=	1

PKGMESSAGE=	${.CURDIR}/pkg-message

post-patch::
	@@${REINPLACE_CMD} -e '/^mutt_SOURCES/s/\\$$/ myiconv.c \\/' ${WRKSRC}/Makefile.am
	@@for i in ${.CURDIR}/files/patch-*; do \
		${ECHO_MSG} "===>  Applying extra patch $$i"; \
		${PATCH} ${PATCH_ARGS} < $$i; \
	done

.include "${MASTERDIR}/Makefile"
@


1.55
log
@SVN rev 305029 on 2012-09-29 06:35:42Z by rafan

- Fix build on -CURRENT

PR:		ports/172132
Submitted by:	KT Sin <ktsin at acm.org>
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.54
log
@SVN rev 301308 on 2012-07-22 09:15:04Z by crees

Move mail/mutt to mail/mutt14

Move mail/mutt-lite to mail/mutt14-lite

Move mail/mutt-devel to mail/mutt

Moving mail/mutt-devel-lite to mail/mutt-lite will follow next to avoid
breaking the cvs exporter

PR:		ports/169546
Suggested by:	obrien
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTREVISION=	2
a25 1
CFLAGS_ADD+=	-D_DONT_USE_CTYPE_INLINE_
@


1.53
log
@- Fix build due to mail/mutt-devel changes

Submitted by:	cy@@
@
text
@d12 1
a12 1
MASTERDIR=	${.CURDIR}/../../mail/mutt-devel
d22 1
a22 1
CONFLICTS=	ja-mutt-[0-9]* ja-mutt-devel-[0-9]* mutt-[0-9]* mutt-devel-[0-9]* mutt-devel-lite-[0-9]* mutt-lite-[0-9]*
@


1.52
log
@- Fix build post mail/mutt-devel upgrade. The patch-nbsp from master port
  now conflicts with our own patch-zh-mutt, so have to move the patch
  into post-patch section
@
text
@d26 2
a27 2
CFLAGS+=	-D_DONT_USE_CTYPE_INLINE_
LDFLAGS+=	-lhz
@


1.51
log
@- Mark CONFLICTS with ja-mutt, ja-mutt-devel, mutt, mutt-devel, mutt-devel-lite and mutt-lite
- Bump PORTREVISION for package change
@
text
@a28 2
EXTRA_PATCHES+=	${.CURDIR}/files/patch-*

d43 4
@


1.50
log
@- Update for 1.5.21
@
text
@d9 1
a9 1
PORTREVISION=	1
d22 2
@


1.49
log
@- Fix build after mail/mutt-devel upgraded to 1.5.20
@
text
@d13 1
a13 1
REVISEDATE=	20090629
@


1.48
log
@- Fix build after devel/mutt-devel update
@
text
@d13 1
a13 1
REVISEDATE=	20090211
@


1.47
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d13 1
a13 1
REVISEDATE=	20080522
@


1.46
log
@- Update for 1.5.18
- Put patch to files/ for easier management and update
@
text
@d9 1
@


1.45
log
@- Update to 1.5.16
@
text
@d12 1
a12 1
REVISEDATE=	20060703
a20 5
PATCH_SITES=	${MASTER_SITE_LOCAL:S/$/:tw/}
PATCH_SITE_SUBDIR=	rafan/chinese/:tw
TW_PATCH_VERSION=	1.5.16-${REVISEDATE}
PATCHFILES=	${PKGNAMEPREFIX}mutt-${TW_PATCH_VERSION}.diff.gz:tw

d24 3
a37 1
MD5_FILE=	${.CURDIR}/distinfo
d40 3
@


1.44
log
@- Remove 4.x left-overs, we have working wc* functions on 5.x and above.
  This should fix Big5 mutt message display.

Reported by:	ijliao
Tested by:	ijliao
@
text
@d23 1
a23 1
TW_PATCH_VERSION=	1.5.15-${REVISEDATE}
@


1.43
log
@- Chase mail/mutt-devel update
@
text
@a30 1
MUTT_CONFIGURE_ARGS+=	--without-wc-funcs
@


1.42
log
@- Chase mutt-devel 1.5.14
- Take maintainership

Approved by:	clive (maintainer)
@
text
@d23 1
a23 1
TW_PATCH_VERSION=	1.5.14-${REVISEDATE}
a32 1
WITH_MUTT_ASSUMED_CHARSET_PATCH=	yes
@


1.41
log
@Updating PORTREVISION.

Reminded by: shaun
@
text
@d18 1
a18 1
MAINTAINER=	clive@@FreeBSD.org
d21 4
a24 4
PATCH_SITES=	http://wood.ite.ntnu.edu.tw/~clive/dist/mutt15/ \
		ftp://freebsd.sinica.edu.tw/pub/clive/mutt15/ \
		http://bsdchat.com/dist/mutt15/
PATCHFILES=	${PKGNAMEPREFIX}mutt-${PORTVERSION}-${REVISEDATE}.diff.gz
@


1.40
log
@Merge distinfo from master port.
Enable WITH_MUTT_ASSUMED_CHARSET_PATCH.
Enable WITHOUT_MUTT_XML when not in package building.
Revise comment wording.

PR:		ports/96081 (based on)
Submitted by:	Rong-En Fan <rafan AT infor DOT org>
@
text
@d12 1
a12 1
REVISEDATE=	20040617
@


1.39
log
@Correct a PLIST problem of zh-mutt.

Reported by:	pointyhat via kris
Submitted by:	MAINTAINER of mutt-devel
@
text
@d15 2
a16 2
# XXX: Currently PORTREVISION assignment is not functional. Master port
# needs to be fixed.
d21 3
a23 3
PATCH_SITES=	http://bsdchat.com/dist/mutt15/ \
		http://wood.ite.ntnu.edu.tw/~clive/dist/mutt15/ \
		ftp://freebsd.sinica.edu.tw/pub/clive/mutt15/
d33 1
d37 1
@


1.38
log
@My site is back and stable for a while, so point PATCH_SITES
back to the warm house.

Sponsored by:	UnitedLayer, LLC.
@
text
@d38 1
@


1.37
log
@Replace a dead site with a working one.
@
text
@d21 2
a22 1
PATCH_SITES=	http://wood.ite.ntnu.edu.tw/~clive/dist/mutt15/ \
@


1.36
log
@Don't use ctype inline to avoid redefinition of wcwidth(), implemented
in latest -CURRENT.

PR:		ports/70471
Submitted by:	dhchen <dhchen at dhchen.com>
@
text
@d21 1
a21 1
PATCH_SITES=	http://bsdchat.com/~clive/dist/mutt15/ \
@


1.35
log
@+ Updated patchset:
  + Avoid misuse of safe_strdup shipped with mutt.
    + It returns 0 (NULL pointer) instead of pointer to 0 (empty string)
      if the source string is empty(""). Consequently iconv_open will cause
      mutt to core-dumps itself. It expects const char* instead of NULL
      pointer.
    + On each successful call to wraped iconv_open provided by the patchset,
      small piece of memory is allocated by safe_strdup. The original patchset
      did not free it.

Above submitted by:	Kuang-che Wu <kcwu at kcwu dot homeip dot net>

+ Experimental abuse of PORTREVISION. More testing is in progress. It will
  be really activated via master port if there's nothing else broken.
@
text
@d27 2
@


1.34
log
@Make the last line of Makefile to be

.include "${MASTERDIR}/Makefile"
@
text
@d12 5
a16 1
REVISEDATE=	20030807
@


1.33
log
@Update distinfo accordingly.

PR:		ports/62355
Freed by:	Mandatory Military Service
@
text
@d21 2
a35 2
# To be a satellite port, I do not have many choices to place this line.
LIB_DEPENDS+=	hz.0:${PORTSDIR}/chinese/autoconvert
@


1.32
log
@BROKEN: Incorrect distinfo
@
text
@a20 2
BROKEN=		"Incorrect distinfo"

@


1.31
log
@Follow up with mail/mutt-devel.
@
text
@d21 2
@


1.30
log
@Update to patchset 20030807.
This patchset teaches mutt big5-hkscs charset.
@
text
@a10 1
PORTREVISION=	7
@


1.29
log
@Remove over zealous PATCH_DIST_ARGS to fix build when PACKAGE_BUILDING
is defined.

Noted by: kris
@
text
@d11 1
d13 1
a13 1
REVISEDATE=	20030614
@


1.28
log
@Update patchset checksum and revision date.

Changes in patchset: update zh_TW.po patch.
Patch submitted by: Kuang-che Wu <kcwu@@kcwu.homeip.net>
@
text
@a19 1
PATCH_DIST_ARGS=	-d ${WRKDIR} --quiet
@


1.27
log
@o Add a plus sign in the PATCH_SITES of master port. (mail/mutt-devel)
  Otherwise the PATCH_SITES in the slave port would be overwrited.

o WITHOUT_MUTT_HTML, WITHOUT_MUTT_COMPRESSED_FOLDERS are enabled in the
  slave port now. The former shortens the depends list, for the taste
  of people on the #bsdchat. The reason for later knob is that I currently
  have not much time to deal with it.

o Change the MAINTAINER to me, requested by previous maintainer.
@
text
@d12 1
a12 1
REVISEDATE=	20020901
@


1.26
log
@De-pkg-comment.
@
text
@d14 1
a14 1
MAINTAINER=	ycheng@@sinica.edu.tw
d27 2
@


1.25
log
@o Chasing mail/mutt-devel upgrade.
o Add --without-wc-funcs to MUTT_CONFIGURE_ARGS, because wc family in
  -CURRENT does not work well with mutt.
@
text
@d15 1
@


1.24
log
@Remove a obsoleted variable for cleanness.
@
text
@a12 1
PORTREVISION=	3
d22 1
@


1.23
log
@Update for a new patchset, which has only different comments.
No functionality changes.
@
text
@a23 1
WITH_MUTT_PGP_OUTLOOK_PATCH=	yes
@


1.22
log
@    Since the Big5<->GB mapping in iconv is simply broken
and not acceptable, hook another table included in autoconvert
(called libhz) is not an option.

    This new patchset also adds copyright in files not written
by myself.

Submitted by:	Kuang-che Wu <kcwu@@kcwu.dyndns.org>
@
text
@d12 1
a12 1
REVISEDATE=	20020830
@


1.21
log
@Distfile relocated.
@
text
@d12 2
a13 1
REVISEDATE=	20020617
d33 2
@


1.20
log
@Catch up with mail/mutt-devel.

Noted by: vanilla
@
text
@d16 1
a16 1
PATCH_SITES=	http://www.cirx.org/~clive/dist/mutt15/ \
@


1.19
log
@Chasing mail/mutt-devel upgrade.
@
text
@d12 1
a12 1
REVISEDATE=	20020504
d16 2
a17 2
PATCH_SITES=	http://www.cirx.org/~clive/dist/mutt13/ \
		ftp://freebsd.sinica.edu.tw/pub/clive/mutt13/
@


1.18
log
@Post gettext-0.11.1 fix.
@
text
@d12 1
a12 1
REVISEDATE=	20020316
@


1.17
log
@Something wrong in my local configuration :) Most people do not have
WANT_FULL_GETTEXT=YES in their /etc/make.conf. Revert to old patchset,
and wait for gettext 0.10.40 becomes default.

Noted by: ijliao
@
text
@d12 1
a12 1
REVISEDATE=	20020218
@


1.16
log
@Fix make install after gettext upgrade.
@
text
@d12 1
a12 1
REVISEDATE=	20020316
@


1.15
log
@Fix PORTREVISION.
Turn on Outlook compatibility by default.
@
text
@d12 1
a12 1
REVISEDATE=	20020218
@


1.14
log
@Rollback to revisions below:

  1.12   ports/chinese/mutt/Makefile (somewhat)
  1.154  ports/mail/mutt-devel/Makefile

Previous commits break our lovely portupgrade.
@
text
@a11 1
PORTREVISION=	8
d23 1
@


1.13
log
@Automate PORTREVISION issue bewteen master port and slave port.

Approved by:	MAINTAINER
@
text
@d12 1
a12 1
SLAVEPORTREVISION=	2
@


1.12
log
@Wrap exactly by margin.

PR: ports/34610
Submitted by: Michael Hsin <mhsin@@mhsin.org>
@
text
@d12 1
a12 1
PORTREVISION=	5
@


1.11
log
@Fix make index.

Discovered by: steve
@
text
@d12 2
a13 1
PORTREVISION=	4
d19 1
a19 1
PATCHFILES=	${PKGNAMEPREFIX}mutt-${PORTVERSION}.diff.gz
@


1.10
log
@PORTREVISION of this port is 4 now.
(Its master port has 3 and itself has 1)
@
text
@d23 1
d25 1
@


1.9
log
@o Extra patchset changed. Now we have the first big5 line wrapping friendly
  mutt in the freenix world. (Yay!)

Submitted by: Chou Yeh-Jyi <yjchou@@age.homeip.net>

o Turn on WITH_MUTT_NCURSES and WITHOUT_MUTT_SGMLFORMAT by default. (Yay!)
@
text
@d12 1
@


1.8
log
@Add a new PATCH_SITES entry.
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.7 2001/07/29 15:28:41 clive Exp $
d21 2
@


1.7
log
@Update to mutt 1.3.20.

Because we Chinese people have to deal with at least 2 charsets,
let's forget about the mutt / mutt-devel strategy. We just need
mutt 1.3.x.
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.6 2001/05/22 18:19:37 sobomax Exp $
d15 2
a16 1
PATCH_SITES=	http://www.cirx.org/~clive/dist/mutt13/
@


1.6
log
@Ports policy:

 Ensure that the master category is always matches name of the parent
 (category) directory. This is required for ORIGIN to function properly.
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.5 2000/10/08 10:25:14 asami Exp $
d11 1
a11 1
MASTERDIR=	${.CURDIR}/../../mail/mutt
d15 8
a22 4
EXTRA_PATCHES=	${.CURDIR}/files/patch-init.h  \
		${.CURDIR}/files/patch-parse.c  \
		${.CURDIR}/files/patch-pgp.c  \
		${.CURDIR}/files/patch-sendlib.c 
a24 2

CONFIGURE_ARGS+= --enable-locales-fix
@


1.5
log
@Change places where "/patches/" is spelled out to "/files/".
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.4 2000/09/02 06:03:51 obrien Exp $
d8 2
@


1.4
log
@Turn on locale fixes.

Submitted by:	Clive Lin <clive@@cirx.org>
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.3 2000/08/31 21:19:22 obrien Exp $
d13 4
a16 4
EXTRA_PATCHES=	${.CURDIR}/patches/patch-init.h  \
		${.CURDIR}/patches/patch-parse.c  \
		${.CURDIR}/patches/patch-pgp.c  \
		${.CURDIR}/patches/patch-sendlib.c 
@


1.3
log
@I changed the name of a patch, but forgot to update it here.
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.2 2000/08/30 05:31:57 obrien Exp $
d19 2
@


1.2
log
@Make this a proper satellite port.

Approved by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/chinese/mutt/Makefile,v 1.1.1.1 2000/08/26 09:02:47 vanilla Exp $
d13 2
a14 2
EXTRA_PATCHES=	${.CURDIR}/patches/patch-0a  \
		${.CURDIR}/patches/patch-init.h  \
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $FreeBSD$
d9 1
a9 22
PORTNAME=	mutt
PORTVERSION= 	1.2.5
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.guug.de/pub/mutt/ \
		ftp://ftp.uib.no/pub/mutt/ \
		ftp://pgp.rasip.fer.hr/pub/mutt/international/ \
		ftp://ftp.gbnet.net/pub/mutt-international/ \
		ftp://riemann.iam.uni-bonn.de/pub/mutt/ \
		ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/mutt-international/ \
		ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/ \
		ftp://ftp.iks-jena.de/pub/mitarb/lutz/crypt/software/pgp/mutt/
DISTNAME=	${PORTNAME}-${PORTVERSION}i
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} charmaps-0.0.tar.gz
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

PATCH_SITES=	http://www.frmug.org/mutt/mutt/${PKGNAME:S/^mutt-//}/ \
		http://www.math.fu-berlin.de/~leitner/mutt/${PKGNAME:S/^mutt-//}/ \
		http://www.efrei.fr/~parmelan/mutt/${PKGNAME:S/^mutt-//}/ \
		ftp://www.frmug.org/pub/mutt/mutt/${PKGNAME:S/^mutt-//}/ \
		ftp://riemann.iam.uni-bonn.de/pub/mutt/
PATCHFILES=
PATCH_DIST_STRIP=	-p1
d13 4
a16 79
.if defined(PACKAGE_BUILDING)
WITH_SLANG=	yes
BUILD_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell \
		urlview:${PORTSDIR}/textproc/urlview
.if ${MACHINE_ARCH} != "alpha"
#  coredump in sgmls
WITH_DOCS=	yes
.endif
.endif

LIB_DEPENDS=    intl.1:${PORTSDIR}/devel/gettext
.if defined(WITH_SLANG)
LIB_DEPENDS+=	slang.1:${PORTSDIR}/devel/libslang
.elif defined(WITH_NCURSES_PORT)
LIB_DEPENDS+=	ncurses.4:${PORTSDIR}/devel/ncurses
CFLAGS+=	-I${PREFIX}/include/ncurses
.endif
.if defined(WITH_SSL)
USE_OPENSSL=    RSA
.endif
.if defined(WITH_DOCS)
BUILD_DEPENDS+=	sgmlfmt:${PORTSDIR}/textproc/sgmlformat
.endif

DIST_SUBDIR=	mutt
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CC="${CC} -I${LOCALBASE}/include" LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-pop --enable-imap --enable-flock --disable-fcntl \
		--with-sharedir=${PREFIX}/share/mutt \
		--with-docdir=${PREFIX}/share/doc/mutt --with-charmaps \
		--enable-locales-fix
.if defined(WITH_SLANG)
CONFIGURE_ARGS+=	--with-slang=${PREFIX}
.elif defined(WITH_NCURSES_PORT)
CONFIGURE_ARGS+=	--with-curses=${PREFIX}
.endif
.if defined(WITH_SSL)
CONFIGURE_ARGS+=	--with-ssl=${OPENSSLBASE}
.endif
WRKSRC=		${WRKDIR}/${DISTNAME:S/i$//}
MAN1=		mutt.1 mutt_dotlock.1
MAN5=		muttrc.5

pre-patch:
	(cd ${WRKSRC}; ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/charmaps-0.0.tar.gz)

post-patch:
	cd ${WRKSRC}/charmaps/maps; ${LN} CP1251 WINDOWS-1251
	cd ${WRKSRC}/charmaps/maps; ${RM} -f *.orig

.if !defined(NOPORTDOCS)
post-build:
	${TOUCH} ${WRKSRC}/doc/mutt.man ${WRKSRC}/doc/manual.sgml
	${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-doc-ref
	printf ",s|\$${PREFIX}|%s|g\nw\nq\n" ${PREFIX} | \
		ed -s ${WRKSRC}/doc/mutt.man
.if defined(WITH_DOCS)
PLIST:=		${WRKDIR}/PLIST
pre-install:
	@@${CAT} ${PKGDIR}/PLIST.htmlfiles >> ${PLIST}
	@@${CAT} ${PKGDIR}/PLIST >> ${PLIST}
.endif
.endif

post-install:
	@@strip ${PREFIX}/bin/mutt
.if !defined(NOPORTDOCS)
	@@${ECHO} "===>   Installing Mutt documentation"
	@@${MKDIR} ${PREFIX}/share/doc/mutt && ${CHMOD} a+rx ${PREFIX}/share/doc/mutt
	@@cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \
		${PREFIX}/share/doc/mutt
.if defined(WITH_DOCS)
	env MANMODE=0755 ${INSTALL_MAN} -d ${PREFIX}/share/doc/mutt/html
	${INSTALL_MAN} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/mutt/html
	${INSTALL_MAN} ${WRKSRC}/doc/*.latin1 ${PREFIX}/share/doc/mutt
.endif
.endif
d18 1
a18 1
.include <bsd.port.mk>
@


1.1.1.1
log
@import chinese-localed mutt.

PR:		ports/20805
Submitted by:	Clive Lin <clive@@CirX.ORG>
@
text
@@
