head	1.55;
access;
symbols
	pkgsrc-2026Q1:1.55.0.14
	pkgsrc-2026Q1-base:1.55
	pkgsrc-2025Q4:1.55.0.12
	pkgsrc-2025Q4-base:1.55
	pkgsrc-2025Q3:1.55.0.10
	pkgsrc-2025Q3-base:1.55
	pkgsrc-2025Q2:1.55.0.8
	pkgsrc-2025Q2-base:1.55
	pkgsrc-2025Q1:1.55.0.6
	pkgsrc-2025Q1-base:1.55
	pkgsrc-2024Q4:1.55.0.4
	pkgsrc-2024Q4-base:1.55
	pkgsrc-2024Q3:1.55.0.2
	pkgsrc-2024Q3-base:1.55
	pkgsrc-2024Q2:1.53.0.2
	pkgsrc-2024Q2-base:1.53
	pkgsrc-2024Q1:1.52.0.6
	pkgsrc-2024Q1-base:1.52
	pkgsrc-2023Q4:1.52.0.4
	pkgsrc-2023Q4-base:1.52
	pkgsrc-2023Q3:1.52.0.2
	pkgsrc-2023Q3-base:1.52
	pkgsrc-2023Q2:1.50.0.6
	pkgsrc-2023Q2-base:1.50
	pkgsrc-2023Q1:1.50.0.4
	pkgsrc-2023Q1-base:1.50
	pkgsrc-2022Q4:1.50.0.2
	pkgsrc-2022Q4-base:1.50
	pkgsrc-2022Q3:1.49.0.4
	pkgsrc-2022Q3-base:1.49
	pkgsrc-2022Q2:1.49.0.2
	pkgsrc-2022Q2-base:1.49
	pkgsrc-2022Q1:1.48.0.10
	pkgsrc-2022Q1-base:1.48
	pkgsrc-2021Q4:1.48.0.8
	pkgsrc-2021Q4-base:1.48
	pkgsrc-2021Q3:1.48.0.6
	pkgsrc-2021Q3-base:1.48
	pkgsrc-2021Q2:1.48.0.4
	pkgsrc-2021Q2-base:1.48
	pkgsrc-2021Q1:1.48.0.2
	pkgsrc-2021Q1-base:1.48
	pkgsrc-2020Q4:1.47.0.2
	pkgsrc-2020Q4-base:1.47
	pkgsrc-2020Q3:1.44.0.4
	pkgsrc-2020Q3-base:1.44
	pkgsrc-2020Q2:1.44.0.2
	pkgsrc-2020Q2-base:1.44
	pkgsrc-2020Q1:1.42.0.2
	pkgsrc-2020Q1-base:1.42
	pkgsrc-2019Q4:1.34.0.4
	pkgsrc-2019Q4-base:1.34
	pkgsrc-2019Q3:1.32.0.2
	pkgsrc-2019Q3-base:1.32
	pkgsrc-2019Q2:1.31.0.2
	pkgsrc-2019Q2-base:1.31
	pkgsrc-2019Q1:1.30.0.2
	pkgsrc-2019Q1-base:1.30
	pkgsrc-2018Q4:1.29.0.2
	pkgsrc-2018Q4-base:1.29
	pkgsrc-2018Q3:1.27.0.2
	pkgsrc-2018Q3-base:1.27
	pkgsrc-2018Q2:1.26.0.2
	pkgsrc-2018Q2-base:1.26
	pkgsrc-2018Q1:1.25.0.2
	pkgsrc-2018Q1-base:1.25
	pkgsrc-2017Q4:1.21.0.8
	pkgsrc-2017Q4-base:1.21
	pkgsrc-2017Q3:1.21.0.6
	pkgsrc-2017Q3-base:1.21
	pkgsrc-2017Q2:1.21.0.2
	pkgsrc-2017Q2-base:1.21
	pkgsrc-2017Q1:1.19.0.10
	pkgsrc-2017Q1-base:1.19
	pkgsrc-2016Q4:1.19.0.8
	pkgsrc-2016Q4-base:1.19
	pkgsrc-2016Q3:1.19.0.6
	pkgsrc-2016Q3-base:1.19
	pkgsrc-2016Q2:1.19.0.4
	pkgsrc-2016Q2-base:1.19
	pkgsrc-2016Q1:1.19.0.2
	pkgsrc-2016Q1-base:1.19
	pkgsrc-2015Q4:1.16.0.2
	pkgsrc-2015Q4-base:1.16
	pkgsrc-2015Q3:1.15.0.6
	pkgsrc-2015Q3-base:1.15
	pkgsrc-2015Q2:1.15.0.4
	pkgsrc-2015Q2-base:1.15
	pkgsrc-2015Q1:1.15.0.2
	pkgsrc-2015Q1-base:1.15
	pkgsrc-2014Q4:1.12.0.2
	pkgsrc-2014Q4-base:1.12
	pkgsrc-2014Q3:1.11.0.2
	pkgsrc-2014Q3-base:1.11
	pkgsrc-2014Q2:1.10.0.2
	pkgsrc-2014Q2-base:1.10
	pkgsrc-2014Q1:1.9.0.2
	pkgsrc-2014Q1-base:1.9
	pkgsrc-2013Q4:1.7.0.2
	pkgsrc-2013Q4-base:1.7;
locks; strict;
comment	@# @;


1.55
date	2024.09.02.20.52.58;	author adam;	state Exp;
branches;
next	1.54;
commitid	FfvP69gumDjt5hoF;

1.54
date	2024.07.29.06.19.59;	author wiz;	state Exp;
branches;
next	1.53;
commitid	m8CVwKmumVeCnHjF;

1.53
date	2024.05.30.06.39.50;	author ryoon;	state Exp;
branches;
next	1.52;
commitid	xsgVvPB9YuheqZbF;

1.52
date	2023.07.19.22.45.56;	author tnn;	state Exp;
branches;
next	1.51;
commitid	txeam99vl7flVsxE;

1.51
date	2023.07.19.22.08.05;	author tnn;	state Exp;
branches;
next	1.50;
commitid	1FTh7NdUVis4IsxE;

1.50
date	2022.11.21.18.12.17;	author jperkin;	state Exp;
branches;
next	1.49;
commitid	CdK07HEMHHgy7B2E;

1.49
date	2022.04.18.11.18.15;	author adam;	state Exp;
branches;
next	1.48;
commitid	ZUHidazvMzjhNFAD;

1.48
date	2021.03.15.19.32.21;	author markd;	state Exp;
branches;
next	1.47;
commitid	EtTIt3jv7ymLmrLC;

1.47
date	2020.12.06.11.18.40;	author nia;	state Exp;
branches;
next	1.46;
commitid	Jrci2K3zA1HEOFyC;

1.46
date	2020.11.29.22.33.21;	author dbj;	state Exp;
branches;
next	1.45;
commitid	NCSYw50rSuajMPxC;

