aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/eterm/Makefile
blob: 9cdbfb32eff3f25aba7f0f7c5fc65d848d45874a (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
# New ports collection makefile for:    eterm
# Date created:        11th December 1998
# Whom:                MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#

CATEGORIES= japanese

MASTERDIR=      ${.CURDIR}/../../x11/eterm

MAINTAINER= nobutaka@FreeBSD.org
COMMENT=    X11 terminal emulator based on rxvt/xterm that supports Japanese

EXTRA_PATCHES=  ${.CURDIR}/files/extra-patch-configure \
        ${.CURDIR}/files/extra-patch-src:command.c \
        ${.CURDIR}/files/extra-patch-src:defaultfont.h \
        ${.CURDIR}/files/extra-patch-src:feature.h

CONFIGURE_ARGS= --enable-trans --enable-utmp \
        --enable-xim --with-theme-update \
        --with-backspace=bs --without-terminfo \
        --enable-multi-charset=kanji

PKGDIR=     ${.CURDIR}
PLIST=      ${MASTERDIR}/pkg-plist

THEMES=     Escreen Eterm auto trans

pre-configure:
    @${REINPLACE_CMD} -e "s,echo aout,echo elf,g" ${WRKSRC}/configure

post-configure:
    for theme in ${THEMES} ; do \
        ${CP} ${WRKSRC}/themes/$$theme/theme.cfg ${WRKSRC}/themes/$$theme/theme.cfg.bak ; \
        ${SED} -e "s,term_name xterm-color,term_name kterm," < ${WRKSRC}/themes/$$theme/theme.cfg.bak > ${WRKSRC}/themes/$$theme/theme.cfg ; \
        ${RM} ${WRKSRC}/themes/$$theme/theme.cfg.bak ; \
    done

.include "${MASTERDIR}/Makefile"