aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/qtcurve/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-themes/qtcurve/Makefile')
-rw-r--r--x11-themes/qtcurve/Makefile62
1 files changed, 41 insertions, 21 deletions
diff --git a/x11-themes/qtcurve/Makefile b/x11-themes/qtcurve/Makefile
index b590010faad5..2bee5251dae2 100644
--- a/x11-themes/qtcurve/Makefile
+++ b/x11-themes/qtcurve/Makefile
@@ -1,8 +1,8 @@
# $FreeBSD$
PORTNAME= qtcurve
-PORTVERSION= 1.8.18
-PORTREVISION= 4
+DISTVERSION= 1.9.0-rc1
+PORTREVISION?= 0
CATEGORIES= x11-themes
MAINTAINER= jhale@FreeBSD.org
@@ -13,25 +13,30 @@ USES= metaport
# There is no NO_PATCH
PATCHDIR= ${MASTERDIR}/none
-OPTIONS_DEFINE= GTK2 KDE4 QT4 QT5
-OPTIONS_DEFAULT:= ${OPTIONS_DEFINE}
+OPTIONS_RADIO= QT5
+OPTIONS_RADIO_QT5= KF5 QT5
+OPTIONS_DEFINE= GTK2 KDE4 QT4
+OPTIONS_DEFAULT= GTK2 KDE4 QT4 QT5
-GTK2_RUN_DEPENDS= gtk2-qtcurve-theme>=1.8.18:x11-themes/qtcurve-gtk2
-KDE4_RUN_DEPENDS= kde4-style-qtcurve>=1.8.18:x11-themes/qtcurve-kde4
-QT4_RUN_DEPENDS= qt4-style-qtcurve>=1.8.18:x11-themes/qtcurve-qt4
-QT5_RUN_DEPENDS= qt5-style-qtcurve>=1.8.18:x11-themes/qtcurve-qt5
+GTK2_RUN_DEPENDS= gtk2-qtcurve-theme>=${PORTVERSION}:x11-themes/qtcurve-gtk2
+KDE4_RUN_DEPENDS= kde4-style-qtcurve>=${PORTVERSION}:x11-themes/qtcurve-kde4
+KF5_DESC= KDE Frameworks 5 + Qt 5 toolkit support
+KF5_RUN_DEPENDS= kf5-style-qtcurve>=${PORTVERSION}:x11-themes/qtcurve-kf5
+QT4_RUN_DEPENDS= qt4-style-qtcurve>=${PORTVERSION}:x11-themes/qtcurve-qt4
+QT5_RUN_DEPENDS= qt5-style-qtcurve>=${PORTVERSION}:x11-themes/qtcurve-qt5
.else # !defined(QTCURVE_SLAVE)
-LICENSE= LGPL21
+LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
-GH_ACCOUNT= QtCurve
+GH_ACCOUNT= KDE
+GH_TAGNAME= a1ec5f8
USES= compiler:c++11-lib cmake pkgconfig
USE_XORG= x11 xcb
-.for i in gtk2 kde4 qt4 qt5
+.for i in gtk2 kde4 kf5 qt4 qt5
WITH_${i}= Off
.endfor
WITH_${QTCURVE_SLAVE}= On
@@ -39,7 +44,8 @@ WITH_${QTCURVE_SLAVE}= On
CMAKE_ARGS+= -DENABLE_GTK2=${WITH_gtk2} \
-DENABLE_QT4=${WITH_qt4} \
-DENABLE_QT5=${WITH_qt5} \
- -DQTC_QT4_ENABLE_KDE=${WITH_kde4}
+ -DQTC_QT4_ENABLE_KDE=${WITH_kde4} \
+ -DQTC_QT5_ENABLE_KDE=${WITH_kf5}
LDFLAGS+= -L${LOCALBASE}/lib
BUILD_WRKSRC= ${WRKSRC}/${QTCURVE_SLAVE}
@@ -51,11 +57,6 @@ PLIST= ${PKGDIR}/pkg-plist.${QTCURVE_SLAVE}
PKGNAMESUFFIX= -utils
USE_LDCONFIG= yes
BUILD_WRKSRC= ${WRKSRC}
-
-OPTIONS_DEFINE= NLS
-OPTIONS_SUB= yes
-NLS_USES= gettext-tools:build
-NLS_CMAKE_OFF= -DQTC_INSTALL_PO=Off
.else
LIB_DEPENDS+= libqtcurve-utils.so:x11-themes/qtcurve-utils
.endif
@@ -63,7 +64,7 @@ LIB_DEPENDS+= libqtcurve-utils.so:x11-themes/qtcurve-utils
.if ${QTCURVE_SLAVE} == "gtk2"
PKGNAMEPREFIX= gtk2-
PKGNAMESUFFIX= -theme
-USE_GNOME= gtk20 cairo pango
+USE_GNOME= cairo gdkpixbuf2 gtk20 pango
USE_LDCONFIG= yes
post-install:
@@ -76,22 +77,41 @@ WITH_qt4= On # required for KDE 4
PKGNAMEPREFIX= kde4-style-
USE_KDE= kdelibs workspace automoc4
USES+= kde:4
-USE_QT4= moc_build qmake_build rcc_build uic_build
+USE_QT4= corelib dbus gui svg moc_build qmake_build rcc_build uic_build
BUILD_WRKSRC= ${WRKSRC}/qt4
.endif
+.if ${QTCURVE_SLAVE} == "kf5"
+CONFLICTS_INSTALL= qt5-style-qtcurve
+WITH_qt5= On # required for KF5
+PKGNAMEPREFIX= kf5-style-
+USES+= kde:5
+USE_KDE= archive completion config configwidgets coreaddons \
+ ecm_build frameworkintegration guiaddons i18n iconthemes \
+ kdelibs4support kio widgetsaddons windowsystem xmlgui
+USE_QT5= core dbus gui printsupport svg widgets x11extras \
+ buildtools_build qmake_build
+BUILD_WRKSRC= ${WRKSRC}/qt5
+.endif
+
.if ${QTCURVE_SLAVE} == "qt4"
PKGNAMEPREFIX= qt4-style-
-USE_QT4= dbus gui svg moc_build qmake_build rcc_build uic_build
+USE_QT4= corelib dbus gui svg moc_build qmake_build rcc_build uic_build
PLIST_FILES= ${QT_PLUGINDIR_REL}/styles/qtcurve.so
.endif
.if ${QTCURVE_SLAVE} == "qt5"
+CONFLICTS_INSTALL= kf5-style-qtcurve
PKGNAMEPREFIX= qt5-style-
-USE_QT5= dbus gui svg widgets x11extras buildtools_build qmake_build
+USE_QT5= core dbus gui svg widgets x11extras \
+ buildtools_build qmake_build
PLIST_FILES= ${QT_PLUGINDIR_REL}/styles/qtcurve.so
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|bash|sh|' -e 's|\[\[|[|g' -e 's|\]\]|]|g' \
+ ${WRKSRC}/tools/gen-version.sh
+
.endif # !defined(QTCURVE_SLAVE)
.include <bsd.port.mk>