blob: 0e13d59c9e855b6719422b8002941610085c4412 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile,v 1.7 2002/03/13 17:38:02 fredb Exp $
#
PKGNAME= qt2-examples-${QTVERSION}
PKGREVISION= 2
COMMENT= QT2 Tutorial, example code and HTML documentation
.include "../qt2-libs/Makefile.common"
USE_BUILDLINK_ONLY= yes
BUILDLINK_DEPENDS.qt2-libs= qt2-libs>=${QTVERSION}nb2
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/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|