| @@ -1,24 +1,26 @@ | | | @@ -1,24 +1,26 @@ |
1 | # $NetBSD: Makefile,v 1.28 2008/04/23 22:20:47 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.29 2008/06/08 00:15:49 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= tidy-20080423 | | 4 | DISTNAME= tidy-20080423 |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= # manually created tarballs on ftp.NetBSD.org only | | 6 | MASTER_SITES= # manually created tarballs on ftp.NetBSD.org only |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://tidy.sourceforge.net/ | | 9 | HOMEPAGE= http://tidy.sourceforge.net/ |
10 | COMMENT= Fixes and tidies up HTML files | | 10 | COMMENT= Fixes and tidies up HTML files |
11 | | | 11 | |
| | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 13 | |
12 | BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt | | 14 | BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt |
13 | BUILD_DEPENDS+= doxygen>=1.0:../../devel/doxygen | | 15 | BUILD_DEPENDS+= doxygen>=1.0:../../devel/doxygen |
14 | | | 16 | |
15 | WRKSRC= ${WRKDIR}/tidy | | 17 | WRKSRC= ${WRKDIR}/tidy |
16 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
17 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
18 | USE_TOOLS+= aclocal autoconf automake gmake | | 20 | USE_TOOLS+= aclocal autoconf automake gmake |
19 | CPPFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 | | 21 | CPPFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 |
20 | CPPFLAGS+= -DSUPPORT_ASIAN_ENCODINGS=1 -DSUPPORT_GETPWNAM=1 | | 22 | CPPFLAGS+= -DSUPPORT_ASIAN_ENCODINGS=1 -DSUPPORT_GETPWNAM=1 |
21 | | | 23 | |
22 | HTML_DOCFILES= Overview.html doxygen.cfg grid.gif tidy.css faq.html \ | | 24 | HTML_DOCFILES= Overview.html doxygen.cfg grid.gif tidy.css faq.html \ |
23 | license.html pending.html release-notes.html tidy.gif | | 25 | license.html pending.html release-notes.html tidy.gif |
24 | HTML_DOCDIR= ${PREFIX}/share/doc/tidy | | 26 | HTML_DOCDIR= ${PREFIX}/share/doc/tidy |
| @@ -32,20 +34,20 @@ pre-configure: | | | @@ -32,20 +34,20 @@ pre-configure: |
32 | aclocal; \ | | 34 | aclocal; \ |
33 | autoconf; \ | | 35 | autoconf; \ |
34 | automake -acf | | 36 | automake -acf |
35 | | | 37 | |
36 | post-build: | | 38 | post-build: |
37 | cd ${WRKSRC}/htmldoc && \ | | 39 | cd ${WRKSRC}/htmldoc && \ |
38 | ${WRKSRC}/console/tidy -xml-help > tidy.xml && \ | | 40 | ${WRKSRC}/console/tidy -xml-help > tidy.xml && \ |
39 | ${WRKSRC}/console/tidy -xml-config > tidy-config.xml && \ | | 41 | ${WRKSRC}/console/tidy -xml-config > tidy-config.xml && \ |
40 | xsltproc tidy1.xsl tidy.xml > tidy.1 | | 42 | xsltproc tidy1.xsl tidy.xml > tidy.1 |
41 | cd ${WRKSRC} && \ | | 43 | cd ${WRKSRC} && \ |
42 | doxygen htmldoc/doxygen.cfg | | 44 | doxygen htmldoc/doxygen.cfg |
43 | | | 45 | |
44 | post-install: | | 46 | post-install: |
45 | ${INSTALL_MAN} ${WRKSRC}/htmldoc/tidy.1 ${PREFIX}/${PKGMANDIR}/man1 | | 47 | ${INSTALL_MAN} ${WRKSRC}/htmldoc/tidy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 |
46 | for doc in ${HTML_DOCFILES}; do \ | | 48 | for doc in ${HTML_DOCFILES}; do \ |
47 | ${INSTALL_DATA} ${WRKSRC}/htmldoc/$$doc ${HTML_DOCDIR} ; \ | | 49 | ${INSTALL_DATA} ${WRKSRC}/htmldoc/$$doc ${DESTDIR}${HTML_DOCDIR} ; \ |
48 | done | | 50 | done |
49 | ${INSTALL_DATA} ${WRKSRC}/htmldoc/api/* ${HTML_DOCDIR}/api | | 51 | ${INSTALL_DATA} ${WRKSRC}/htmldoc/api/* ${DESTDIR}${HTML_DOCDIR}/api |
50 | | | 52 | |
51 | .include "../../mk/bsd.pkg.mk" | | 53 | .include "../../mk/bsd.pkg.mk" |