freebsd-ports/x11-toolkits/qt5-widgets/Makefile
Raphael Kubo da Costa ccb0759749 Update Qt5 to 5.4.1.
This is probably the first time our Qt 5 ports are tracking the latest
upstream release :-)

There isn't much to report in this update, thanks to the effort spent in the
5.2->5.3 update: a lot of the work is just small plist and patch updates.
Thankfully, several patches have been upstreamed and are not needed on our
side anymore.

I would like to thank Alex Richardson <arichardson.kde@gmail.com> and Tobias
Berner <tcberner@gmail.com> for their help with the plist updates and
general testing.

PR:		198585
2015-03-18 09:37:42 +00:00

56 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= widgets
DISTVERSION= ${QT5_VERSION}
CATEGORIES= x11-toolkits
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt C++ widgets module
USE_QT5= core gui qmake_build buildtools_build
QT_DIST= base
USE_XORG= x11
HAS_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
MORE_WRKSRCS= src/tools/uic
QT_DEFINES= ACCESSIBILITY WIDGETS XSYNC
QT_CONFIG= accessibility accessibility-atspi-bridge xlib
OPTIONS_DEFINE= GTK2
GTK2_DESC= GTK+-based Qt theme
GTK2_USE= GNOME=gtk20
GTK2_CONFIGURE_ON= -gtkstyle
GTK2_CONFIGURE_OFF= -no-gtkstyle
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
QT_DEFINES+= STYLE_GTK
QT_CONFIG+= gtkstyle
.else
QT_DEFINES+= -STYLE_GTK
QT_CONFIG+= -gtkstyle
.endif
pre-build:
@cd ${WRKSRC}/src/tools/uic && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
.for d in ${MORE_WRKSRCS}
@cd ${WRKSRC}/${d} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET}
.endfor
${INSTALL_DATA} ${BUILD_WRKSRC}/dialogs/images/qtlogo-64.png \
${STAGEDIR}${PREFIX}/share/pixmaps/qt5logo.png
.include <bsd.port.mk>