Changeset View
Changeset View
Standalone View
Standalone View
devel/qbs/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= qbs | PORTNAME= qbs | ||||
PORTVERSION= 1.7.1 | PORTVERSION= 1.7.2 | ||||
PORTREVISION= 1 | |||||
DISTVERSIONPREFIX= src- | DISTVERSIONPREFIX= src- | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= QT/official_releases/${PORTNAME}/${PORTVERSION} | MASTER_SITES= QT/official_releases/${PORTNAME}/${PORTVERSION} | ||||
DIST_SUBDIR= KDE/Qt/qbs | DIST_SUBDIR= KDE/Qt/qbs | ||||
MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
COMMENT= Qt Build Suite | COMMENT= Qt Build Suite | ||||
LICENSE= GPLv3 LGPL21 | LICENSE= GPLv3 LGPL21 | ||||
LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
USES= compiler:c++11-lib qmake:outsource | USES= compiler:c++11-lib qmake:outsource | ||||
mat: Does it really need bash ? Or does it just have a /bin/bash shebang and would work just fine… | |||||
USE_GL= gl | USE_GL= gl | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_QT5= buildtools_build core concurrent gui network script testlib \ | USE_QT5= buildtools_build core concurrent gui network script testlib \ | ||||
widgets xml | widgets xml | ||||
QMAKE_SOURCE_PATH= ${WRKSRC}/qbs.pro | QMAKE_SOURCE_PATH= ${WRKSRC}/qbs.pro | ||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
DOCS_USE= QT5=help_build,qdoc_build,sql-sqlite3_build | DOCS_USE= QT5=help_build,qdoc_build,sql-sqlite3_build | ||||
OPTIONS_DEFAULT= ${OPTIONS_DEFINE} | OPTIONS_DEFAULT= ${OPTIONS_DEFINE} | ||||
ALL_TARGET= all | ALL_TARGET= all | ||||
INSTALL_TARGET= install | INSTALL_TARGET= install | ||||
DOCS_ALL_TARGET= docs | DOCS_ALL_TARGET= docs | ||||
DOCS_INSTALL_TARGET= install_docs | DOCS_INSTALL_TARGET= install_docs | ||||
PLIST_SUB= SHLIB_VERSION="${PORTVERSION}" | PLIST_SUB= SHLIB_VERSION="${PORTVERSION}" | ||||
# The file in question is not used on FreeBSD. To shut op stage-qa, | |||||
# just patch it to use /bin/sh. | |||||
post-patch: | |||||
${REINPLACE_CMD} -i '' 's|/bin/bash|/bin/sh|g' \ | |||||
${WRKSRC}/share/qbs/modules/bundle/update-specs.sh | |||||
pre-configure: | pre-configure: | ||||
# We piggyback on QMAKE_LIBDIR_FLAGS to make sure -L${WRKSRC}/lib is passed to | # We piggyback on QMAKE_LIBDIR_FLAGS to make sure -L${WRKSRC}/lib is passed to | ||||
# the linker before -L/usr/local/lib. By default, the opposite happens, which | # the linker before -L/usr/local/lib. By default, the opposite happens, which | ||||
# is a problem when a Qt port is being upgraded, since an existing library | # is a problem when a Qt port is being upgraded, since an existing library | ||||
# would end up being picked up instead of those built in ${WRKSRC}/lib. Since | # would end up being picked up instead of those built in ${WRKSRC}/lib. Since | ||||
# qmake appends the value of QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, we can use the | # qmake appends the value of QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, we can use the | ||||
# latter to get the linker path order right. qmake is smart enough to strip | # latter to get the linker path order right. qmake is smart enough to strip | ||||
# occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. | # occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. | ||||
# See QTBUG-40825 and ports bugs 194088, 195105 and 198720. | # See QTBUG-40825 and ports bugs 194088, 195105 and 198720. | ||||
${MKDIR} ${CONFIGURE_WRKSRC} | ${MKDIR} ${CONFIGURE_WRKSRC} | ||||
${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${CONFIGURE_WRKSRC}/lib' >> ${CONFIGURE_WRKSRC}/.qmake.cache | ${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${CONFIGURE_WRKSRC}/lib' >> ${CONFIGURE_WRKSRC}/.qmake.cache | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Done Inline ActionsTypo here: "shut op." Would probably read better as "silence." "Shut up" usually has a negative connotation. jhale: Typo here: "shut op." Would probably read better as "silence." "Shut up" usually has a negative… |
Does it really need bash ? Or does it just have a /bin/bash shebang and would work just fine with /bin/sh ?