2008-01-04 12:48:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2008/01/04 17:48:38 espie Exp $
|
2000-02-09 18:55:44 -05:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= validate, correct, and pretty-print HTML files
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2006-10-18 14:22:56 -04:00
|
|
|
TIDYDATE= 051026
|
2004-03-02 16:20:12 -05:00
|
|
|
DISTNAME= tidy_src_${TIDYDATE}
|
2000-02-09 18:55:44 -05:00
|
|
|
PKGNAME= tidy-${TIDYDATE}
|
2006-10-18 14:22:56 -04:00
|
|
|
SHARED_LIBS= tidy 1.0
|
2000-02-09 18:55:44 -05:00
|
|
|
|
|
|
|
CATEGORIES= www
|
|
|
|
|
2004-03-02 16:20:12 -05:00
|
|
|
HOMEPAGE= http://tidy.sourceforge.net/
|
2000-02-09 18:55:44 -05:00
|
|
|
|
2003-10-18 15:44:41 -04:00
|
|
|
# BSD-like, badly worded
|
2000-03-10 19:51:55 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-11 08:29:20 -05:00
|
|
|
WANTLIB= c
|
2000-03-10 19:51:55 -05:00
|
|
|
|
2004-03-02 16:20:12 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}src/ \
|
|
|
|
${HOMEPAGE}src/old/
|
|
|
|
MASTER_SITES0= ${HOMEPAGE}docs/
|
2005-10-05 05:39:20 -04:00
|
|
|
MASTER_SITES1= ${HOMEPAGE}test/
|
2004-03-02 16:20:12 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2006-10-18 14:22:56 -04:00
|
|
|
tidy_docs_051020${EXTRACT_SUFX}:0 \
|
|
|
|
tidy_test_051026${EXTRACT_SUFX}:1
|
2000-02-09 18:55:44 -05:00
|
|
|
|
2004-03-02 16:20:12 -05:00
|
|
|
USE_GMAKE= Yes
|
2002-10-28 20:30:41 -05:00
|
|
|
|
2005-07-19 04:10:10 -04:00
|
|
|
BUILD_DEPENDS= ::textproc/libxslt
|
|
|
|
|
2004-03-02 16:20:12 -05:00
|
|
|
WRKDIST= ${WRKDIR}/tidy
|
|
|
|
WRKBUILD= ${WRKDIST}/build/gmake
|
|
|
|
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/tidy
|
|
|
|
|
2006-10-18 14:22:56 -04:00
|
|
|
MAKE_FLAGS= TIDY_MAJOR=${LIBtidy_VERSION:R} TIDY_MINOR=${LIBtidy_VERSION:E}
|
|
|
|
|
2004-03-02 16:20:12 -05:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/htmldoc/*.{cfg,css,gif,html} ${DOCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/api
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/htmldoc/api/* ${DOCDIR}/api
|
2000-02-09 18:55:44 -05:00
|
|
|
|
2005-10-05 05:39:20 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC}/test && ${SH} testall.sh
|
|
|
|
|
2000-02-09 18:55:44 -05:00
|
|
|
.include <bsd.port.mk>
|