2006-04-17 15:45:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2006/04/17 13:47:00 wiz Exp $
|
2001-01-13 13:37:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PKGNAME= qt2-examples-${QTVERSION}
|
2006-04-17 15:45:57 +02:00
|
|
|
PKGREVISION= 6
|
2001-02-17 18:06:11 +01:00
|
|
|
COMMENT= QT2 Tutorial, example code and HTML documentation
|
|
|
|
|
2001-01-13 13:37:21 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
.include "../../x11/qt2-libs/Makefile.common"
|
2002-08-25 23:50:52 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= QTDIR=${QTPREFIX:Q}
|
2001-01-13 13:37:21 +01:00
|
|
|
|
|
|
|
do-build:
|
2001-06-23 21:36:46 +02:00
|
|
|
@MFS="`${FIND} ${WRKSRC}/examples ${WRKSRC}/tutorial -name Makefile -print`"; \
|
2001-01-13 13:37:21 +01:00
|
|
|
(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}; \
|
2001-06-23 21:36:46 +02:00
|
|
|
DIRS="`${FIND} examples tutorial -type d -print | ${SORT}`"; \
|
2001-01-13 13:37:21 +01:00
|
|
|
(for d in $${DIRS}; do \
|
|
|
|
${ECHO} creating ${QTPREFIX}/$${d}; \
|
|
|
|
${INSTALL_DATA_DIR} ${QTPREFIX}/$${d}; \
|
|
|
|
done); \
|
2001-06-23 21:36:46 +02:00
|
|
|
ETFILES="`${FIND} examples tutorial -type f ! -name "Makefile.in" -print | ${SORT}`"; \
|
2001-01-13 13:37:21 +01:00
|
|
|
(for f in $${ETFILES}; do \
|
|
|
|
${ECHO} installing ${QTPREFIX}/$${f}; \
|
|
|
|
${INSTALL_DATA} $${f} ${QTPREFIX}/$${f}; \
|
|
|
|
done)
|
|
|
|
|
2004-04-12 00:52:03 +02:00
|
|
|
.include "../../x11/qt2-libs/buildlink3.mk"
|
2002-08-25 23:50:52 +02:00
|
|
|
|
2001-01-13 13:37:21 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|