freebsd-ports/misc/qtchooser/Makefile
Tobias C. Berner f3c180c343 Update Qt5 to 5.7.1, and unify the Qt4 and Qt5 ports some more
* Update Qt5 to 5.7.1
* Move Qt4 binaries to lib/qt4/bin
* Move Qt5 libraries to lib/qt5/lib
  By moving the libraries we should finally be able to get rid of the inplace
  upgrade bug (see ports bugs 194088, 195105 and 198720):  when Qt5's libraries
  were lying in /usr/local/lib, which would often get added by pkgconfig to the
  linker paths via dependencies, the already installed libraries were linked
  against, instead of the ones that were being built. This forced us to make
  sure, that -L${WRKSRC}/lib was always coming before -L/usr/local/lib in the
  linker flags. With this change this should no longer be the case.
* Rename some ports to match the rest (foo-qtX -> qtX-foo)
* Depend on new port misc/qtchooser [see UPDATING & CHANGES]

There are several new Qt5 ports which all have been created by Marie Loise Nolden
<nolden@kde.org>. Thanks again.

PR:		216797
Exp-Run by:	antoine
Reviewed by:	rakuco, mat, groot_kde.org
Approved by:	rakuco (mentor)
Differential Revision:	https://reviews.freebsd.org/D9213
2017-02-18 19:48:05 +00:00

47 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= qtchooser
PORTVERSION= 39
DISTVERSIONSUFFIX= -g4717841
CATEGORIES= misc
MASTER_SITES= QT/official_releases/${PORTNAME}
DIST_SUBDIR= KDE/Qt/qtchooser
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt tool wrapper
LICENSE= GPLv3 LGPL21
LICENSE_COMB= dual
USES= gmake
DESTDIRNAME= INSTALL_ROOT
MAKE_ARGS= prefix=${PREFIX}
QT_QTCHOOSERDIR=${PREFIX}/etc/xdg/qtchooser
post-patch:
@${REINPLACE_CMD} -e 's,/etc/xdg,${LOCALBASE}/etc/xdg,' \
${WRKSRC}/src/${PORTNAME}/main.cpp
post-install:
# Install qtchooser config file. Note this is not optimal.
# -> we could install the qtchooser config files via devel/qmake[45].
# Unfortunately they will be missing for ports that only use say "rcc"
# without qmake.
# So it is easier to install the config files in qtchooser.
# -> As we cannot include bsd.qt.mk at the moment without specifying
# a version, we also do not have the variables needed to sub the variables
# properly (this will probably change with qt.mk).
# Always make sure the following is in sync with bsd.qt.mk for now.
${MKDIR} ${STAGEDIR}${QT_QTCHOOSERDIR}
.for qt_version in 4 5
${ECHO} ${PREFIX}/lib/qt${qt_version}/bin > ${STAGEDIR}${QT_QTCHOOSERDIR}/qt${qt_version}.conf
${ECHO} ${PREFIX}/lib/qt${qt_version} >> ${STAGEDIR}${QT_QTCHOOSERDIR}/qt${qt_version}.conf
.endfor
# Install man page.
${INSTALL_DATA} ${WRKSRC}/doc/qtchooser.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
# Create the default profile.
cd ${STAGEDIR}/${QT_QTCHOOSERDIR} && ${LN} -s qt5.conf default.conf
.include <bsd.port.mk>