Sun Jun 8 00:15:49 2008 UTC ()
DESTDIR support.


(joerg)
diff -r1.28 -r1.29 pkgsrc/www/tidy/Makefile

cvs diff -r1.28 -r1.29 pkgsrc/www/tidy/Makefile (expand / switch to unified diff)

--- pkgsrc/www/tidy/Makefile 2008/04/23 22:20:47 1.28
+++ pkgsrc/www/tidy/Makefile 2008/06/08 00:15:49 1.29
@@ -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
4DISTNAME= tidy-20080423 4DISTNAME= tidy-20080423
5CATEGORIES= www 5CATEGORIES= www
6MASTER_SITES= # manually created tarballs on ftp.NetBSD.org only 6MASTER_SITES= # manually created tarballs on ftp.NetBSD.org only
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://tidy.sourceforge.net/ 9HOMEPAGE= http://tidy.sourceforge.net/
10COMMENT= Fixes and tidies up HTML files 10COMMENT= Fixes and tidies up HTML files
11 11
 12PKG_DESTDIR_SUPPORT= user-destdir
 13
12BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt 14BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt
13BUILD_DEPENDS+= doxygen>=1.0:../../devel/doxygen 15BUILD_DEPENDS+= doxygen>=1.0:../../devel/doxygen
14 16
15WRKSRC= ${WRKDIR}/tidy 17WRKSRC= ${WRKDIR}/tidy
16GNU_CONFIGURE= yes 18GNU_CONFIGURE= yes
17USE_LIBTOOL= yes 19USE_LIBTOOL= yes
18USE_TOOLS+= aclocal autoconf automake gmake 20USE_TOOLS+= aclocal autoconf automake gmake
19CPPFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 21CPPFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1
20CPPFLAGS+= -DSUPPORT_ASIAN_ENCODINGS=1 -DSUPPORT_GETPWNAM=1 22CPPFLAGS+= -DSUPPORT_ASIAN_ENCODINGS=1 -DSUPPORT_GETPWNAM=1
21 23
22HTML_DOCFILES= Overview.html doxygen.cfg grid.gif tidy.css faq.html \ 24HTML_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
24HTML_DOCDIR= ${PREFIX}/share/doc/tidy 26HTML_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
36post-build: 38post-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
44post-install: 46post-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"