- Update to version 0.4.1

- Remove INSTALLS_ICONS knob (not to be used for Qt-based programs)
- Rephrase COMMENT and TOOLKIT_DESC
- Fix a few whitespace issues

PR:	204440
This commit is contained in:
Alexey Dokuchaev 2015-11-19 13:37:41 +00:00
parent 0ead09c1b4
commit b97ff92587
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401948
4 changed files with 56 additions and 12 deletions

View file

@ -2,12 +2,12 @@
# $FreeBSD$
PORTNAME= qjackctl
PORTVERSION= 0.4.0
PORTVERSION= 0.4.1
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Qt Interface for the JACK Audio Connection Kit
COMMENT= Qt interface for JACK Audio Connection Kit
LICENSE= GPLv2
@ -16,12 +16,12 @@ LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
USES= gmake
QT_NONSTANDARD= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_ac_moc=${MOC} \
CONFIGURE_ENV= ac_cv_qmake=${QMAKE} \
ac_cv_path_ac_moc=${MOC} \
ac_cv_path_ac_uic=${UIC} \
ac_cv_path_ac_qmake=${QMAKE} \
ac_cv_path_ac_lupdate=${LUPDATE} \
ac_cv_path_ac_lrelease=${LRELEASE}
INSTALLS_ICONS= yes
ac_cv_path_ac_lrelease=${LRELEASE} \
ac_cv_path_ac_lupdate=${LUPDATE}
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= ALSA PORTAUDIO
@ -29,19 +29,22 @@ OPTIONS_SINGLE= TOOLKIT
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
OPTIONS_DEFAULT= QT4
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
TOOLKIT_DESC= Preferred Qt toolkit
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ENABLE= alsa_seq
PORTAUDIO_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio
PORTAUDIO_CONFIGURE_ENABLE= portaudio
QT4_USE= qt4=corelib,dbus,gui,xml \
qt4=linguisttools_build \
qt4=moc_build,qmake_build,rcc_build,uic_build
QT4_CONFIGURE_ENABLE= qt4
QT5_USE= qt5=core,dbus,gui,widgets,xml \
QT5_USE= qt5=core,dbus,gui,widgets,x11extras,xml \
qt5=buildtools_build,linguisttools_build,qmake_build
QT5_CXXFLAGS= -fPIC
QT5_CONFIGURE_ENABLE= qt5
TOOLKIT_DESC= Qt toolkit
post-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -o ${PORTNAME}.mak \

View file

@ -1,2 +1,2 @@
SHA256 (qjackctl-0.4.0.tar.gz) = 5b651cc5bd85986bcb36b32943e091c931ba229d58732c1724a200e03762485a
SIZE (qjackctl-0.4.0.tar.gz) = 500534
SHA256 (qjackctl-0.4.1.tar.gz) = 98024e1ea9f55ac16c290feda051d6494b2261e83f6a918f0fa583b509e2bfd1
SIZE (qjackctl-0.4.1.tar.gz) = 824293

View file

@ -0,0 +1,22 @@
--- src/qjackctl.cpp.orig 2015-10-28 15:24:52 UTC
+++ src/qjackctl.cpp
@@ -30,6 +30,10 @@
#include <QSessionManager>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#if QT_VERSION < 0x040500
namespace Qt {
const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000);
@@ -216,7 +220,7 @@ public:
sUnique += sServerName;
}
char szHostName[255];
- if (::gethostname(szHostName, sizeof(szHostName)) == 0) {
+ if (gethostname(szHostName, sizeof(szHostName)) == 0) {
sUnique += '@';
sUnique += szHostName;
}

View file

@ -0,0 +1,19 @@
--- src/qjackctlInterfaceComboBox.cpp.orig 2015-10-28 15:24:52 UTC
+++ src/qjackctlInterfaceComboBox.cpp
@@ -191,9 +191,16 @@ private:
// Fill HostApi info...
const PaHostApiIndex iNumHostApi = Pa_GetHostApiCount();
+#ifdef __clang__
+ QString *hostNames = new QString[iNumHostApi];
+#else
QString hostNames[iNumHostApi];
+#endif
for (PaHostApiIndex i = 0; i < iNumHostApi; ++i)
hostNames[i] = QString(Pa_GetHostApiInfo(i)->name);
+#ifdef __clang__
+ delete [] hostNames;
+#endif
// Fill device info...
const PaDeviceIndex iNumDevice = Pa_GetDeviceCount();