freebsd-ports/japanese/hns/Makefile
Akinori MUSHA 6e4194ea79 Update to 2.10.1.
PR:		ports/27736
Submitted by:	HOTARU-YA <hotaru-pro@tail.net> (MAINTAINER)

Make some improvements.
  - Generate plist automatically
  - Support overwriting installation by removing the old installation
  - Do chmod so one can build as normal user and then install as root
2001-06-23 17:40:53 +00:00

35 lines
1.1 KiB
Makefile

# New ports collection makefile for: hns
# Date created: 10 Jun 1999
# Whom: Hyper NIKKI System Project <hnsmaster@h14m.org>
#
# $FreeBSD$
#
PORTNAME= hns
PORTVERSION= 2.10.1
CATEGORIES= japanese www perl5
MASTER_SITES= http://www.h14m.org/dist/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-pl${PORTVERSION:E}
MAINTAINER= hnsmaster@h14m.org
USE_PERL5= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}-pl${PORTVERSION:E}
do-install:
@if [ -d ${PREFIX}/share/${PORTNAME} ]; then ${RM} -rf ${PREFIX}/share/${PORTNAME}; fi
${MKDIR} ${PREFIX}/share/${PORTNAME}
${CP} -pR ${WRKSRC}/ ${PREFIX}/share/${PORTNAME}
${CHOWN} -R 0:0 ${PREFIX}/share/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${PREFIX}/bin/hns-setup
${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns ${PREFIX}/bin/todayhns
post-install:
@cd ${WRKSRC} && find . -type f -o -type l | sed 's,^\.,share/${PORTNAME},' | sort >> ${TMPPLIST}
@cd ${WRKSRC} && find . -type d | sed 's,^\.,@dirrm share/${PORTNAME},' | sort -r >> ${TMPPLIST}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>