1.45
date	2020.11.29.22.32.17;	author dbj;	state Exp;
branches;
next	1.44;
commitid	mPUFhzskx8DWLPxC;

1.44
date	2020.05.03.11.41.45;	author wiedi;	state Exp;
branches;
next	1.43;
commitid	Frh8EdbtEfahVM6C;

1.43
date	2020.04.17.02.00.52;	author gutteridge;	state Exp;
branches;
next	1.42;
commitid	j17Mve3J8DdEcG4C;

1.42
date	2020.03.28.18.04.42;	author nia;	state Exp;
branches;
next	1.41;
commitid	F4eQK3HDDIakcc2C;

1.41
date	2020.03.26.14.11.29;	author nia;	state Exp;
branches;
next	1.40;
commitid	VXFhQ46QZflnYU1C;

1.40
date	2020.03.18.21.55.23;	author tnn;	state Exp;
branches;
next	1.39;
commitid	tDD0vCrb3XGjNV0C;

1.39
date	2020.03.14.11.41.00;	author nia;	state Exp;
branches;
next	1.38;
commitid	w5DugiRL6oKEwm0C;

1.38
date	2020.03.05.11.58.07;	author nia;	state Exp;
branches;
next	1.37;
commitid	UdHJOPFDm31rUcZB;

1.37
date	2020.01.22.14.06.08;	author ryoon;	state Exp;
branches;
next	1.36;
commitid	x4IUcu7902RTZGTB;

1.36
date	2020.01.22.13.27.03;	author ryoon;	state Exp;
branches;
next	1.35;
commitid	mf3XeKKFkoMDMGTB;

1.35
date	2020.01.21.20.25.37;	author adam;	state Exp;
branches;
next	1.34;
commitid	0KejkEeGsoWU7BTB;

1.34
date	2019.11.05.14.58.43;	author adam;	state Exp;
branches;
next	1.33;
commitid	Ksor4esKsFzlNFJB;

1.33
date	2019.10.28.21.35.43;	author nia;	state Exp;
branches;
next	1.32;
commitid	NQU5rtSVJAypfGIB;

1.32
date	2019.08.30.06.33.38;	author markd;	state Exp;
branches;
next	1.31;
commitid	zyvvqSmhCEGG91BB;

1.31
date	2019.04.28.12.46.31;	author maya;	state Exp;
branches;
next	1.30;
commitid	GXbiMHSb3yMyc7lB;

1.30
date	2019.03.26.11.14.16;	author adam;	state Exp;
branches;
next	1.29;
commitid	MsdQkN9UMK7tKRgB;

1.29
date	2018.12.18.09.57.18;	author adam;	state Exp;
branches;
next	1.28;
commitid	5krex6Do2TLDtg4B;

1.28
date	2018.10.06.22.41.22;	author adam;	state Exp;
branches;
next	1.27;
commitid	503UAh1epp5u3XUA;

1.27
date	2018.07.26.02.16.05;	author minskim;	state Exp;
branches;
next	1.26;
commitid	SliwCZK4Xw8vAALA;

1.26
date	2018.06.19.07.21.23;	author adam;	state Exp;
branches;
next	1.25;
commitid	enrlWWFS5dg7sRGA;

1.25
date	2018.01.31.12.36.57;	author jperkin;	state Exp;
branches;
next	1.24;
commitid	pUVPXCJKiOZjG1pA;

1.24
date	2018.01.18.09.15.29;	author markd;	state Exp;
branches;
next	1.23;
commitid	FjIjP1BNAEWXYknA;

1.23
date	2018.01.18.08.02.55;	author adam;	state Exp;
branches;
next	1.22;
commitid	EEIOq1Bb2oGgAknA;

1.22
date	2018.01.17.19.30.46;	author markd;	state Exp;
branches;
next	1.21;
commitid	spdRQpEmKELRpgnA;

1.21
date	2017.05.03.08.38.46;	author jperkin;	state Exp;
branches;
next	1.20;
commitid	oXB1pxkPDlAs8VPz;

1.20
date	2017.04.26.06.12.25;	author wiz;	state Exp;
branches;
next	1.19;
commitid	SsZx01QOIySsy0Pz;

1.19
date	2016.02.26.11.27.16;	author jperkin;	state Exp;
branches;
next	1.18;
commitid	8IwEtS7lVMipXpWy;

1.18
date	2016.01.28.17.00.29;	author fhajny;	state Exp;
branches;
next	1.17;
commitid	sYr0Uhq1pQupJISy;

1.17
date	2016.01.09.05.40.58;	author ryoon;	state Exp;
branches;
next	1.16;
commitid	oIpbc3CmjkdiAdQy;

1.16
date	2015.10.26.19.03.59;	author adam;	state Exp;
branches;
next	1.15;
commitid	ti5Xt5tD5TDXqEGy;

1.15
date	2015.02.08.09.07.27;	author wiz;	state Exp;
branches;
next	1.14;
commitid	FyT3ETagXLzMub9y;

1.14
date	2015.02.08.09.01.01;	author wiz;	state Exp;
branches;
next	1.13;
commitid	k38FFE6Qi5Ezsb9y;

1.13
date	2014.12.30.17.23.45;	author adam;	state Exp;
branches;
next	1.12;
commitid	1jIE5UF7705yw54y;

1.12
date	2014.12.25.13.51.13;	author wiz;	state Exp;
branches;
next	1.11;
commitid	vyzFndNFT5wlvq3y;

1.11
date	2014.08.28.10.58.19;	author jperkin;	state Exp;
branches;
next	1.10;
commitid	4CCHSMJgosi3n7Ox;

1.10
date	2014.04.23.07.05.31;	author adam;	state Exp;
branches;
next	1.9;
commitid	8w7uvoE5FwXIaMxx;

1.9
date	2014.01.28.08.46.14;	author ryoon;	state Exp;
branches;
next	1.8;
commitid	Q8i20e1Me9HCsRmx;

1.8
date	2014.01.04.23.46.26;	author joerg;	state Exp;
branches;
next	1.7;
commitid	YxipSxWnetrsdRjx;

1.7
date	2013.12.30.06.37.11;	author ryoon;	state Exp;
branches;
next	1.6;
commitid	YZoLPNJHaOeDF7jx;

1.6
date	2013.12.28.09.11.24;	author jperkin;	state Exp;
branches;
next	1.5;
commitid	3MqXaOprLX4cBSix;

1.5
date	2013.12.23.02.51.57;	author obache;	state Exp;
branches;
next	1.4;
commitid	FpiRTJJtCfzVEcix;

1.4
date	2013.12.21.08.59.41;	author obache;	state Exp;
branches;
next	1.3;
commitid	RoC6XCcLkwSwKYhx;

1.3
date	2013.12.20.02.36.10;	author obache;	state Exp;
branches;
next	1.2;
commitid	7w7RGdtmh95WEOhx;

1.2
date	2013.12.15.09.42.44;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	Q6CQcvxH1UtFbdhx;

