Commit c05a76ed authored by makc's avatar makc
Browse files

KDE/FreeBSD team is happy to present Qt 5 in ports!

Alberto Villa (avilla@) has done all the hard work to create Qt 5 ports.
Trivial update from 5.2.0-beta1 to 5.2.1 by me.

Special thanks for Adriaan de Groot <groot@kde.org> for his assistance for
Qt-5.2.0 update.

Approved by:	portmgr (bapt) (for Mk/bsd.port.mk)
parent 5e6b17ee
......@@ -10,6 +10,13 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
20140303:
AUTHOR: kde@FreeBSD.org
Add support for Qt 5 via USE_QT5. USE_QT5 is analogous to USE_QT4,
the only difference is the list of available components
(see Mk/bsd.qt.mk for details). USES=qmake supports Qt 5 as well.
20140127:
AUTHOR: mat@FreeBSD.org
......
......@@ -435,16 +435,21 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# USE_WX - If set, this port uses the WxWidgets library and related
# components. See bsd.wx.mk for more details.
##
# USE_KDE4 - A list of the KDE4 dependencies the port has (e.g.,
# USE_KDE4 - A list of the KDE 4 dependencies the port has (e.g.,
# kdelibs, kdebase). Implies that the port needs KDE.
# Implies inclusion of bsd.kde4.mk. See bsd.kde4.mk
# for more details.
#
# USE_QT4 - A list of the QT4 dependencies the port has (e.g,
# USE_QT4 - A list of the Qt 4 dependencies the port has (e.g,
# corelib, webkit). Implies that the port needs Qt.
# Implies the inclusion of bsd.qt.mk. See bsd.qt.mk
# for more details.
#
# USE_QT5 - A list of the Qt 5 dependencies the port has (e.g,
# core, webkit). Implies that the port needs Qt.
# Implies the inclusion of bsd.qt.mk. See bsd.qt.mk
# for more details.
#
# USE_LINUX - Set to yes to say the port needs the default linux base port.
# Set to value <X>, if the port needs emulators/linux_base-<X>.
# Implies appropriate settings for STRIP and STRIP_CMD.
......@@ -1440,7 +1445,7 @@ PKGCOMPATDIR?= ${LOCALBASE}/lib/compat/pkg
.include "${PORTSDIR}/Mk/bsd.apache.mk"
.endif
.if defined(USE_QT4)
.if defined(USE_QT4) || defined(USE_QT5)
.include "${PORTSDIR}/Mk/bsd.qt.mk"
.endif
......@@ -1871,7 +1876,7 @@ IGNORE= Do not define STAGEDIR in command line
.include "${PORTSDIR}/Mk/bsd.linux-apps.mk"
.endif
.if defined(USE_QT4)
.if defined(USE_QT4) || defined(USE_QT5)
.include "${PORTSDIR}/Mk/bsd.qt.mk"
.endif
......
......@@ -27,7 +27,7 @@ Qt_Pre_Include= bsd.qt.mk
# Qt versions currently supported by the framework.
_QT_SUPPORTED?= 4 5
QT4_VERSION?= 4.8.5
QT5_VERSION?= 5.2.0-beta1
QT5_VERSION?= 5.2.1
QT_PREFIX?= ${LOCALBASE}
......@@ -60,7 +60,6 @@ MASTER_SITES= ${MASTER_SITE_QT}
# Useless, as it must be defined before including bsd.port.pre.mk (at least
# because of bsd.options.mk).
#PKGNAMEPREFIX?= ${_QT_RELNAME}-
DIST_SUBDIR= KDE
DISTINFO_FILE= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/distinfo
# Can go after a while.
......@@ -78,6 +77,7 @@ DESTDIRNAME= INSTALL_ROOT
. if ${_QT_VERSION:M4*}
MASTER_SITE_SUBDIR= official_releases/qt/${_QT_VERSION:R}/${_QT_VERSION}/
DISTNAME= qt-everywhere-opensource-src-${_QT_VERSION}
DIST_SUBDIR= KDE
. else
. if ${_QT_VERSION:M*-*}
# Pre-releases.
......@@ -87,6 +87,7 @@ MASTER_SITE_SUBDIR= official_releases/qt/${_QT_VERSION:R}/${_QT_VERSION}/submodu
. endif
DISTNAME= ${QT_DIST:S,^,qt,:S,$,-opensource-src-${_QT_VERSION},}
DISTFILES= ${DISTNAME:S,$,${EXTRACT_SUFX},}
DIST_SUBDIR= KDE/Qt/${_QT_VERSION}
USE_XZ= yes
. if ${.TARGETS:Mmakesum} || ${.TARGETS:Mfetch} && \
......@@ -551,8 +552,9 @@ _QT_TOOLS+= ${UIC}
pre-configure: qtbase-pre-configure
qtbase-pre-configure:
. if ${PORTNAME} != "qmake"
@${RM} -rf ${CONFIGURE_WRKSRC}/mkspecs
@${MKDIR} ${CONFIGURE_WRKSRC}/mkspecs
@(cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS})
# @${RM} -rf ${CONFIGURE_WRKSRC}/mkspecs
# @${MKDIR} ${CONFIGURE_WRKSRC}/mkspecs
. endif
. for tool in ${_QT_TOOLS}
@${TEST} -e ${QT_BINDIR}/${tool:T} && \
......
......@@ -781,6 +781,13 @@
SUBDIR += qt4-sql
SUBDIR += qt4-sqlite-plugin
SUBDIR += qt4-sqlite3-plugin
SUBDIR += qt5-sql
SUBDIR += qt5-sqldrivers-ibase
SUBDIR += qt5-sqldrivers-mysql
SUBDIR += qt5-sqldrivers-odbc
SUBDIR += qt5-sqldrivers-pgsql
SUBDIR += qt5-sqldrivers-sqlite2
SUBDIR += qt5-sqldrivers-sqlite3
SUBDIR += rdb
SUBDIR += rdfdb
SUBDIR += recutils
......
# $FreeBSD$
PORTNAME= sql
DISTVERSION= ${QT5_VERSION}
CATEGORIES= databases
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt SQL database integration module
USE_QT5= core qmake_build buildtools_build
QT_DIST= base
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -no-gui -no-xcb
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
.include <bsd.port.mk>
======================================================================
To enable Qt database support, install the database plugin ports. The
following plugin ports are available:
- databases/qt5-sqldrivers-ibase InterBase/Firebird
- databases/qt5-sqldrivers-mysql MySQL
- databases/qt5-sqldrivers-odbc Open Database Connectivity
- databases/qt5-sqldrivers-pgsql PostgreSQL
- databases/qt5-sqldrivers-sqlite2 SQLite 2
- databases/qt5-sqldrivers-sqlite3 SQLite 3
======================================================================
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_db2_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_ibase_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_mysql_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_oci_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_odbc_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_psql_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_sqlite2_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_sqlite_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsql_tds_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqlcachedresult_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqldriver_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqlnulldriver_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqlquerymodel_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqlresult_p.h
%%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private/qsqltablemodel_p.h
%%QT_INCDIR%%/QtSql/QSql
%%QT_INCDIR%%/QtSql/QSqlDatabase
%%QT_INCDIR%%/QtSql/QSqlDriver
%%QT_INCDIR%%/QtSql/QSqlDriverCreator
%%QT_INCDIR%%/QtSql/QSqlDriverCreatorBase
%%QT_INCDIR%%/QtSql/QSqlDriverPlugin
%%QT_INCDIR%%/QtSql/QSqlError
%%QT_INCDIR%%/QtSql/QSqlField
%%QT_INCDIR%%/QtSql/QSqlIndex
%%QT_INCDIR%%/QtSql/QSqlQuery
%%QT_INCDIR%%/QtSql/QSqlQueryModel
%%QT_INCDIR%%/QtSql/QSqlRecord
%%QT_INCDIR%%/QtSql/QSqlRelation
%%QT_INCDIR%%/QtSql/QSqlRelationalDelegate
%%QT_INCDIR%%/QtSql/QSqlRelationalTableModel
%%QT_INCDIR%%/QtSql/QSqlResult
%%QT_INCDIR%%/QtSql/QSqlTableModel
%%QT_INCDIR%%/QtSql/QtSql
%%QT_INCDIR%%/QtSql/QtSqlDepends
%%QT_INCDIR%%/QtSql/QtSqlVersion
%%QT_INCDIR%%/QtSql/qsql.h
%%QT_INCDIR%%/QtSql/qsqldatabase.h
%%QT_INCDIR%%/QtSql/qsqldriver.h
%%QT_INCDIR%%/QtSql/qsqldriverplugin.h
%%QT_INCDIR%%/QtSql/qsqlerror.h
%%QT_INCDIR%%/QtSql/qsqlfield.h
%%QT_INCDIR%%/QtSql/qsqlindex.h
%%QT_INCDIR%%/QtSql/qsqlquery.h
%%QT_INCDIR%%/QtSql/qsqlquerymodel.h
%%QT_INCDIR%%/QtSql/qsqlrecord.h
%%QT_INCDIR%%/QtSql/qsqlrelationaldelegate.h
%%QT_INCDIR%%/QtSql/qsqlrelationaltablemodel.h
%%QT_INCDIR%%/QtSql/qsqlresult.h
%%QT_INCDIR%%/QtSql/qsqltablemodel.h
%%QT_INCDIR%%/QtSql/qtsqlversion.h
%%QT_LIBDIR%%/cmake/Qt5Sql/Qt5SqlConfig.cmake
%%QT_LIBDIR%%/cmake/Qt5Sql/Qt5SqlConfigVersion.cmake
%%QT_LIBDIR%%/libQt5Sql.la
%%QT_LIBDIR%%/libQt5Sql.prl
%%QT_LIBDIR%%/libQt5Sql.so
%%QT_LIBDIR%%/libQt5Sql.so.5
%%QT_LIBDIR%%/libQt5Sql.so.%%SHORTVER%%
%%QT_LIBDIR%%/libQt5Sql.so.%%FULLVER%%
%%DEBUG%%%%QT_LIBDIR%%/libQt5Sql.so.%%FULLVER%%.debug
%%QT_MKSPECDIR%%/modules/qt_lib_sql.pri
%%QT_MKSPECDIR%%/modules/qt_lib_sql_private.pri
libdata/pkgconfig/Qt5Sql.pc
@dirrmtry %%QT_MKSPECDIR%%/modules
@dirrmtry %%QT_MKSPECDIR%%
@dirrmtry %%QT_ARCHDIR%%
@dirrmtry %%QT_LIBDIR%%/cmake/Qt5Sql
@dirrmtry %%QT_LIBDIR%%/cmake
@dirrm %%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql/private
@dirrm %%QT_INCDIR%%/QtSql/%%FULLVER%%/QtSql
@dirrm %%QT_INCDIR%%/QtSql/%%FULLVER%%
@dirrm %%QT_INCDIR%%/QtSql
@dirrmtry %%QT_INCDIR%%
# $FreeBSD$
DB= IBase
DB_DESC= InterBase/Firebird
USE_FIREBIRD= yes
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
# $FreeBSD$
DB= MYSQL
DB_DESC= MySQL
USE_MYSQL= yes
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
# $FreeBSD$
COMMENT= Qt ${DB_DESC} plugin
DB= ODBC
DB_DESC= Open Database Connectivity
LIB_DEPENDS= libiodbc.so:${PORTSDIR}/databases/libiodbc
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
# $FreeBSD$
PORTNAME= pgsql
DB= PSQL
DB_DESC= PostgreSQL
USE_PGSQL= yes
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
# $FreeBSD$
DB= SQLite2
DB_DESC= SQLite 2
USE_SQLITE= 2
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
# $FreeBSD$
PORTNAME= sqlite3
DB= SQLite
DB_DESC= SQLite 3
USE_SQLITE= 3
CONFIGURE_ARGS= -system-sqlite
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"
......@@ -333,6 +333,7 @@
SUBDIR += dbus
SUBDIR += dbus-glib
SUBDIR += dbus-qt4
SUBDIR += dbus-qt5
SUBDIR += dbus-sharp
SUBDIR += dbus-sharp-glib
SUBDIR += dcmtk
......@@ -3989,6 +3990,7 @@
SUBDIR += qjson
SUBDIR += qmake
SUBDIR += qmake4
SUBDIR += qmake5
SUBDIR += qprog
SUBDIR += qross
SUBDIR += qscintilla2
......@@ -4019,6 +4021,22 @@
SUBDIR += qt4-testlib
SUBDIR += qt4-uic
SUBDIR += qt4-uic3
SUBDIR += qt5
SUBDIR += qt5-assistant
SUBDIR += qt5-buildtools
SUBDIR += qt5-concurrent
SUBDIR += qt5-core
SUBDIR += qt5-designer
SUBDIR += qt5-help
SUBDIR += qt5-linguist
SUBDIR += qt5-linguisttools
SUBDIR += qt5-qdbus
SUBDIR += qt5-qdbusviewer
SUBDIR += qt5-qmldevtools
SUBDIR += qt5-script
SUBDIR += qt5-scripttools
SUBDIR += qt5-testlib
SUBDIR += qt5-uitools
SUBDIR += qtcreator
SUBDIR += qtscriptgenerator
SUBDIR += quickcheck++
......
# $FreeBSD$
PORTNAME= dbus
DISTVERSION= ${QT5_VERSION}
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt D-Bus inter-process communication module
LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus
USE_QT5= core qmake_build buildtools_build
QT_DIST= base
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -no-gui -no-xcb
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
TOOLS= qdbuscpp2xml qdbusxml2cpp
QT_DEFINES= DBUS
QT_CONFIG= dbus
post-configure:
.for t in ${TOOLS}
@cd ${WRKSRC}/src/tools/${t} && \
${SETENV} ${QMAKE_ENV} ${WRKSRC}/bin/qmake ${QMAKE_ARGS}
.endfor
post-build:
.for t in ${TOOLS}
@cd ${WRKSRC}/src/tools/${t} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
.endfor
post-install:
.for t in ${TOOLS}
@cd ${WRKSRC}/src/tools/${t} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET}
.endfor
.include <bsd.port.mk>
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbus_symbols_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusabstractadaptor_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusabstractinterface_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusargument_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusconnection_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusconnectionmanager_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbuscontext_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusintegrator_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusinterface_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusintrospection_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusmessage_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusmetaobject_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusmetatype_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbuspendingcall_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusthreaddebug_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusutil_p.h
%%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private/qdbusxmlparser_p.h
%%QT_INCDIR%%/QtDBus/QDBusAbstractAdaptor
%%QT_INCDIR%%/QtDBus/QDBusAbstractInterface
%%QT_INCDIR%%/QtDBus/QDBusAbstractInterfaceBase
%%QT_INCDIR%%/QtDBus/QDBusArgument
%%QT_INCDIR%%/QtDBus/QDBusConnection
%%QT_INCDIR%%/QtDBus/QDBusConnectionInterface
%%QT_INCDIR%%/QtDBus/QDBusContext
%%QT_INCDIR%%/QtDBus/QDBusError
%%QT_INCDIR%%/QtDBus/QDBusInterface
%%QT_INCDIR%%/QtDBus/QDBusMessage
%%QT_INCDIR%%/QtDBus/QDBusMetaType
%%QT_INCDIR%%/QtDBus/QDBusObjectPath
%%QT_INCDIR%%/QtDBus/QDBusPendingCall
%%QT_INCDIR%%/QtDBus/QDBusPendingCallWatcher
%%QT_INCDIR%%/QtDBus/QDBusPendingReply
%%QT_INCDIR%%/QtDBus/QDBusPendingReplyData
%%QT_INCDIR%%/QtDBus/QDBusReply
%%QT_INCDIR%%/QtDBus/QDBusServer
%%QT_INCDIR%%/QtDBus/QDBusServiceWatcher
%%QT_INCDIR%%/QtDBus/QDBusSignature
%%QT_INCDIR%%/QtDBus/QDBusUnixFileDescriptor
%%QT_INCDIR%%/QtDBus/QDBusVariant
%%QT_INCDIR%%/QtDBus/QDBusVirtualObject
%%QT_INCDIR%%/QtDBus/QtDBus
%%QT_INCDIR%%/QtDBus/QtDBusDepends
%%QT_INCDIR%%/QtDBus/QtDBusVersion
%%QT_INCDIR%%/QtDBus/qdbusabstractadaptor.h
%%QT_INCDIR%%/QtDBus/qdbusabstractinterface.h
%%QT_INCDIR%%/QtDBus/qdbusargument.h
%%QT_INCDIR%%/QtDBus/qdbusconnection.h
%%QT_INCDIR%%/QtDBus/qdbusconnectioninterface.h
%%QT_INCDIR%%/QtDBus/qdbuscontext.h
%%QT_INCDIR%%/QtDBus/qdbuserror.h
%%QT_INCDIR%%/QtDBus/qdbusextratypes.h
%%QT_INCDIR%%/QtDBus/qdbusinterface.h
%%QT_INCDIR%%/QtDBus/qdbusmacros.h
%%QT_INCDIR%%/QtDBus/qdbusmessage.h
%%QT_INCDIR%%/QtDBus/qdbusmetatype.h
%%QT_INCDIR%%/QtDBus/qdbuspendingcall.h
%%QT_INCDIR%%/QtDBus/qdbuspendingreply.h
%%QT_INCDIR%%/QtDBus/qdbusreply.h
%%QT_INCDIR%%/QtDBus/qdbusserver.h
%%QT_INCDIR%%/QtDBus/qdbusservicewatcher.h
%%QT_INCDIR%%/QtDBus/qdbusunixfiledescriptor.h
%%QT_INCDIR%%/QtDBus/qdbusvirtualobject.h
%%QT_INCDIR%%/QtDBus/qtdbusversion.h
%%QT_LIBDIR%%/cmake/Qt5DBus/Qt5DBusConfig.cmake
%%QT_LIBDIR%%/cmake/Qt5DBus/Qt5DBusConfigExtras.cmake
%%QT_LIBDIR%%/cmake/Qt5DBus/Qt5DBusConfigVersion.cmake
%%QT_LIBDIR%%/cmake/Qt5DBus/Qt5DBusMacros.cmake
%%QT_LIBDIR%%/libQt5DBus.la
%%QT_LIBDIR%%/libQt5DBus.prl
%%QT_LIBDIR%%/libQt5DBus.so
%%QT_LIBDIR%%/libQt5DBus.so.5
%%QT_LIBDIR%%/libQt5DBus.so.%%SHORTVER%%
%%QT_LIBDIR%%/libQt5DBus.so.%%FULLVER%%
%%DEBUG%%%%QT_LIBDIR%%/libQt5DBus.so.%%FULLVER%%.debug
%%QT_BINDIR%%/qdbuscpp2xml
%%QT_BINDIR%%/qdbusxml2cpp
%%QT_MKSPECDIR%%/modules/qt_lib_dbus.pri
%%QT_MKSPECDIR%%/modules/qt_lib_dbus_private.pri
libdata/pkgconfig/Qt5DBus.pc
@dirrmtry %%QT_MKSPECDIR%%/modules
@dirrmtry %%QT_MKSPECDIR%%
@dirrmtry %%QT_BINDIR%%
@dirrmtry %%QT_ARCHDIR%%
@dirrm %%QT_LIBDIR%%/cmake/Qt5DBus
@dirrmtry %%QT_LIBDIR%%/cmake
@dirrm %%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus/private
@dirrm %%QT_INCDIR%%/QtDBus/%%FULLVER%%/QtDBus
@dirrm %%QT_INCDIR%%/QtDBus/%%FULLVER%%
@dirrm %%QT_INCDIR%%/QtDBus
@dirrmtry %%QT_INCDIR%%
# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT5_VERSION}
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt Makefile generator
USE_QT5= # empty
QT_DIST= base
REINPLACE_ARGS= -i ""
HAS_CONFIGURE= yes
# Disable everything to install minimal qconfig.pri.
CONFIGURE_ARGS= -no-accessibility -no-openssl -no-gui -no-cups \
-no-iconv -no-icu -no-dbus -no-xcb -no-opengl \
-no-glib -no-audio-backend -no-fontconfig \
-no-gtkstyle -no-xinput2 -no-xrender \
-no-xkbcommon
# Features yet to be removed from qconfig.pri.
TBR_CONFIG= alsa|concurrent|.*freetype|.*gif|.*gui|.*harfbuzz|inotify|.*jpeg|.*pkg-config|.*png|pulseaudio|.*widgets|xlib
QMAKESPEC= ${WRKSRC}/mkspecs/freebsd-${QMAKE_COMPILER}
INSTALL_TARGET= install_qmake install_mkspecs
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
.include <bsd.port.pre.mk>
# Needs bsd.port.pre.mk to override -dont-process from bsd.qt.mk.
CONFIGURE_ARGS+=-process
post-patch:
# Prevent qconfig.pri from being module dependent.
@${REINPLACE_CMD} -E -e '/"\$$QT_CONFIG +(${TBR_CONFIG})"/ d' \
${WRKSRC}/configure
@${RM} ${WRKSRC}/mkspecs/*/*.orig
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/mkspecs/common/freebsd.conf
@${REINPLACE_CMD} -e 's|unix.conf|freebsd.conf|' \
${WRKSRC}/mkspecs/freebsd-icc/qmake.conf
# Add mkspec for Clang.
@${CP} -a ${WRKSRC}/mkspecs/freebsd-g++ \
${WRKSRC}/mkspecs/freebsd-clang
@${REINPLACE_CMD} -e 's|g++|clang|g' \
-e '/gcc-base-unix.conf/d' \
${WRKSRC}/mkspecs/freebsd-clang/qmake.conf
@${RM} -Rf ${WRKSRC}/mkspecs/freebsd-g++46
post-build:
# Complete configure stage to generate *.pri files.
@cd ${WRKSRC} && \
${SETENV} CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
# Cleanup qmodule.pri to make it module agnostic.
@${REINPLACE_CMD} -En -e '/^(CONFIG|QT_BUILD_PARTS|.*_DIR) / p' \
${WRKSRC}/mkspecs/qmodule.pri
.include <bsd.port.post.mk>
--- ./configure.orig 2013-10-22 01:49:15.000000000 -0700
+++ ./configure 2013-11-04 07:40:28.945418565 -0800
@@ -4194,11 +4194,11 @@
fi
echo "QMAKESPEC = $adjqmakespec" >> "$mkfile"
echo "QT_VERSION = $QT_VERSION" >> "$mkfile"
- echo "EXTRA_CFLAGS = $EXTRA_CFLAGS" >> "$mkfile"
- echo "EXTRA_CXXFLAGS = $EXTRA_CXXFLAGS" >> "$mkfile"
+ echo "EXTRA_CFLAGS = $EXTRA_CFLAGS $CFLAGS" >> "$mkfile"
+ echo "EXTRA_CXXFLAGS = $EXTRA_CXXFLAGS $CXXFLAGS" >> "$mkfile"
echo "QTOBJS =" $EXTRA_OBJS >> "$mkfile"
echo "QTSRCS =" $EXTRA_SRCS >> "$mkfile"
- echo "LFLAGS = $EXTRA_LFLAGS" >> "$mkfile"
+ echo "LFLAGS = $EXTRA_LFLAGS $LDFLAGS" >> "$mkfile"
echo "EXEEXT = $EXEEXT" >> "$mkfile"
echo "RM_F = rm -f" >> "$mkfile"
echo "RM_RF = rm -rf" >> "$mkfile"
@@ -4214,6 +4214,7 @@
rm "$mkfile.tmp"
fi
done
+ exit 0
(cd "$outpath/qmake"; "$MAKE") || exit 2
fi # Build qmake
--- ./mkspecs/common/clang-unix.conf.orig 2013-12-05 17:44:20.215196720 +0000
+++ ./mkspecs/common/clang-unix.conf 2013-12-05 17:47:19.015202020 +0000
@@ -0,0 +1,15 @@
+#
+# Qmake configuration for the Clang compiler on *nix-systems
+#
+# Before making changes to this file, please read the comment in
+# gcc-base.conf, to make sure the change goes in the right place.
+#
+# To verify that your change has the desired effect on the final configuration
+# you can use the manual test in tests/manual/mkspecs.
+#
+
+include(gcc-base-unix.conf)
+include(clang.conf)
+
+QMAKE_LFLAGS_RELEASE += -Wl,-O1
+QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined
--- ./mkspecs/common/freebsd.conf.orig 2013-12-05 17:36:29.064198097 +0000
+++ ./mkspecs/common/freebsd.conf 2013-12-05 17:38:34.413200492 +0000
@@ -0,0 +1,38 @@
+#
+# qmake configuration for FreeBSD
+#
+
+MAKEFILE_GENERATOR = UNIX
+QMAKE_PLATFORM = freebsd bsd
+
+QMAKE_CFLAGS_THREAD = -pthread -D_THREAD_SAFE
+
+QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
+
+# Addon software goes into /usr/local on the BSDs, by default we will look there
+QMAKE_INCDIR = $$[QT_INSTALL_HEADERS] /usr/local/include
+QMAKE_LIBDIR = $$[QT_INSTALL_LIBS] /usr/local/lib
+QMAKE_INCDIR_X11 = /usr/local/include
+QMAKE_LIBDIR_X11 = /usr/local/lib
+QMAKE_INCDIR_OPENGL = /usr/local/include
+QMAKE_LIBDIR_OPENGL = /usr/local/lib
+
+QMAKE_LFLAGS_THREAD = -pthread
+
+QMAKE_LIBS =
+QMAKE_LIBS_DYNLOAD =
+QMAKE_LIBS_X11 = -lXext -lX11 -lm
+QMAKE_LIBS_OPENGL = -lGL
+QMAKE_LIBS_THREAD =
+
+QMAKE_AR = ar cqs
+QMAKE_OBJCOPY = objcopy
+QMAKE_NM = nm -P
+QMAKE_RANLIB =
+
+QMAKE_STRIP = strip
+QMAKE_STRIPFLAGS_LIB += --strip-unneeded
+QMAKE_INSTALL_FILE = install -m 644 -p
+QMAKE_INSTALL_PROGRAM = install -m 755 -p
+
+include(unix.conf)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment