2013-01-30 22:00:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.41 2013/01/30 21:00:01 wiz Exp $
|
2000-03-28 19:13:34 +02:00
|
|
|
|
2011-01-21 22:18:12 +01:00
|
|
|
DISTNAME= tidy-20091027
|
2013-01-30 22:00:01 +01:00
|
|
|
PKGREVISION= 4
|
2000-03-28 19:13:34 +02:00
|
|
|
CATEGORIES= www
|
2008-04-09 11:01:52 +02:00
|
|
|
MASTER_SITES= # manually created tarballs on ftp.NetBSD.org only
|
2000-03-28 19:13:34 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-11-22 17:37:05 +01:00
|
|
|
HOMEPAGE= http://tidy.sourceforge.net/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= Fixes and tidies up HTML files
|
2009-08-04 00:35:33 +02:00
|
|
|
LICENSE= mit
|
2000-03-28 19:13:34 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt
|
2009-02-05 22:52:52 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.tidy
|
|
|
|
PKG_SUPPORTED_OPTIONS= doc
|
|
|
|
PKG_SUGGESTED_OPTIONS= doc
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
2005-10-04 20:00:49 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/tidy
|
2008-04-09 11:01:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= aclocal autoconf automake gmake
|
|
|
|
CPPFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1
|
|
|
|
CPPFLAGS+= -DSUPPORT_ASIAN_ENCODINGS=1 -DSUPPORT_GETPWNAM=1
|
|
|
|
|
2009-02-05 22:52:52 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
2013-01-30 22:00:01 +01:00
|
|
|
BUILD_DEPENDS+= doxygen>=1.8.3.1:../../devel/doxygen
|
2009-02-05 22:52:52 +01:00
|
|
|
|
2008-04-09 11:01:52 +02:00
|
|
|
HTML_DOCFILES= Overview.html doxygen.cfg grid.gif tidy.css faq.html \
|
|
|
|
license.html pending.html release-notes.html tidy.gif
|
|
|
|
HTML_DOCDIR= ${PREFIX}/share/doc/tidy
|
2009-02-05 22:52:52 +01:00
|
|
|
INSTALLATION_DIRS+= ${HTML_DOCDIR} ${HTML_DOCDIR}/api
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.doc
|
|
|
|
.endif
|
2008-04-09 11:01:52 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/build/gnuauto && cp -R -f * ${WRKSRC}
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
touch NEWS README AUTHORS ChangeLog; \
|
|
|
|
libtoolize --force --copy; \
|
|
|
|
aclocal; \
|
|
|
|
autoconf; \
|
|
|
|
automake -acf
|
2002-11-22 17:37:05 +01:00
|
|
|
|
2005-10-04 20:00:49 +02:00
|
|
|
post-build:
|
2008-04-09 11:01:52 +02:00
|
|
|
cd ${WRKSRC}/htmldoc && \
|
|
|
|
${WRKSRC}/console/tidy -xml-help > tidy.xml && \
|
|
|
|
${WRKSRC}/console/tidy -xml-config > tidy-config.xml && \
|
|
|
|
xsltproc tidy1.xsl tidy.xml > tidy.1
|
2009-02-05 22:52:52 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
2008-04-09 11:01:52 +02:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
doxygen htmldoc/doxygen.cfg
|
2009-02-05 22:52:52 +01:00
|
|
|
.endif
|
2005-10-04 20:00:49 +02:00
|
|
|
|
2003-10-28 13:33:48 +01:00
|
|
|
post-install:
|
2008-06-08 02:15:49 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/htmldoc/tidy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2009-02-05 22:52:52 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
2005-10-04 20:00:49 +02:00
|
|
|
for doc in ${HTML_DOCFILES}; do \
|
2008-06-08 02:15:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/htmldoc/$$doc ${DESTDIR}${HTML_DOCDIR} ; \
|
2003-10-28 13:33:48 +01:00
|
|
|
done
|
2008-06-08 02:15:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/htmldoc/api/* ${DESTDIR}${HTML_DOCDIR}/api
|
2009-02-05 22:52:52 +01:00
|
|
|
.endif
|
2000-03-28 19:13:34 +02:00
|
|
|
|
2000-03-28 19:22:19 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|