1.1
date	2013.12.13.14.38.35;	author ryoon;	state Exp;
branches;
next	;
commitid	LyqQkBZQHNHTSYgx;


desc
@@


1.55
log
@qt5: updated to 5.15.15

5.15.15:
Bug fixes.
@
text
@# $NetBSD: Makefile.common,v 1.54 2024/07/29 06:19:59 wiz Exp $
# 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-qtcharts/Makefile
# used by x11/qt5-qtconnectivity/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
# used by x11/qt5-qtmacextras/Makefile
# used by x11/qt5-qtmultimedia/Makefile
# used by x11/qt5-qtnetworkauth/Makefile
# used by x11/qt5-qtquickcontrols/Makefile
# used by x11/qt5-qtquickcontrols2/Makefile
# used by x11/qt5-qtscript/Makefile
# used by x11/qt5-qtscxml/Makefile
# used by x11/qt5-qtsensors/Makefile
# used by x11/qt5-qtserialport/Makefile
# used by x11/qt5-qtspeech/Makefile
# used by x11/qt5-qtsvg/Makefile
# used by x11/qt5-qttools/Makefile
# used by x11/qt5-qttranslations/Makefile
# used by x11/qt5-qtvirtualkeyboard/Makefile
# used by x11/qt5-qtwayland/Makefile
# used by x11/qt5-qtwebchannel/Makefile
# used by x11/qt5-qtwebengine/Makefile
# used by x11/qt5-qtwebsockets/Makefile
# used by x11/qt5-qtx11extras/Makefile
# used by x11/qt5-qtxmlpatterns/Makefile

WRKSRC=		${WRKDIR}/${DISTNAME:S/-opensource//}

# https://doc.qt.io/qt-5/supported-platforms.html
GCC_REQD+=	5

.include "../../x11/qt5/Makefile.common"

.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:Q}

USE_LANGUAGES=		c c++
USE_CXX_FEATURES?=	c++17
FORCE_CXX_STD?=		gnu++17
USE_TOOLS+=		gmake perl:build pkg-config

# Avoid failures to due 'register' usage in X11 headers.
CFLAGS+=		-Wno-register

# wcstof(3) etc. is used in C++ code.
CFLAGS.NetBSD+=		-D_NETBSD_SOURCE

# include/openssl/e_os2.h:283:25: error: '_Noreturn' does not name a type
CXXFLAGS.SunOS+=	-D_Noreturn=""

# for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined.
BUILDLINK_TRANSFORM+=	rm:-Wundef

# Remove unknown ld(1) options
BUILDLINK_TRANSFORM.Darwin+=	rm:-Wl,-O1
BUILDLINK_TRANSFORM.Darwin+=	rm:-Wl,--no-undefined

MAKE_ENV+=		QTPREFIX=${QTPREFIX:Q}
PLIST_VARS+=		notdarwin
.if ${OPSYS} != "Darwin"
PLIST.notdarwin=	yes
.endif

# avoid creating a .qt directory in the users home directory
SCRIPTS_ENV+=		HOME=${WRKDIR}

.if "${PKGPATH}" != "x11/qt5-qtbase" && "${PKGPATH}" != "x11/qt5-odbc" && \
	"${PKGPATH}" != "x11/qt5-mysql" && "${PKGPATH}" != "x11/qt5-psql" && \
	"${PKGPATH}" != "x11/qt5-qtwayland"
do-configure:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QTPREFIX}/bin/qmake -o Makefile ${QMAKE_ARGS}
.endif

