2008-08-04 23:30:38 +00:00
|
|
|
#-*- mode: Makefile; tab-width: 4; -*-
|
|
|
|
# ex:ts=4
|
|
|
|
|
|
|
|
# QT_NONSTANDARD - Suppress modification of configure and make environment.
|
|
|
|
# QT_DIST - Package being built is part of the Qt distribution.
|
|
|
|
|
2007-07-16 10:12:15 +00:00
|
|
|
.if !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include)
|
|
|
|
Qt_Include_MAINTAINER= kde@freebsd.org
|
|
|
|
Qt_Pre_Include= bsd.qt.mk
|
|
|
|
|
|
|
|
.if !defined(QT_NONSTANDARD)
|
2008-08-04 23:30:38 +00:00
|
|
|
CONFIGURE_ARGS+=--with-qt-includes=${QT_INCDIR} \
|
|
|
|
--with-qt-libraries=${QT_LIBDIR} \
|
2007-07-16 10:12:15 +00:00
|
|
|
--with-extra-libs=${LOCALBASE}/lib \
|
|
|
|
--with-extra-includes=${LOCALBASE}/include
|
|
|
|
CONFIGURE_ENV+= MOC="${MOC}" UIC="${UIC}" CPPFLAGS="${CPPFLAGS} ${QTCPPFLAGS}" LIBS="${QTCFGLIBS}" \
|
|
|
|
QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}" QTDIR="${QT_PREFIX}"
|
|
|
|
MAKE_ENV+= QMAKESPEC="${QMAKESPEC}"
|
|
|
|
.endif # !defined(QT_NONSTANDARD)
|
|
|
|
|
|
|
|
.if defined(QT_DIST)
|
|
|
|
#CONFLICTS+= Currently there are no conflicts \o/
|
2008-08-04 23:30:38 +00:00
|
|
|
|
2009-08-04 20:04:38 +00:00
|
|
|
CONFIGURE_ARGS+=-fast -platform ${QMAKESPEC} \
|
2008-08-04 23:30:38 +00:00
|
|
|
-L${PREFIX}/${QT_LIBDIR_REL} \
|
|
|
|
-qt-gif -system-libjpeg -system-libpng \
|
2007-07-16 10:12:15 +00:00
|
|
|
-system-libmng -system-libtiff -system-zlib \
|
2009-08-04 20:04:38 +00:00
|
|
|
-opensource -confirm-license \
|
|
|
|
-no-pch \
|
2008-08-04 23:30:38 +00:00
|
|
|
-prefix ${PREFIX} \
|
|
|
|
-bindir ${PREFIX}/bin \
|
|
|
|
-libdir ${PREFIX}/${QT_LIBDIR_REL} \
|
|
|
|
-docdir ${PREFIX}/share/doc/qt4 \
|
|
|
|
-headerdir ${PREFIX}/${QT_INCDIR_REL} \
|
2009-02-14 22:58:55 +00:00
|
|
|
-plugindir ${PREFIX}/${QT_PLUGINDIR_REL} \
|
2008-08-04 23:30:38 +00:00
|
|
|
-datadir ${PREFIX}/share/qt4 \
|
|
|
|
-translationdir ${PREFIX}/share/qt4/translations \
|
|
|
|
-sysconfdir ${PREFIX}/etc/xdg \
|
|
|
|
-examplesdir ${PREFIX}/share/examples/qt4/examples \
|
|
|
|
-demosdir ${PREFIX}/share/examples/qt4/demos
|
|
|
|
|
2007-07-16 10:12:15 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
2008-08-04 23:30:38 +00:00
|
|
|
CONFIGURE_ARGS+=-no-mmx -no-3dnow -no-sse -no-sse2
|
2007-07-16 10:12:15 +00:00
|
|
|
.endif #defined(PACKAGE_BUILDING)
|
|
|
|
|
2009-08-04 20:04:38 +00:00
|
|
|
# .if defined(PORTNAME) && ${PORTNAME} != "xmlpatterns"
|
|
|
|
# CONFIGURE_ARGS+=-no-exceptions
|
|
|
|
# .endif
|
2008-08-04 23:30:38 +00:00
|
|
|
|
|
|
|
.if defined(WANT_QT_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=-debug
|
2007-08-02 22:37:40 +00:00
|
|
|
PLIST_SUB+= DEBUG=""
|
2008-08-04 23:30:38 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=-release -no-separate-debug-info
|
|
|
|
PLIST_SUB+= DEBUG="@comment "
|
2007-08-02 22:37:40 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WANT_QT_VERBOSE_CONFIGURE)
|
2008-08-04 23:30:38 +00:00
|
|
|
CONFIGURE_ARGS+=-verbose
|
2007-07-16 10:12:15 +00:00
|
|
|
.endif
|
|
|
|
.endif #defined(QT_DIST)
|
|
|
|
|
2008-08-04 23:30:38 +00:00
|
|
|
QT_INCDIR_REL= include/qt4
|
|
|
|
QT_LIBDIR_REL= lib/qt4
|
2009-02-14 22:58:55 +00:00
|
|
|
QT_PLUGINDIR_REL= lib/qt4/plugins
|
|
|
|
|
|
|
|
PLIST_SUB+= QT_INCDIR_REL=${QT_INCDIR_REL} \
|
|
|
|
QT_LIBDIR_REL=${QT_LIBDIR_REL} \
|
|
|
|
QT_PLUGINDIR_REL=${QT_PLUGINDIR_REL}
|
2008-08-04 23:30:38 +00:00
|
|
|
|
2007-07-16 10:12:15 +00:00
|
|
|
QT_PREFIX?= ${LOCALBASE}
|
2008-08-04 23:30:38 +00:00
|
|
|
QT_INCDIR?= ${QT_PREFIX}/${QT_INCDIR_REL}
|
|
|
|
QT_LIBDIR?= ${QT_PREFIX}/${QT_LIBDIR_REL}
|
2009-02-14 22:58:55 +00:00
|
|
|
QT_PLUGINDIR?= ${QT_PREFIX}/${QT_PLUGINDIR_REL}
|
2007-07-16 10:12:15 +00:00
|
|
|
MOC?= ${QT_PREFIX}/bin/moc-qt4
|
|
|
|
UIC?= ${QT_PREFIX}/bin/uic-qt4
|
|
|
|
QMAKE?= ${QT_PREFIX}/bin/qmake-qt4
|
|
|
|
QMAKESPEC?= ${QT_PREFIX}/share/qt4/mkspecs/freebsd-g++
|
2007-08-03 19:11:00 +00:00
|
|
|
QMAKEFLAGS+= QMAKE_CC="${CC}" QMAKE_CXX="${CXX}" QMAKE_LINK_SHLIB="${CXX}" \
|
|
|
|
QMAKE_LINK="${CXX}" QMAKE_CFLAGS="${CFLAGS}" \
|
|
|
|
QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
QMAKE_CFLAGS_THREAD="${PTHREAD_CFLAGS}" \
|
|
|
|
QMAKE_LFLAGS_THREAD="${PTHREAD_LIBS}"
|
2007-07-16 10:12:15 +00:00
|
|
|
|
2007-07-27 10:31:45 +00:00
|
|
|
.if ${OSVERSION} < 700042 && ${ARCH} == "amd64"
|
|
|
|
QTCPPFLAGS?= -fno-gcse
|
|
|
|
.else
|
2007-07-16 10:12:15 +00:00
|
|
|
QTCPPFLAGS?=
|
2007-07-27 10:31:45 +00:00
|
|
|
.endif
|
2007-07-16 10:12:15 +00:00
|
|
|
QTCGFLIBS?=
|
2007-07-27 10:31:45 +00:00
|
|
|
|
2007-07-16 10:12:15 +00:00
|
|
|
.endif # !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include)
|
|
|
|
|
2008-08-04 23:30:38 +00:00
|
|
|
#
|
|
|
|
# QT4 version
|
|
|
|
# Don't forget to update ${PORTSDIR}/devel/qt4/files/configure !
|
|
|
|
#
|
2009-08-04 20:04:38 +00:00
|
|
|
QT4_VERSION?= 4.5.2
|
2007-07-16 10:12:15 +00:00
|
|
|
|
2008-08-04 23:30:38 +00:00
|
|
|
_QT_COMPONENTS_ALL= accessible assistant assistant-adp assistantclient \
|
|
|
|
clucene codecs-cn codecs-jp codecs-kr codecs-tw corelib \
|
|
|
|
dbus designer doc help help-tools gui iconengines imageformats \
|
The KDE FreeBSD team is proud to announce the release of KDE 4.2.0
for FreeBSD. The official KDE 4.2.0 (Codename: "The Answer") release
notes can be found at:
http://kde.org/announcements/4.2/index.php.
New supported languages include Arabic, Icelandic, Basque,
Hebrew, Romanian, Tajik and several Indian languages (Bengali India,
Gujarati, Kannada, Maithili, Marathi) indicating a rise in popularity in
this part of Asia.
New ports for KDE 4.2.0:
arabic/kde4-l10n Arabic
hebrew/kde4-l10n Hebrew
misc/kde4-l10n-bn_IN Bengali (India)
misc/kde4-l10n-eu Basque
misc/kde4-l10n-gu Gujarati
misc/kde4-l10n-is Icelandic
misc/kde4-l10n-kn Kannada
misc/kde4-l10n-mai Maithili
misc/kde4-l10n-mr Marathi
misc/kde4-l10n-ro Romanian
misc/kde4-l10n-tg Tajik
math/eigen2 Lightweight library for vector and matrix math
graphics/kipi-plugins-kde4 KDE4 kipi graphics plugins
sysutils/policykit-kde PolicyKit manager for KDE
Unfortunately FreeBSD 6.4 support is dropped.
We'd like to say thanks for feedback and help to:
Matt Tosto, Kris Moore, stickibit, David Johnson, Markus Brueffer,
David Naylor, Thomas Schlesinger, Warren Liddell, Thomas Abthorpe,
Diego Depaoli, Mats Andreassen, portmgr for exp-run and repocopies.
2009-02-08 20:23:45 +00:00
|
|
|
inputmethods linguist l10n makeqpf moc network opengl \
|
2008-08-04 23:30:38 +00:00
|
|
|
pixeltool porting phonon phonon-gst qdbusviewer \
|
2009-08-04 20:04:38 +00:00
|
|
|
qmake qt3support qtconfig qtestlib qvfb rcc script scripttools \
|
2008-08-04 23:30:38 +00:00
|
|
|
sql svg uic uic3 webkit xml xmlpatterns xmlpatterns-tool
|
2007-07-16 10:12:15 +00:00
|
|
|
|
2008-08-04 23:30:38 +00:00
|
|
|
accessible_DEPENDS= accessibility/qt4-accessible
|
2007-07-16 10:12:15 +00:00
|
|
|
assistant_DEPENDS= devel/qt4-assistant
|
2008-08-04 23:30:38 +00:00
|
|
|
assistant-adp_DEPENDS= devel/qt4-assistant-adp
|
2007-07-16 10:12:15 +00:00
|
|
|
assistantclient_DEPENDS=devel/qt4-libqtassistantclient
|
|
|
|
assistantclient_NAME= libQtAssistantClient
|
2008-08-04 23:30:38 +00:00
|
|
|
clucene_DEPENDS= textproc/qt4-clucene
|
2007-07-16 10:12:15 +00:00
|
|
|
codecs-cn_DEPENDS= chinese/qt4-codecs-cn
|
|
|
|
codecs-jp_DEPENDS= japanese/qt4-codecs-jp
|
|
|
|
codecs-kr_DEPENDS= korean/qt4-codecs-kr
|
|
|
|
codecs-tw_DEPENDS= chinese/qt4-codecs-tw
|
|
|
|
corelib_DEPENDS= devel/qt4-corelib
|
|
|
|
dbus_DEPENDS= devel/dbus-qt4
|
|
|
|
designer_DEPENDS= devel/qt4-designer
|
|
|
|
doc_DEPENDS= misc/qt4-doc
|
|
|
|
gui_DEPENDS= x11-toolkits/qt4-gui
|
2008-08-04 23:30:38 +00:00
|
|
|
help_DEPENDS= devel/qt4-help
|
|
|
|
help-tools_DEPENDS= devel/qt4-help-tools
|
2007-07-16 10:12:15 +00:00
|
|
|
iconengines_DEPENDS= graphics/qt4-iconengines
|
|
|
|
imageformats_DEPENDS= graphics/qt4-imageformats
|
|
|
|
inputmethods_DEPENDS= x11/qt4-inputmethods
|
|
|
|
linguist_DEPENDS= devel/qt4-linguist
|
The KDE FreeBSD team is proud to announce the release of KDE 4.2.0
for FreeBSD. The official KDE 4.2.0 (Codename: "The Answer") release
notes can be found at:
http://kde.org/announcements/4.2/index.php.
New supported languages include Arabic, Icelandic, Basque,
Hebrew, Romanian, Tajik and several Indian languages (Bengali India,
Gujarati, Kannada, Maithili, Marathi) indicating a rise in popularity in
this part of Asia.
New ports for KDE 4.2.0:
arabic/kde4-l10n Arabic
hebrew/kde4-l10n Hebrew
misc/kde4-l10n-bn_IN Bengali (India)
misc/kde4-l10n-eu Basque
misc/kde4-l10n-gu Gujarati
misc/kde4-l10n-is Icelandic
misc/kde4-l10n-kn Kannada
misc/kde4-l10n-mai Maithili
misc/kde4-l10n-mr Marathi
misc/kde4-l10n-ro Romanian
misc/kde4-l10n-tg Tajik
math/eigen2 Lightweight library for vector and matrix math
graphics/kipi-plugins-kde4 KDE4 kipi graphics plugins
sysutils/policykit-kde PolicyKit manager for KDE
Unfortunately FreeBSD 6.4 support is dropped.
We'd like to say thanks for feedback and help to:
Matt Tosto, Kris Moore, stickibit, David Johnson, Markus Brueffer,
David Naylor, Thomas Schlesinger, Warren Liddell, Thomas Abthorpe,
Diego Depaoli, Mats Andreassen, portmgr for exp-run and repocopies.
2009-02-08 20:23:45 +00:00
|
|
|
l10n_DEPENDS= misc/qt4-l10n
|
2007-07-16 10:12:15 +00:00
|
|
|
makeqpf_DEPENDS= devel/qt4-makeqpf
|
|
|
|
moc_DEPENDS= devel/qt4-moc
|
|
|
|
network_DEPENDS= net/qt4-network
|
|
|
|
opengl_DEPENDS= x11/qt4-opengl
|
|
|
|
pixeltool_DEPENDS= graphics/qt4-pixeltool
|
2008-08-04 23:30:38 +00:00
|
|
|
phonon_DEPENDS= multimedia/qt4-phonon
|
|
|
|
phonon-gst_DEPENDS= multimedia/qt4-phonon-gst
|
2007-07-16 10:12:15 +00:00
|
|
|
porting_DEPENDS= devel/qt4-porting
|
|
|
|
qdbusviewer_DEPENDS= devel/qt4-qdbusviewer
|
|
|
|
qmake_DEPENDS= devel/qmake4
|
|
|
|
qt3support_DEPENDS= devel/qt4-qt3support
|
2008-08-04 23:30:38 +00:00
|
|
|
qtconfig_DEPENDS= misc/qt4-qtconfig
|
2007-07-16 10:12:15 +00:00
|
|
|
qtestlib_DEPENDS= devel/qt4-qtestlib
|
|
|
|
qvfb_DEPENDS= devel/qt4-qvfb
|
|
|
|
rcc_DEPENDS= devel/qt4-rcc
|
|
|
|
script_DEPENDS= devel/qt4-script
|
2009-08-04 20:04:38 +00:00
|
|
|
scripttools_DEPENDS= devel/qt4-scripttools
|
2007-07-16 10:12:15 +00:00
|
|
|
sql_DEPENDS= databases/qt4-sql
|
|
|
|
svg_DEPENDS= graphics/qt4-svg
|
|
|
|
uic_DEPENDS= devel/qt4-uic
|
|
|
|
uic3_DEPENDS= devel/qt4-uic3
|
2008-08-04 23:30:38 +00:00
|
|
|
webkit_DEPENDS= www/qt4-webkit
|
2007-07-16 10:12:15 +00:00
|
|
|
xml_DEPENDS= textproc/qt4-xml
|
2008-08-04 23:30:38 +00:00
|
|
|
xmlpatterns_DEPENDS= textproc/qt4-xmlpatterns
|
|
|
|
xmlpatterns-tool_DEPENDS= textproc/qt4-xmlpatterns-tool
|
2007-07-16 10:12:15 +00:00
|
|
|
|
|
|
|
.if defined(_POSTMKINCLUDED) && !defined(Qt_Post_Include)
|
|
|
|
Qt_Post_Include= bsd.qt.mk
|
|
|
|
|
2007-08-02 22:37:40 +00:00
|
|
|
.for component in ${_QT_COMPONENTS_ALL}
|
2009-08-04 20:04:38 +00:00
|
|
|
${component}_build_DEPENDS= ${${component}_DEPENDS}
|
|
|
|
${component}_run_DEPENDS= ${${component}_DEPENDS}
|
2007-08-02 22:37:40 +00:00
|
|
|
_QT_COMPONENTS_SUFFIXED+=${component} ${component}_build ${component}_run
|
|
|
|
.endfor
|
|
|
|
|
2007-07-16 10:12:15 +00:00
|
|
|
.if defined(QT_COMPONENTS)
|
|
|
|
.for ext in ${QT_COMPONENTS}
|
2007-08-02 22:37:40 +00:00
|
|
|
${ext}_QT4_PREFIX?= qt4-
|
|
|
|
${ext}_QT4_VERSION?= ${QT4_VERSION}
|
|
|
|
${ext}_NAME?= ${ext}
|
|
|
|
_${ext}= ${ext}
|
|
|
|
.if ${_QT_COMPONENTS_SUFFIXED:M${ext}}!= ""
|
|
|
|
.if ${_${ext}:M*_build}!= ""
|
|
|
|
BUILD_DEPENDS+= ${${ext}_QT4_PREFIX}${${ext}_NAME:S/_build//}>=${${ext}_QT4_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}
|
|
|
|
.elif ${_${ext}:M*_run}!= ""
|
|
|
|
RUN_DEPENDS+= ${${ext}_QT4_PREFIX}${${ext}_NAME:S/_run//}>=${${ext}_QT4_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${${ext}_QT4_PREFIX}${${ext}_NAME}>=${${ext}_QT4_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}
|
|
|
|
RUN_DEPENDS+= ${${ext}_QT4_PREFIX}${${ext}_NAME}>=${${ext}_QT4_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}
|
|
|
|
.endif
|
2007-07-16 10:12:15 +00:00
|
|
|
.else
|
|
|
|
IGNORE= cannot install: unknown Qt4 component -- ${ext}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|