Changeset View
Changeset View
Standalone View
Standalone View
misc/qtchooser/Makefile
- This file was added.
| Property | Old Value | New Value |
|---|---|---|
| svn:eol-style | null | native \ No newline at end of property |
| svn:keywords | null | FreeBSD=%H \ No newline at end of property |
| svn:mime-type | null | text/plain \ No newline at end of property |
| # $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} | |||||
| # Prepare the 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). | |||||
| # TODO: Always make sure the following is in sync with bsd.qt.mk for now. | |||||
| SUB_FILES= qt4.conf qt5.conf | |||||
| SUB_LIST= QT4_BINDIR_ABS="${PREFIX}/lib/qt4/bin" \ | |||||
| QT4_LIBDIR_ABS="${PREFIX}/lib/qt4" \ | |||||
| QT5_BINDIR_ABS="${PREFIX}/lib/qt5/bin" \ | |||||
| QT5_LIBDIR_ABS="${PREFIX}/lib/qt5" | |||||
| QT_QTCHOOSERDIR=${PREFIX}/etc/xdg/qtchooser | |||||
| post-patch: | |||||
| @${REINPLACE_CMD} -e 's,/etc/xdg,${LOCALBASE}/etc/xdg,' \ | |||||
| ${WRKSRC}/src/${PORTNAME}/main.cpp | |||||
| @${REINPLACE_CMD} -e 's,share/man,man,' \ | |||||
| ${WRKSRC}/Makefile | |||||
| post-install: | |||||
| # Install qtchooser config file | |||||
| ${MKDIR} ${STAGEDIR}${QT_QTCHOOSERDIR} | |||||
| ${INSTALL_DATA} ${WRKDIR}/qt4.conf ${STAGEDIR}${QT_QTCHOOSERDIR} | |||||
| ${INSTALL_DATA} ${WRKDIR}/qt5.conf ${STAGEDIR}${QT_QTCHOOSERDIR} | |||||
| .include <bsd.port.mk> | |||||