freebsd-ports/japanese/eterm/Makefile
Tobias Kortkamp e79fe1aabc Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
 a) just using the pkg-descr from the parents
 b) or had their own separate pkg-descr with custom WWW

Use WWW?= in parents when the child's WWW is different.

Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.

Approved by:	portmgr (implicit)
2022-09-10 19:41:16 +02:00

36 lines
1.1 KiB
Makefile

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
CONFLICTS_INSTALL= eterm zh-eterm # bin/Eterm
PKGDIR= ${.CURDIR}
PLIST= ${MASTERDIR}/pkg-plist
THEMES= Escreen Eterm auto trans
pre-configure:
@${REINPLACE_CMD} -e "s,@PERL@,${LOCALBASE}/bin/perl," ${WRKSRC}/utils/kEsetroot.in
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"