[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / qt3-docs

File: [cvs.NetBSD.org] / pkgsrc / x11 / qt3-docs / Attic / Makefile (download)

Revision 1.32, Mon Oct 29 05:06:46 2012 UTC (6 years, 6 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.31: +1 -3 lines

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.32 2012/10/29 05:06:46 asau Exp $

.include "../../x11/qt3-libs/Makefile.common"

PKGNAME=	qt3-docs-${QTVERSION}
PKGREVISION=	6
COMMENT=	Documentation for the QT C++ X GUI toolkit

BUILD_QT3=	yes

NO_CONFIGURE=	yes
NO_BUILD=	yes

INSTALLATION_DIRS=	${QTPREFIX}/doc/html ${QTPREFIX}/man/man3

do-install:
	set -e; \
	cd ${WRKSRC}/doc/man/man3; PAGES="`ls -1 | ${SED} -e 's,3qt$$,3,'`"; \
	(for PAGE in $$PAGES; do \
	    ${ECHO} installing ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \
	    set - X `head -1 $${PAGE}qt`; \
	    if [ $$# -eq 3 ] && [ "$$2" = .so ]; then \
		${LN} -fs `basename $$3 | ${SED} 's/qt$$//'` \
		  ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \
	    else \
		${INSTALL_MAN} $${PAGE}qt ${DESTDIR}${QTPREFIX}/man/man3/$${PAGE}; \
	    fi; \
	 done)
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-QT.TXT ${DESTDIR}${QTPREFIX}/doc/html
	set -e; \
	cd ${WRKSRC};  \
	DOCDIRS="`${FIND} doc/html -type d -print | ${SORT}`"; \
	(for d in $${DOCDIRS}; do \
	    ${ECHO} installing ${DESTDIR}${QTPREFIX}/$${d}; \
	    ${INSTALL_DATA_DIR} ${DESTDIR}${QTPREFIX}/$${d}; \
	done) ; \
	DOCFILES="`${FIND} doc/html -type f -print | ${SORT}`"; \
	(for f in $${DOCFILES}; do \
	    ${ECHO} installing ${DESTDIR}${QTPREFIX}/$${f}; \
	    ${INSTALL_DATA} $${f} ${DESTDIR}${QTPREFIX}/$${f}; \
	done)

.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"