freebsd-ports/japanese/another-htmllint/Makefile
Satoshi Asami 7acef1cd7a Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
2000-10-08 10:23:48 +00:00

43 lines
1.2 KiB
Makefile

# New ports collection makefile for: Another HTML-lint
# Date created: 29 Sep 2000
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= another-htmllint
PORTVERSION= 20000926
CATEGORIES= japanese www
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
MAINTAINER= kuriyama@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode
USE_ZIP= YES
WRKSRC= ${WRKDIR}
EXTRACT_BEFORE_ARGS= -a -q
DIR= ${PREFIX}/share/htmllint
PM= htmllint.pm RFC2396.pm htmllint.env
RULE= *.rul
HTML= *.cgi *.html *.gif *.css
SEDSUB= ${SED} -e 's@%PREFIX%@${PREFIX}@'
do-build:
${SEDSUB} ${FILESDIR}/htmllint > ${WRKSRC}/htmllint
${SEDSUB} ${WRKSRC}/htmllintenv > ${WRKSRC}/htmllint.env
${SEDSUB} ${WRKSRC}/htmllint.cgi > ${WRKSRC}/htmllint.cgi.new
${MV} ${WRKSRC}/htmllint.cgi.new ${WRKSRC}/htmllint.cgi
do-install:
${MKDIR} ${DIR}/rule ${DIR}/html
cd ${WRKSRC} && ${INSTALL_SCRIPT} htmllint ${PREFIX}/bin
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${HTML} ${DIR}/html
cd ${WRKSRC} && ${INSTALL_DATA} ${PM} ${DIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${RULE} ${DIR}/rule
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>