2018-01-31 13:36:57 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.25 2018/01/31 12:36:57 jperkin Exp $
|
2013-12-13 15:38:34 +01:00
|
|
|
# used by x11/qt5-mysql/Makefile
|
|
|
|
# used by x11/qt5-odbc/Makefile
|
|
|
|
# used by x11/qt5-psql/Makefile
|
|
|
|
# used by x11/qt5-qtbase/Makefile
|
|
|
|
# used by x11/qt5-qtdeclarative/Makefile
|
|
|
|
# used by x11/qt5-qtdoc/Makefile
|
|
|
|
# used by x11/qt5-qtgraphicaleffects/Makefile
|
|
|
|
# used by x11/qt5-qtimageformats/Makefile
|
|
|
|
# used by x11/qt5-qtlocation/Makefile
|
2014-12-30 18:23:45 +01:00
|
|
|
# used by x11/qt5-qtmacextras/Makefile
|
2013-12-13 15:38:34 +01:00
|
|
|
# used by x11/qt5-qtmultimedia/Makefile
|
|
|
|
# used by x11/qt5-qtquickcontrols/Makefile
|
|
|
|
# used by x11/qt5-qtscript/Makefile
|
|
|
|
# used by x11/qt5-qtsensors/Makefile
|
|
|
|
# used by x11/qt5-qtserialport/Makefile
|
|
|
|
# used by x11/qt5-qtsvg/Makefile
|
|
|
|
# used by x11/qt5-qttools/Makefile
|
|
|
|
# used by x11/qt5-qttranslations/Makefile
|
2015-02-08 10:01:01 +01:00
|
|
|
# used by x11/qt5-qtwebchannel/Makefile
|
2013-12-13 15:38:34 +01:00
|
|
|
# used by x11/qt5-qtwebkit/Makefile
|
2015-02-08 10:07:26 +01:00
|
|
|
# used by x11/qt5-qtwebsockets/Makefile
|
2013-12-13 15:38:34 +01:00
|
|
|
# used by x11/qt5-qtx11extras/Makefile
|
|
|
|
# used by x11/qt5-qtxmlpatterns/Makefile
|
|
|
|
|
|
|
|
.include "../../x11/qt5/Makefile.common"
|
2014-01-28 09:46:14 +01:00
|
|
|
.include "options.mk"
|
2013-12-13 15:38:34 +01:00
|
|
|
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
|
|
|
|
|
2017-05-03 10:38:38 +02:00
|
|
|
USE_LANGUAGES= c c++11
|
2013-12-30 07:37:11 +01:00
|
|
|
USE_TOOLS+= gmake perl:build pkg-config
|
2013-12-13 15:38:34 +01:00
|
|
|
|
2018-01-31 13:36:57 +01:00
|
|
|
# Avoid failures to due 'register' usage in X11 headers.
|
|
|
|
CFLAGS+= -Wno-register
|
|
|
|
|
2013-12-13 15:38:34 +01:00
|
|
|
# wcstof(3) etc. is used in C++ code.
|
|
|
|
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
|
|
|
|
|
|
|
|
# for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined.
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Wundef
|
|
|
|
|
2016-01-28 18:00:29 +01:00
|
|
|
# SunOS ld doesn't support -rpath-link
|
2016-02-26 11:57:45 +01:00
|
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib
|
|
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${WRKSRC}/lib
|
2016-01-28 18:00:29 +01:00
|
|
|
|
2013-12-13 15:38:34 +01:00
|
|
|
MAKE_ENV+= QTPREFIX=${QTPREFIX:Q}
|
2018-01-17 20:30:46 +01:00
|
|
|
PLIST_VARS+= jit mac unix
|
2014-04-23 09:05:31 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
PLIST.mac= yes
|
|
|
|
.else
|
|
|
|
PLIST.unix= yes
|
|
|
|
.endif
|
2018-01-17 20:30:46 +01:00
|
|
|
.if ${OPSYS} != "NetBSD"
|
|
|
|
PLIST.jit= yes
|
|
|
|
.endif
|
2013-12-13 15:38:34 +01:00
|
|
|
|
|
|
|
# avoid creating a .qt directory in the users home directory
|
|
|
|
SCRIPTS_ENV+= HOME=${WRKDIR}
|
|
|
|
|
2018-01-18 09:02:55 +01:00
|
|
|
.if empty(PKGPATH:Mx11/qt5-qtbase) \
|
|
|
|
&& empty(PKGPATH:Mx11/qt5-odbc) && empty(PKGPATH:Mx11/qt5-mysql) \
|
2018-01-18 10:15:29 +01:00
|
|
|
&& empty(PKGPATH:Mx11/qt5-psql)
|
2014-12-30 18:23:45 +01:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${QTPREFIX}/bin/qmake -o Makefile
|
2013-12-13 15:38:34 +01:00
|
|
|
.endif
|