pkgsrc/x11/qt2-examples/Makefile

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2002/08/26 17:34:01 jlam Exp $
#
PKGNAME= qt2-examples-${QTVERSION}
PKGREVISION= 2
COMMENT= QT2 Tutorial, example code and HTML documentation
USE_BUILDLINK2= yes
BUILDLINK_DEPENDS.qt2-libs= qt2-libs>=${QTVERSION}nb2
.include "../qt2-libs/Makefile.common"
CONFIGURE_ENV+= QTDIR=${QTPREFIX}
do-build:
@MFS="`${FIND} ${WRKSRC}/examples ${WRKSRC}/tutorial -name Makefile -print`"; \
(for M in $${MFS}; do \
${SED} \
-e "s:\\\$$[({]X11BASE[})]:${X11BASE}:g" \
-e "s:\\\$$[({]QTDIR[})]:${QTPREFIX}:g" \
-e "s:\\\$$[({]LOCALBASE[})]:${LOCALBASE}:g" \
-e "s:\\\$$[({]LIBTOOL[})]:${LIBTOOL}:g" \
$${M} > $${M}.new; \
${MV} $${M}.new $${M}; \
done)
do-install:
@cd ${WRKSRC}; \
DIRS="`${FIND} examples tutorial -type d -print | ${SORT}`"; \
(for d in $${DIRS}; do \
${ECHO} creating ${QTPREFIX}/$${d}; \
${INSTALL_DATA_DIR} ${QTPREFIX}/$${d}; \
done); \
ETFILES="`${FIND} examples tutorial -type f ! -name "Makefile.in" -print | ${SORT}`"; \
(for f in $${ETFILES}; do \
${ECHO} installing ${QTPREFIX}/$${f}; \
${INSTALL_DATA} $${f} ${QTPREFIX}/$${f}; \
done)
.include "../../x11/qt2-libs/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"