aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/mutt/Makefile
blob: f2881a738d93bcad647158f8d074f616da0b41f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: David O'Brien (obrien@NUXI.com)
# $FreeBSD$

#PORTREVISION=  0
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= ports@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+=   libhz.so:${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"