.if ${OPSYS} == "Darwin"
.PHONY: fix-darwin-install-name
post-install: fix-darwin-install-name
fix-darwin-install-name:
	${FIND} ${DESTDIR}${PREFIX} -name "*.dylib" -type f -print |	\
		while read lib; do					\
		libname=`basename $${lib}`;				\
		libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`;	\
		install_name_tool -id $${libdir}/$${libname} $${lib};	\
	done
.endif
@


1.54
log
@qt5-qtbase: since we use FORCE_CXX_STD, we need to set USE_CXX_FEATURES

From Phil Krylov in PR 58509.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.53 2024/05/30 06:39:50 ryoon Exp $
d45 2
a46 2
USE_CXX_FEATURES=	c++17
FORCE_CXX_STD=		gnu++17
@


1.53
log
@qt5: Force gnu++17 for the latest textproc/icu

* Fix an icu-related error in configure stage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.52 2023/07/19 22:45:56 tnn Exp $
d45 1
@


1.52
log
@qt5-*: remove another ld(1) option for Darwin
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.51 2023/07/19 22:08:05 tnn Exp $
d44 2
a45 1
USE_LANGUAGES=		c gnu++11
@


1.51
log
@qt5-*: add BUILDLINK_TRANSFORM that used to live in Darwin.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.50 2022/11/21 18:12:17 jperkin Exp $
d59 1
a59 1
# ld: unknown option: -O1
d61 1
@


1.50
log
@qt5-qtbase: Abstract linker flags in qmake.conf.

Avoids shipping hardcoded linker flags on SunOS that are unsupported.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.49 2022/04/18 11:18:15 adam Exp $
d59 3
@


1.49
log
@qt5: updated to 5.15.3

5.15.3:
Bug fix, LTS, release.

qt5-qtwebengine patches courtesy of @@markd.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.48 2021/03/15 19:32:21 markd Exp $
a58 4
# SunOS ld doesn't support -rpath-link
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-rpath-link,${PREFIX}/qt5/lib
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-rpath-link,${WRKSRC}/lib

@


1.48
log
@qt5-qtbase: allow passing additional arguments to qmake.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.47 2020/12/06 11:18:40 nia Exp $
d29 1
d34 2
@


1.47
log
@qt5-qtbase: Set GCC_REQD before including bsd.prefs.mk

Should help with the current workarounds to avoid gcc49 and gcc5
on CentOS 7 due to inlining bugs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.46 2020/11/29 22:33:21 dbj Exp $
d73 1
a73 1
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QTPREFIX}/bin/qmake -o Makefile
@


1.46
log
@x11/qt5-*: avoid calling install_name_tool on symlinks
otherwise, it converts symlinks to copies which creates
problems with duplicate dylibs at runtime
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.45 2020/11/29 22:32:17 dbj Exp $
d33 3
a43 3
# https://doc.qt.io/qt-5/supported-platforms.html
GCC_REQD+=		5

@


1.45
log
@x11/qt5-qtbase: fix comments about use of qt5-qtbase/Makefile.nocommon
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.44 2020/05/03 11:41:45 wiedi Exp $
d80 1
a80 1
	${FIND} ${DESTDIR}${PREFIX} -name "*.dylib" -print |		\
@


1.44
log
@qt5-qtbase: fix build on SunOS
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.43 2020/04/17 02:00:52 gutteridge Exp $
d17 1
a28 1
# used by x11/qt5-qtwebkit/Makefile
@


1.43
log
@qt5-qtbase: bump GCC_REQD to reflect new minimum for 5.14

As of 5.14, GCC >= 5 is required. See, for example:
https://bugreports.qt.io/browse/QTBUG-81754
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.42 2020/03/28 18:04:42 nia Exp $
d50 3
@


1.42
log
@qt5-qtbase: Correct GCC requirement in line with Qt docs
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.41 2020/03/26 14:11:29 nia Exp $
d42 1
a42 1
GCC_REQD+=		4.8
@


1.41
log
@qt5: Needs c++11 compiler
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.40 2020/03/18 21:55:23 tnn Exp $
d41 2
a42 2
# C++11
GCC_REQD+=		4.7
@


1.40
log
@qt*: rename PLIST.unix to PLIST.notdarwin, to reflect what it's used for.

The previous name was confusing. Darwin *is* UNIX(R) according to TOG.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.39 2020/03/14 11:41:00 nia Exp $
d41 3
@


1.39
log
@qt5: gnu++11... -multimedia needs alloca
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.38 2020/03/05 11:58:07 nia Exp $
d55 1
a55 1
PLIST_VARS+=		unix
d57 1
a57 1
PLIST.unix=		yes
@


1.38
log
@qt5-qtbase: these options are only for the -base package
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.37 2020/01/22 14:06:08 ryoon Exp $
d38 1
a38 1
USE_LANGUAGES=		c c++11
@


1.37
log
@qt5-qtbase: Use PLIST.Darwin instead of nonunix PLIST option

Pointed by adam@@. Thank you.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.36 2020/01/22 13:27:03 ryoon Exp $
a33 1
.include "options.mk"
@


1.36
log
@qt5-qtbase: Add nonunix PLIST option for inverted unix option
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.35 2020/01/21 20:25:37 adam Exp $
d56 1
a56 1
PLIST_VARS+=		nonunix unix
a58 2
.else
PLIST.nonunix=		yes
@


1.35
log
@qt5: updated to 5.14.0

New Features in Qt 5.14

Qt 3D Module
Overhauled the threading architecture. This includes the removal of the aspect thread.
Overhauled the frontend/backend node sync.
Enabled QTransform to have access to the world matrix.
Introduced Scene3DView.
Scene3D is now in sync with QtQuick, and can render as an underlay without an FBO.

Qt Bluetooth Module
Introduced a new, optional Win32 backend with support for Windows 7 and 8. This backend is not built by default, nor is it part of the pre-built packages.
QLowEnergyController: Introduced AuthorizationError.
Added the ability to include multiple manufacturer data entries per manufacturer ID.

Qt Core Module
Added support in QCalendar for calendars other than Gregorian, by implementation of suitable backends.
Added backends to implement the Gregorian, Jalali (Persian), Islamic Civil, Milankovic, and Julian calendars. We look forward to other contributions.
Added QColorConstants, a namespace providing constexpr QColor instances that don't cost any runtime overhead.

Qt GUI Module
Updated High-DPI support:
Introduced non-integer scale factors (for example, a scale factor of 150%) that applications can opt-in to use. Use QGuiApplication::highDpiScaleFactorRoundingPolicy or QT_SCALE_FACTOR_ROUNDING_POLICY to set the rounding policy.
Added the QT_ENABLE_HIGHDPI_SCALING environment variable, enabling high-DPI scaling based on display DPI. This replaces QT_AUTO_SCREEN_SCALE_FACTOR (now deprecated), and corresponds to the Qt::AA_EnableHighDpiScaling application attribute.
Added cross-platform support for the QT_FONT_DPI environment variable, for the purpose of developing and testing with specific DPI values.
Added color-space support for images; reading and writing color-spaces from JPEG, PNG, WebP and TIFF images, and performing color-space transformation on images.
Improvements to QTextDocument and QTextTable styling:
Added per-edge border styling via QTextTableCellFormat.
Added border-collapse mode.
Added support for (partial) HTML table style import and export.
Added support for reading and writing Markdown format to QTextDocument, as an alternative to HTML.

Qt Multimedia Module
Added QVideoFrame::Format_YUV422P.
Introduced support for the GStreamer OpenGL plugin.

Qt Network Module
Introduced the HTTP/2 Configuration API.
Introduced network connectivity monitoring.
Added support for Kerberos proxy authentication.

Qt QML Module
Added qmlRegisterSingletonInstance() function. This allows to expose a QObject as a singleton to QML, without having to create a factory function as required by qmlRegisterSingletonType(). It is meant as a type safe replacement of setContextProperty() in common usages.
Added qmlRegisterAnonymousType() as a replacement for qmlRegisterType(). It allows to specify the URI and major version, which enables better tooling support.
Added an experimental -U option to qmllint. When set, access to unqualified identifiers generates warnings.

Qt Quick Module
Added a preview of the graphics API independent scenegraph renderer as an opt-in feature. This allows running qualifying Qt Quick applications on top of Vulkan, Metal, or Direct3D 11, instead of OpenGL. Currently supported platforms:
Windows 10 (Direct3D)
Linux with X11/xcb (Vulkan)
macOS (Metal or Vulkan with MoltenVK)
Android 7.0+ (Vulkan)
Added support for the Markdown format (including CommonMark and GitHub dialects) to Text and TextEdit as an alternative to HTML. This includes the GitHub checklist extension, allowing to toggle checkboxes in a TextEdit.
Switched TextEdit to use an I-beam cursor by default, and a pointing-hand cursor when hovering over a checkbox or a link. Default cursors can be overridden.
Added WheelHandler, an event handler for the mouse wheel, and optionally for emulated mouse wheel events coming from a trackpad.
Added BoundaryRule in Qt.labs.animation: a PropertyValueInterceptor that restricts the range of values a numeric property can have, applies "resistance" when overshooting a value, and provides the ability to animate it back to its normal range. It's particularly useful in combination with WheelHandler, providing physics similar to Flickable.
Added currentFrame and frameCount properties to Image and BorderImage, just as AnimatedImage has; for example, this allows choosing an individual icon from an .ICO file that contains multiple icons.
Added PathPolyline and PathMultiline as additional ways of drawing and/or filling arbitrary polygons and sets of polygons with Qt Quick Shapes.

Qt Serial Bus Module
Added operators to compare QCanBusDevice::Filter for equality or inequality.
Added the QCanBusDevice::OperationError and QCanBusDevice::TimeoutError codes to signal operation and timeout errors.
Added the QCanBusDevice::busStatus() function to query the bus status from the CAN bus device.
Added the QCanBusDevice::resetController() function to release the CAN controller from bus off state.
SocketCAN: Added the configuration parameter QCanBusDevice::ProtocolKey to use another protocol inside the protocol family PF_CAN.
SocketCAN: If libsocketcan is available, the CAN bus bitrate can be retrieved and set at runtime.
PeakCAN: Added support for PCAN-USB devices on macOS by using the MacCAN library.
Exposed the underlying QIODevice used for Modbus communication. This enables, for example, setting the serial port hardware flow control (RTS/CTS).

Qt Test Module
Introduced initMain() function to perform any initialization that must happen before QApplication exists.

Qt WebEngine Module
Updated to Chromium 77.
Added a new API to control the life-cycle of QWebEnginePage.

Qt Widgets Module
Added support for the Markdown format (including CommonMark and GitHub dialects) to QTextEdit and QTextBrowser as an alternative to HTML. This includes the GitHub checklist extension, allowing to toggle checkboxes if the widget is editable. QTextBrowser::setSource() detects Markdown based on the file extension.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.34 2019/11/05 14:58:43 adam Exp $
d56 1
a56 1
PLIST_VARS+=		unix
d59 2
@


1.34
log
@qt5: updated to 5.13.2

Qt 5.13.2 Released

We have released Qt 5.13.2 today. As a patch release, Qt 5.13.2 does not add any new functionality but provides many bug fixes and other improvements.

Compared to Qt 5.13.1, the new Qt 5.13.2 contains more than 200 bug fixes. For details of the most important changes, please check the Change files of Qt 5.13.2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.33 2019/10/28 21:35:43 nia Exp $
d56 2
a57 4
PLIST_VARS+=		mac unix
.if ${OPSYS} == "Darwin"
PLIST.mac=		yes
.else
@


1.33
log
@Add x11/qt5-qtwayland.

Qt5 module for Wayland support

Note: while it does seem silly to have this in the X11 category, it's for
consistency with other core qt5 packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.32 2019/08/30 06:33:38 markd Exp $
d18 1
d25 1
@


1.32
log
@qt5-qtbase: note Makefile.common used by qt5-qtspeech
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.31 2019/04/28 12:46:31 maya Exp $
d24 1
d65 2
a66 1
	"${PKGPATH}" != "x11/qt5-mysql" && "${PKGPATH}" != "x11/qt5-psql"
@


1.31
log
@qt5-qtbase: avoid using semaphores as mutexes on netbsd.
they're quite constrained: the max number of semaphores is limited.

bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.30 2019/03/26 11:14:16 adam Exp $
d20 1
@


1.30
log
@qt5: updated to 5.12.2

5.12.2:
While not adding new features, the Qt 5.12.2 release provides a number of bug
fixes and other improvements.

Compared to Qt 5.12.1, the new Qt 5.12.2 contains more than 250 bug fixes. For
details of the most important changes, please check the Change files of Qt
5.12.2.

With Qt 5.12.2 we bring back widely asked MinGW 32 bit prebuild binaries in
addition to 64 bit ones.

Qt 5.12 LTS will receive many more patch releases throughout the coming years
and we recommend all active developed projects to migrate to Qt 5.12 LTS. Qt
5.9 LTS is currently in ‘Strict’ phase and receives only the selected important
bug and security fixes, while Qt 5.12 LTS is currently receiving all the bug
fixes. With Qt 5.6 Support ending in March 2019 all active projects still using
Qt 5.6 LTS should now migrate to a later version of Qt.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.29 2018/12/18 09:57:18 adam Exp $
d33 1
a33 1
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:M*}
@


1.29
log
@qt5: updated to 5.12.0

Just in time for the end of the year, we have released Qt 5.12 LTS today. This is a long-term-supported (LTS) release that we will support for 3 years to come. We have had a strong focus on quality and fixed more than 2000 bugs since the last Qt LTS version, Qt 5.9.7 – make that over 5000 bugfixes since Qt 5.6.3. Of course, this is only the start, and we will work hard on continuously improving the quality of Qt 5.12 in upcoming patches
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.28 2018/10/06 22:41:22 adam Exp $
d7 1
@


1.28
log
@Added x11/qt5-qtcharts, x11/qt5-qtnetworkauth
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.27 2018/07/26 02:16:05 minskim Exp $
d61 2
a62 3
.if empty(PKGPATH:Mx11/qt5-qtbase) \
	&& empty(PKGPATH:Mx11/qt5-odbc) && empty(PKGPATH:Mx11/qt5-mysql) \
	&& empty(PKGPATH:Mx11/qt5-psql)
d71 1
a71 1
	${FIND} ${DESTDIR}${PREFIX} -name "*.dylib" |			\
@


1.27
log
@x11/qt5-*: Fix install_name on Darwin

This should fix PR 53460.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.26 2018/06/19 07:21:23 adam Exp $
d6 1
d14 1
d72 5
a76 5
	${FIND} ${DESTDIR}${PREFIX} -name "*.dylib" |                   \
		while read lib; do                                      \
		libname=`basename $${lib}`;                             \
		libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`;     \
		install_name_tool -id $${libdir}/$${libname} $${lib};   \
