pkgsrc/x11/qt5-qtmultimedia/Makefile
nros 081f7ed27f Fix linking with pulseaudio.
Bump pkgrevision.
Requested by wiz.
2015-06-24 09:54:10 +00:00

31 lines
930 B
Makefile

# $NetBSD: Makefile,v 1.18 2015/06/24 09:54:10 nros Exp $
DISTNAME= qtmultimedia-opensource-src-${QTVERSION}
PKGNAME= qt5-qtmultimedia-${QTVERSION}
PKGREVISION= 6
COMMENT= Qt5 module for multimedia
BUILD_TARGET= sub-src
MAKE_ENV+= QTDIR=${QTDIR}
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= lib/pkgconfig
.include "../../x11/qt5-qtbase/Makefile.common"
.if ${OPSYS} != "Darwin"
MAKE_ENV+= LFLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib/pulseaudio
.endif
post-install:
.for i in Qt5Multimedia.pc Qt5MultimediaQuick_p.pc Qt5MultimediaWidgets.pc
cd ${DESTDIR}${PREFIX}/lib/pkgconfig && \
ln -f -s ${QTPREFIX}/lib/pkgconfig/${i} ${i}
.endfor
.if ${OPSYS} != "Darwin"
.include "../../audio/openal/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
.endif
.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"