summaryrefslogtreecommitdiff
path: root/x11/qt2-examples/Makefile
blob: 7070f8828829c9908bf3416dd2f16db170ddef0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $NetBSD: Makefile,v 1.18 2007/02/15 15:28:48 rillig Exp $
#

PKGNAME=	qt2-examples-${QTVERSION}
PKGREVISION=	6
COMMENT=	QT2 Tutorial, example code and HTML documentation


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

CONFIGURE_ENV+=	QTDIR=${QTPREFIX:Q}
NO_BUILD=	yes

SUBST_CLASSES+=		ex
SUBST_STAGE.ex=		do-build
SUBST_FILES.ex=		examples/*/Makefile tutorial/*/Makefile
SUBST_SED.ex=		-e 's:\$$[({]X11BASE[})]:${X11BASE}:g'
SUBST_SED.ex+=		-e 's:\$$[({]QTDIR[})]:${QTPREFIX}:g'
SUBST_SED.ex+=		-e 's:\$$[({]LOCALBASE[})]:${LOCALBASE}:g'
SUBST_SED.ex+=		-e 's:\$$[({]LIBTOOL[})]:${LIBTOOL}:g'

do-install:
	cd ${WRKSRC} && pax -wr -s ',.*Makefile\.in$$,,' examples tutorial ${QTPREFIX}

.include "../../x11/qt2-libs/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"