@


1.26
log
@qt5: updated to 5.11.0

Qt 5.11 comes with quite a few new features as well as many bug fixes to existing functionality.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.25 2018/01/31 12:36:57 jperkin Exp $
d65 12
@


1.25
log
@qt5-qtbase: Various fixes, primarily for SunOS/clang.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.24 2018/01/18 09:15:29 markd Exp $
d49 1
a49 1
PLIST_VARS+=		jit mac unix
a54 3
.if ${OPSYS} != "NetBSD"
PLIST.jit=		yes
.endif
d63 1
a63 1
	cd ${WRKSRC} && ${QTPREFIX}/bin/qmake -o Makefile
@


1.24
log
@qt5-qtbase: remove references to qt5-qtquick1 and qt5-sqlite3
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.23 2018/01/18 08:02:55 adam Exp $
d35 3
@


1.23
log
@Removed references to wip
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.22 2018/01/17 19:30:46 markd Exp $
a12 1
# used by x11/qt5-qtquick1/Makefile
a24 1
# used by x11/qt5-sqlite3/Makefile
d61 1
a61 1
	&& empty(PKGPATH:Mx11/qt5-psql) && empty(PKGPATH:Mx11/qt5-sqlite3)
@


1.22
log
@qt5: update to 5.10.0

2+ years worth of bug fixes and feature enhancements
@
text
@d1 1
a1 1
# $NetBSD$
d61 3
a63 3
.if empty(PKGPATH:Mwip/qt5-qtbase) \
	&& empty(PKGPATH:Mwip/qt5-odbc) && empty(PKGPATH:Mwip/qt5-mysql) \
	&& empty(PKGPATH:Mwip/qt5-psql) && empty(PKGPATH:Mwip/qt5-sqlite3)
@


1.21
log
@Convert CXXFLAGS setting C++ standard to USE_LANGUAGES.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.20 2017/04/26 06:12:25 wiz Exp $
a34 1
USE_LIBTOOL=		yes
d48 1
a48 1
PLIST_VARS+=		mac unix
d54 3
d61 3
a63 3
.if empty(PKGPATH:Mx11/qt5-qtbase) \
	&& empty(PKGPATH:Mx11/qt5-odbc) && empty(PKGPATH:Mx11/qt5-mysql) \
	&& empty(PKGPATH:Mx11/qt5-psql) && empty(PKGPATH:Mx11/qt5-sqlite3)
