openbsd-ports/www/tidy/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2007/09/15 20:38:26 merdely Exp $
COMMENT= validate, correct, and pretty-print HTML files
TIDYDATE= 051026
DISTNAME= tidy_src_${TIDYDATE}
PKGNAME= tidy-${TIDYDATE}
SHARED_LIBS= tidy 1.0
CATEGORIES= www
HOMEPAGE= http://tidy.sourceforge.net/
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
MASTER_SITES= ${HOMEPAGE}src/ \
${HOMEPAGE}src/old/
MASTER_SITES0= ${HOMEPAGE}docs/
MASTER_SITES1= ${HOMEPAGE}test/
EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
tidy_docs_051020${EXTRACT_SUFX}:0 \
tidy_test_051026${EXTRACT_SUFX}:1
USE_GMAKE= Yes
2002-10-28 20:30:41 -05:00
BUILD_DEPENDS= ::textproc/libxslt
WRKDIST= ${WRKDIR}/tidy
WRKBUILD= ${WRKDIST}/build/gmake
DOCDIR= ${PREFIX}/share/doc/tidy
MAKE_FLAGS= TIDY_MAJOR=${LIBtidy_VERSION:R} TIDY_MINOR=${LIBtidy_VERSION:E}
FAKE_FLAGS= TIDY_MAJOR=${LIBtidy_VERSION:R} TIDY_MINOR=${LIBtidy_VERSION:E}
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
do-regress:
cd ${WRKSRC}/test && ${SH} testall.sh
.include <bsd.port.mk>