blob: 7b9b4dd69f86b6de4c39cf220ef149d12d8eb927 (
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
|
# $NetBSD: Makefile,v 1.11 2014/12/30 17:23:45 adam Exp $
DISTNAME= qtbase-opensource-src-${QTVERSION}
PKGNAME= qt5-dbus-${QTVERSION}
COMMENT= Qt5 DBus support plugin
BUILD_DIRS= src/dbus
BUILD_DIRS+= src/tools/qdbuscpp2xml
BUILD_DIRS+= src/tools/qdbusxml2cpp
.include "../../x11/qt5-qtbase/Makefile.common"
CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/include/dbus-1.0
CFLAGS+= -I${BUILDLINK_PREFIX.dbus}/lib/dbus-1.0/include/dbus
CFLAGS+= -I${BUILDLINK_PREFIX.qt5-qtbase}/qt5/include
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS= lib/pkgconfig
do-configure:
${RM} -f -r ${WRKSRC}/mkspecs
.for d in ${BUILD_DIRS}
cd ${WRKSRC}/${d} && ${QTPREFIX}/bin/qmake -o Makefile
.endfor
post-install:
.for i in Qt5DBus.pc
cd ${DESTDIR}${PREFIX}/lib/pkgconfig && \
${LN} -f -s ${QTPREFIX}/lib/pkgconfig/${i} ${i}
.endfor
.include "../../devel/gettext-lib/buildlink3.mk"
# Use lib/dbus-1.0/include/dbus/dbus-arch-deps.h from sysutils/dbus
USE_DBUS-ARCH-DEPS_H= yes
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|