pkgsrc/devel/sgi-stl-docs/Makefile
jlam 4c8382aec0 Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-03 17:45:33 +00:00

29 lines
752 B
Makefile

# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:37 jlam Exp $
DISTNAME= STL_doc
PKGNAME= sgi-stl-docs-3.3
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.sgi.com/tech/stl/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sgi.com/tech/stl/
COMMENT= SGI Standard Template Library Programmer's Guide
PKG_DESTDIR_SUPPORT= user-destdir
DIST_SUBDIR= ${PKGNAME_NOREV}
NO_CONFIGURE= yes
NO_BUILD= yes
HTMLDOCDIR= share/doc/sgi-stl/html
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${HTMLDOCDIR}
cd ${WRKSRC}; for file in `${GREP} "^${HTMLDOCDIR}/" ${PLIST_SRC} \
| ${SED} "s,^${HTMLDOCDIR}/,,g"`; do \
${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/${HTMLDOCDIR}/$${file}; \
done
.include "../../mk/bsd.pkg.mk"