| @@ -1,32 +1,45 @@ | | | @@ -1,32 +1,45 @@ |
1 | # $NetBSD: Makefile,v 1.7 2014/04/23 07:05:31 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2014/05/01 12:50:39 wiz Exp $ |
2 | | | 2 | |
3 | PKGNAME= qt5-dbus-${QTVERSION} | | 3 | PKGNAME= qt5-dbus-${QTVERSION} |
| | | 4 | PKGREVISION= 1 |
4 | COMMENT= Qt5 DBus support plugin | | 5 | COMMENT= Qt5 DBus support plugin |
5 | | | 6 | |
6 | .include "../../x11/qt5-qtbase/Makefile.common" | | 7 | .include "../../x11/qt5-qtbase/Makefile.common" |
7 | | | 8 | |
8 | BUILD_DIRS= qtbase/src/dbus | | 9 | BUILD_DIRS= qtbase/src/dbus |
9 | | | 10 | |
10 | CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/include/dbus-1.0 | | 11 | CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/include/dbus-1.0 |
11 | CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/lib/dbus-1.0/include/dbus | | 12 | CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/lib/dbus-1.0/include/dbus |
12 | CFLAGS+= -I${BUILDLINK_PREFIX.qt5-qtbase}/qt5/include | | 13 | CFLAGS+= -I${BUILDLINK_PREFIX.qt5-qtbase}/qt5/include |
13 | | | 14 | |
14 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR} | | 15 | INSTALL_ENV+= INSTALL_ROOT=${DESTDIR} |
15 | | | 16 | |
16 | INSTALLATION_DIRS= ${QTPREFIX}/bin lib/pkgconfig | | 17 | INSTALLATION_DIRS= ${QTPREFIX}/bin lib/pkgconfig |
17 | | | 18 | |
18 | PC_FILES= Qt5DBus.pc | | 19 | PC_FILES= Qt5DBus.pc |
19 | | | 20 | |
| | | 21 | # XXX: this is an ugly hack |
| | | 22 | # qdbuscpp2xml and qdbusxml2cpp should be built and installed, because |
| | | 23 | # they are referenced from Qt5DBusConfigExtras.cmake, and cmake |
| | | 24 | # fails to find qtdbus if they are not installed |
| | | 25 | # I didn't manage to build them though, and the only customers so far |
| | | 26 | # didn't need their functionality -- wiz 20140501 |
| | | 27 | post-build: |
| | | 28 | ${ECHO} '#!/bin/sh' > ${WRKSRC}/dummy |
| | | 29 | ${ECHO} 'false' >> ${WRKSRC}/dummy |
| | | 30 | |
20 | post-install: | | 31 | post-install: |
21 | .for i in ${PC_FILES} | | 32 | .for i in ${PC_FILES} |
22 | ${RM} -f ${DESTDIR}${PREFIX}/lib/pkgconfig/${i} && \ | | 33 | ${RM} -f ${DESTDIR}${PREFIX}/lib/pkgconfig/${i} && \ |
23 | cd ${DESTDIR}${PREFIX}/lib/pkgconfig && \ | | 34 | cd ${DESTDIR}${PREFIX}/lib/pkgconfig && \ |
24 | ${LN} -s ${QTPREFIX}/lib/pkgconfig/${i} ${i} | | 35 | ${LN} -s ${QTPREFIX}/lib/pkgconfig/${i} ${i} |
25 | .endfor | | 36 | .endfor |
| | | 37 | ${INSTALL_SCRIPT} ${WRKSRC}/dummy ${DESTDIR}${PREFIX}/qt5/bin/qdbuscpp2xml |
| | | 38 | ${INSTALL_SCRIPT} ${WRKSRC}/dummy ${DESTDIR}${PREFIX}/qt5/bin/qdbusxml2cpp |
26 | | | 39 | |
27 | .include "../../devel/gettext-lib/buildlink3.mk" | | 40 | .include "../../devel/gettext-lib/buildlink3.mk" |
28 | # Use lib/dbus-1.0/include/dbus/dbus-arch-deps.h from sysutils/dbus | | 41 | # Use lib/dbus-1.0/include/dbus/dbus-arch-deps.h from sysutils/dbus |
29 | USE_DBUS-ARCH-DEPS_H= yes | | 42 | USE_DBUS-ARCH-DEPS_H= yes |
30 | .include "../../sysutils/dbus/buildlink3.mk" | | 43 | .include "../../sysutils/dbus/buildlink3.mk" |
31 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 44 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
32 | .include "../../mk/bsd.pkg.mk" | | 45 | .include "../../mk/bsd.pkg.mk" |