@


1.20
log
@Compile with -std=c++11. Needed for compiling with icu;
set for all qt5 packages for consistency.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.19 2016/02/26 11:27:16 jperkin Exp $
d34 1
a34 2
USE_LANGUAGES=		c c++
CXXFLAGS+=		-std=c++11
@


1.19
log
@Use OPSYSVARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.18 2016/01/28 17:00:29 fhajny Exp $
d35 1
@


1.18
log
@Sun ld doesn't support -rpath-link. Fixes build on SunOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.17 2016/01/09 05:40:58 ryoon Exp $
d45 2
a46 4
.if ${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+=	rm:-Wl,-rpath-link,${PREFIX}/qt5/lib
BUILDLINK_TRANSFORM+=	rm:-Wl,-rpath-link,${WRKSRC}/lib
.endif
@


1.17
log
@Remove incorrect CONFIG_SHELL, from fhajny@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.16 2015/10/26 19:03:59 adam Exp $
d44 6
@


1.16
log
@Changes 5.5.1:

Qt Bluetooth
Bluetooth Low Energy API final release (5.4 was featuring tech preview).
Bluetooth Low Energy Support for Android (requires Android v18+) added.
Bluetooth Classic and Low Energy support for iOS and OS X.

Qt Core
You can now have Q_PROPERTY and Q_INVOKABLE within a Q_GADGET, and there is a way to query the QMetaObject of such gadget using the QMetaTYpe system.
Added Q_ENUM to replace Q_ENUMS which allow to get a QMetaEnum at compile time using QMetaEnum::fromType<T>. Such enums are now automatically registered as metatype, and can be converted to string within QVariant, or are printed as string by qDebug()

Qt GUI
Windows packages are all built with -opengl dynamic. No OpenGL-only or ANGLE-only builds are provided anymore.
On Windows the OpenGL implementation to use can now be configured based on the GPU vendor and driver version using JSON configuration files. This allows shipping fine-grained card and driver blacklists with the apps, when necessary.
QOpenGLWidget is now supported in iOS.
QImage: 8-bit alpha map and grayscale formats.
QImageReader: EXIF orientation can now be read though the transformation method, and applied on read to JPEGs if wanted.

Qt Multimedia
GStreamer 1.0 support. Note that the default is still 0.10. 1.0 support can be enabled by configuring Qt with '-gstreamer 1.0'.
New video filtering framework to integrate frameworks like OpenCV or compute APIs such as OpenCL or CUDA with VideoOutput elements.
New API to control camera viewfinder settings
Improved camera support on iOS (focus, zoom, exposure, viewfinder/image settings)
The QML MediaPlayer is now rendered in an OpenGL texture on iOS. This means VideoOutput supports advanced transformation, shader effects and doesn't have to be always on top of other items anymore.

Qt NFC
Neard based backend for Linux added.

Qt Network
New SSL back-end for iOS and OS X based on Secure Transport. Note that in Qt 5.6 this will become the default SSL: back-end on these platforms.
Support for libproxy
Support for TLS PSK ciphersuites
Support for elliptic curve certificates
Ability to select specific curves when using elliptic curve ciphersuites.

QPA
Added support for the Raspberry Pi 2.
Added support for the ODROID-XU3.
On supported desktops, the xcb plugin now uses the D-Bus based org.kde.StatusNotifier protocol for system tray icons, and org.freedesktop.Notifications for notifications.
KMS/DRM backend for EGLFS. This replaces the now deprecated KMS platform plugin. It allows running apps with eglfs on the console on systems with Mesa and devices that come with drm support.
EGLFS has a plugin-based backend mechanism in addition to the existing, statically compiled-in solution. Most compiled-in hooks are converted to be dynamically loaded plugins that are built based on configure time tests. This reduces the reliance on the device makespecs for RPi, i.MX6 and Mali-based devices.
Input handling is now unified for EGLFS and LinuxFB, avoiding the need to launch and configure LinuxFB-based apps differently than when using EGLFS.
tslib is now better integrated with EGLFS and LinuxFB to provide support for resistive single-touch touchscreens often used in industrial environments.
xcb is refactored to move GLX and EGL support into plugins. No more ifdefs, allowing building both backends.
Added a TUIO Touch plugin for receiving remote touch events via UDP.
Added a libinput plugin.
iOS: you can now use QFileDialog to browse system photos using a native image picker dialog by setting directory to QStandardPaths::PicturesLocation. Selected photos can be loaded using QFile.

Qt QML
It is now possible to conveniently expose custom C++ value types into the JavaScript environment of QML and QJSEngine.
Support for JavaScript typed arrays
Various performance improvements, notably QJSValue
Added convenience qJsEngine(QObject*) getter function.

Qt Quick
Windows now defaults to the threaded Qt Quick render loop when using desktop OpenGL (opengl32.dll).
QQuickWidget is now supported in iOS.
QQuickRenderControl supports threaded rendering.
Improved behavior of Flickable on OS X trackpads using pixel deltas from native gestures.
PinchArea handles native pinch gestures when the OS provides them (so far only on OS X). Otherwise it relies on touch events, as before.
Added a smart zoom signal to PinchArea to react to that gesture on an OS X trackpad.
MouseArea now has a scrollGestureEnabled property to control whether native scroll gestures from the OS will be handled by the wheel signal handler.

Qt Quick Controls
Qt Quick Extras (formerly Qt Quick Enterprise Controls) was added under the QtQuick.Extras import.
TreeView control for QAbstractItemModel-derived models. Supports QItemSelectionModel selection.

Qt WebEngine
Updated Chromium snapshot to version 40
WebEngineProfile for control of storage and cache paths and related policies.
Added support for javascript Geolocation API with QtLocation as a backend
Added API for managing downloading of files
Added API for controlling cache and cookie paths and policy
Added API for WebEngine settings
Added API for injecting user scripts
Various experimental QML API has been promoted to public
Added QtWebChannel integration API over Chromium IPC

Qt WebView
Added native implementations for Mac OS X.
Added API for running JavaScript (Requires API 19+ on Android).
Added API for setting the HTML content.
Added API for load status notifications.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.15 2015/02/08 09:07:27 wiz Exp $
a37 2
CONFIG_SHELL=		${PERL5}

@


1.15
log
@# used by x11/qt5-qtwebsockets/Makefile
@
text
@d1 1
a1 2
# $NetBSD: Makefile.common,v 1.14 2015/02/08 09:01:01 wiz Exp $
# used by x11/qt5-dbus/Makefile
d57 1
a57 1
.if empty(PKGPATH:Mx11/qt5-qtbase) && empty(PKGPATH:Mx11/qt5-dbus) \
@


1.14
log
@# used by x11/qt5-qtwebchannel/Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.13 2014/12/30 17:23:45 adam Exp $
d24 1
@


1.13
log
@Changes 5.4.0:
Chromium-based browser engine Qt WebEngine
Qt WebView for showing web content using the native OS web engine on mobile
Full support on Qt for Windows Store Apps, including WinRT and Windows Phone 8.1
Improved Compliance with iOS 8 and Xcode 6
Improved OS X 10.10 ‘Yosemite’ support and new Mac AppStore signing
High-DPI support for Windows and OS X
Dynamic GL switching between OpenGL and ANGLE on Windows
Mix OpenGL and Qt Quick with QOpenGLWidget
Android Look-and-Feel for Qt Quick Controls
Qt Creator 3.3 with new Qt Quick Designer
Bluetooth now supports BlueZ5 with tech preview on Bluetooth LE
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.12 2014/12/25 13:51:13 wiz Exp $
d22 1
@


1.12
log
@Improve qt5 build structure, from Niclas Rosenvik:
Allow multiple BUILD_DIRS (but Makefile.common must be included later)
Adds installation of some cmake files and gets rid of many manual
installation rules.
Bump PKGREVISION where PLIST changed.
@
text
@d1 1
a1 3


# $NetBSD: Makefile.common,v 1.11 2014/08/28 10:58:19 jperkin Exp $
d12 1
a26 6
DISTNAME=	qt-everywhere-opensource-src-${QTDISTVER}
CATEGORIES=	x11
MASTER_SITES=	http://download.qt-project.org/official_releases/qt/${QTDISTVER:R}/${QTDISTVER}/single/
EXTRACT_SUFX=	.tar.xz
EXTRACT_USING=	bsdtar

a29 10
DISTINFO_FILE=	${.CURDIR}/../../x11/qt5-qtbase/distinfo
FILESDIR=	${.CURDIR}/../../x11/qt5-qtbase/files
PATCHDIR=	${.CURDIR}/../../x11/qt5-qtbase/patches

.if defined(MAKE_JOBS)
.  if !defined(MAKE_JOBS_SAFE) || empty(MAKE_JOBS_SAFE:M[nN][oO])
CONFIGURE_ENV+=		MAKE_FLAGS=-j${MAKE_JOBS:Q}
.  endif
.endif

a32 1
HAS_CONFIGURE=		yes
a38 3
REPLACE_PERL+=		qtbase/bin/syncqt.pl
REPLACE_PERL+=		qtwebkit/Source/WebKit2/Scripts/generate-forwarding-headers.pl

a44 32
CONFIGURE_ARGS+=	-optimized-qmake
CONFIGURE_ARGS+=	-prefix "${QTPREFIX}"
CONFIGURE_ARGS+=	${CFLAGS:M-I*} ${LDFLAGS:M-L*} ${LDFLAGS:M-l*}
CONFIGURE_ARGS+=	-opensource -confirm-license
CONFIGURE_ARGS+=	-accessibility
CONFIGURE_ARGS+=	-fontconfig
CONFIGURE_ARGS+=	-icu
CONFIGURE_ARGS+=	-openssl-linked
CONFIGURE_ARGS+=	-nomake examples
CONFIGURE_ARGS+=	-nomake tests
CONFIGURE_ARGS+=	-no-pch
CONFIGURE_ARGS+=	-no-strip
CONFIGURE_ARGS+=	-system-libjpeg
CONFIGURE_ARGS+=	-system-libpng
CONFIGURE_ARGS+=	-system-sqlite
CONFIGURE_ARGS+=	-system-pcre
CONFIGURE_ARGS+=	-system-zlib
CONFIGURE_ARGS+=	-no-dbus
CONFIGURE_ARGS+=	-no-sql-mysql
CONFIGURE_ARGS+=	-no-sql-psql
CONFIGURE_ARGS+=	-no-sql-sqlite
OPSYSVARS+=		CONFIGURE_ARGS

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Darwin"
CONFIGURE_ARGS+=	-iconv
.  if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=	-reduce-relocations
.  endif
.endif

a48 1
QMAKE_CONF=		qmake.conf.mac
a50 1
QMAKE_CONF=		qmake.conf
d56 5
a60 89
.include "../../mk/compiler.mk"

.if ${OPSYS} == "SunOS"
.  if !empty(CC_VERSION:Mgcc*)
.    if ${ABI:U} == "64"
CONFIGURE_ARGS+=	-platform solaris-g++-64
.    else
CONFIGURE_ARGS+=	-platform solaris-g++
.    endif
.  else
.    if ${ABI:U} == "64"
CONFIGURE_ARGS+=	-platform solaris-cc-64
.    else
CONFIGURE_ARGS+=	-platform solaris-cc
.    endif
.  endif
SYS_LIBS=		-lresolv -lsocket -lnsl -lrt
.elif ${OPSYS} == "Interix"
CONFIGURE_ARGS+=	-platform interix-g++
CFLAGS+=		-I/usr/local/include/bind
LDFLAGS+=		-L/usr/local/lib/bind -lbind
BUILDLINK_PASSTHRU_DIRS+=/usr/local/include/bind /usr/local/lib/bind
SYS_LIBS=		-lbind -ldb -ldl
.elif ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+=	-platform freebsd-g++
.elif ${OPSYS} == "Darwin"
CONFIGURE_ARGS+=	-platform macx-clang
CONFIGURE_ARGS+=	-no-framework
.  if exists(/usr/lib/libresolv.dylib)
LDFLAGS+=		-lresolv
.  endif
.elif ${OPSYS} == "Linux"
LDFLAGS+=		-ldl
.endif

remove-3rdparty-libs:
.for i in freetype  libjpeg libpng xcb zlib
	${RM} -f -r ${WRKSRC}/qtbase/src/3rdparty/${i}
.endfor

set-qmake-conf:
	${SED}  -e 's:@@LOCALBASE@@:${LOCALBASE}:g' \
		-e 's:@@X11BASE@@:${X11BASE}:g' \
		-e 's:@@X11PREFIX@@:${X11PREFIX}:g' \
		-e 's:@@LIBTOOL@@:${LIBTOOL:Q}:g' \
		-e 's:@@CC@@:${CC:Q}:g' \
		-e 's:@@CXX@@:${CXX:Q}:g' \
		-e 's:@@LDFLAGS@@:${LDFLAGS:Q}:g' \
		-e 's:@@CFLAGS@@:${CFLAGS:Q}:g' \
		-e 's:@@CXXFLAGS@@:${CXXFLAGS:Q}:g' \
		-e 's:@@SYS_LIBS@@:${SYS_LIBS:Q}:g' \
		-e 's:@@LEX@@:${LEX}:g' \
		-e 's:@@YACC@@:${TOOLS_CMDLINE_YACC:Q}:g' \
		-e 's:@@AR@@:${AR:Q}:g' \
		-e 's:@@MKDIR@@:${MKDIR}:g' \
		-e 's:@@LIBQT@@:${LIBQT:Q}:g' \
		-e 's:@@PTHREAD_LDFLAGS@@:${PTHREAD_LDFLAGS:Q}:g' \
		-e 's:@@PTHREAD_LIBS@@:${PTHREAD_LIBS:Q}:g' \
		-e 's:@@COMPILER_RPATH_FLAG@@:${COMPILER_RPATH_FLAG}:g' \
		-e 's:@@QMAKE_RANLIB@@:${QMAKE_RANLIB:Q}:g' \
		${FILESDIR}/${QMAKE_CONF} > ${WRKSRC}/qmake.conf
		for dir in ${WRKSRC}/qtbase/mkspecs/*; do \
			cp ${WRKSRC}/qmake.conf $${dir}; \
			rm -f $${dir}/*.orig; \
		done
	${RM} -f ${WRKSRC}/qtbase/mkspecs/features/mac/default_pre.prf
	${RM} -f ${WRKSRC}/qtbase/mkspecs/features/mac/objective_c.prf.orig

no-qmake-build:
	cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/patch-qtbase_configure.no-qmake
	${LN} -sf ${QTPREFIX}/bin/moc ${WRKSRC}/qtbase/bin/moc
	${LN} -sf ${QTPREFIX}/bin/qmake ${WRKSRC}/qtbase/bin/qmake
	${LN} -sf ${QTPREFIX}/bin/rcc ${WRKSRC}/qtbase/bin/rcc
	${LN} -sf ${QTPREFIX}/bin/uic ${WRKSRC}/qtbase/bin/uic

.if empty(PKGPATH:Mx11/qt5-qtbase)
pre-configure: remove-3rdparty-libs set-qmake-conf no-qmake-build
.else
pre-configure: remove-3rdparty-libs set-qmake-conf
.endif

.if empty(PKGPATH:Mx11/qt5-qtbase) && empty(PKGPATH:Mx11/qt5-sqlite3) \
	&& empty(PKGPATH:Mx11/qt5-mysql) && empty(PKGPATH:Mx11/qt5-psql) \
	&& empty(PKGPATH:Mx11/qt5-odbc)
post-configure:
.for d in ${BUILD_DIRS}
	cd ${WRKSRC}/${d} && \
	${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} ${QTPREFIX}/bin/qmake -o Makefile
.endfor
a61 11

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
@


1.11
log
@Remove SunOS BUILDLINK_TRANSFORM instances which remove -Wl,--* GNU ld
arguments, these are now handled globally by mk/platform/SunOS.mk
@
text
@d1 3
a3 1
# $NetBSD: Makefile.common,v 1.10 2014/04/23 07:05:31 adam Exp $
d196 2
a197 1
	cd ${WRKSRC}/${BUILD_DIRS} && \
d199 1
@


1.10
log
@Changes 5.2.1:
It provides many improvements over Qt 5.2.0 as well as packages Qt Creator 3.0.1. As a patch release, it does not add new features and remains binary compatible with Qt 5.2.0.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2014/01/28 08:46:14 ryoon Exp $
a125 1
BUILDLINK_TRANSFORM+=	rm:-Wl,--gc-sections
@


1.9
log
@Fix PR pkg/48553, bump PKGREVISION

Add correct pathes to QTCOMPOSE
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2014/01/04 23:46:26 joerg Exp $
d28 1
a28 1
MASTER_SITES=	http://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/
d40 1
a40 1
.if !defined(MAKE_JOBS_SAFE) || empty(MAKE_JOBS_SAFE:M[nN][oO])
d42 1
a42 1
.endif
a69 1
CONFIGURE_ARGS+=	-iconv
d89 3
a91 1
.if ${OPSYS} != "SunOS"
d93 1
d97 6
a102 1

d104 1
d126 1
a126 1
BUILDLINK_TRANSFORM+=   rm:-Wl,--gc-sections
d136 1
a136 6
.  if !empty(PKGSRC_COMPILER:Mclang)
CONFIGURE_ARGS+=	-platform macx-llvm
.  else
CONFIGURE_ARGS+=	-platform macx-g++
.  endif
CONFIGURE_ARGS+=	-no-dwarf2
d146 2
a147 3
.for i in freetype libjpeg libpng zlib xcb
	cd ${WRKSRC}/qtbase/src/3rdparty && \
		${RM} -fr ${i}
d175 2
d179 1
a179 2
	cd ${WRKSRC} && \
		${PATCH} < ${FILESDIR}/patch-qtbase_configure.no-qmake
d199 1
@


1.8
log
@Honor wrappers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2013/12/30 06:37:11 ryoon Exp $
d33 1
a67 1
CONFIGURE_ARGS+=	-release
@


1.7
log
@*** empty log message ***
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6 2013/12/28 09:11:24 jperkin Exp $
d192 2
a193 1
	cd ${WRKSRC}/${BUILD_DIRS} && ${QTPREFIX}/bin/qmake -o Makefile
@


1.6
log
@Don't use -reduce-relocations on SunOS, it is not supported.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.5 2013/12/23 02:51:57 obache Exp $
d50 1
a50 1
USE_TOOLS+=		gmake perl:build
@


1.5
log
@fix a typo in last change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2013/12/21 08:59:41 obache Exp $
a66 1
CONFIGURE_ARGS+=	-reduce-relocations
d90 4
@


1.4
log
@Use PKGPATH instead of PKGNAME for check current package, because later variable
may not be defined yet and broken with old bmake in netbsd5.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2013/12/20 02:36:10 obache Exp $
d187 1
a187 1
	&& empty(PKGPATH:Mx11/Mqt5-odbc)
@


1.3
log
@exactly check for the case MAKE_JOBS.
fixes for old bmake behavior in netbsd5 and missing MAKE_JOBS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.2 2013/12/15 09:42:44 ryoon Exp $
d179 1
a179 1
.if empty(PKGNAME:Mqt5-qtbase*)
d185 3
a187 3
.if empty(PKGNAME:Mqt5-qtbase*) && empty(PKGNAME:Mqt5-sqlite3*) \
	&& empty(PKGNAME:Mqt5-mysql*) && empty(PKGNAME:Mqt5-psql*) \
	&& empty(PKGNAME:Mqt5-odbc*)
@


1.2
log
@Update to 5.2.0

Changelog:
No changes from Qt 5.2.0rc1 is available.
* Some header files has chenged its name.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.1 2013/12/13 14:38:35 ryoon Exp $
d38 2
a39 1
.if empty(MAKE_JOBS_SAFE:M[nN][oO])
d42 1
@


1.1
log
@Import Qt5 5.2.0rc1 packages and qt5 input module from uim

Only tested on NetBSD/amd64 6.99.28.

ToDo:
* inputmethod/qt5-ibus from Qt5 should be created
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.35 2013/01/11 00:15:40 joerg Exp $
d28 1
a28 1
MASTER_SITES=	http://download.qt-project.org/development_releases/qt/5.2/5.2.0-rc1/single/
@

