freebsd-ports/japanese/esecanna/Makefile
2002-11-04 00:15:14 +00:00

56 lines
1.2 KiB
Makefile

# New ports collection Makefile for: esecanna
# Date created: 24 February 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= esecanna
PORTVERSION= 1.0.1
CATEGORIES= japanese
MASTER_SITES= http://esecanna.netfort.gr.jp/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= knu
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
USE_REINPLACE= yes
USE_AUTOCONF= yes
USE_GMAKE= yes
DIST_SUBDIR= esecanna
STARTER= esecanna.sh
DOCS= CREDITS CHANGES.jp README.First.jp README.jp
PLIST_SUB= STARTER="${STARTER}"
post-extract:
${SED} -e " \
s,!!PREFIX!!,${PREFIX},g; \
s,!!STARTER!!,${STARTER},g; \
" \
${FILESDIR}/esecanna.sh > ${WRKSRC}/${STARTER}
post-patch:
${REINPLACE_CMD} -e " \
s,!!PREFIX!!,${PREFIX},g; \
" \
${WRKSRC}/README.jp \
${WRKSRC}/esecannarc
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/${STARTER} ${PREFIX}/etc/rc.d/
if [ -x ${PREFIX}/etc/rc.d/canna.sh ]; then \
${CHMOD} -x ${PREFIX}/etc/rc.d/canna.sh; \
fi
${MKDIR} ${PREFIX}/lib/esecanna
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/esecanna
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/esecanna/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>