blob: 38b61542bd239d3e076ca94229f05136cd5669d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= cadence
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.2
PORTREVISION= 4
CATEGORIES= audio
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= bf25db6ebdc6437fce5a60afd203fee169efd068.diff:-p1
MAINTAINER= yuri@FreeBSD.org
COMMENT= Collection of tools useful for audio production
WWW= https://kxstudio.linuxaudio.org/Applications:Cadence
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= jackit>0:audio/jack \
jack_capture:audio/jack-capture
USES= compiler:c++11-lang desktop-file-utils gmake localbase pkgconfig \
python:3.4+ pyqt:5 qt:5 shebangfix tar:bz2
SHEBANG_FILES= src/*.py
USE_QT= core gui widgets buildtools:build
USE_PYQT= pyqt5 sip
USE_GITHUB= yes
GH_ACCOUNT= falkTX
GH_PROJECT= Cadence
CXXFLAGS+= -DJACKBRIDGE_PROPER_CPP11_SUPPORT=yes
# Give the Makefile the proper versioned binaries of PyQt
BINARY_ALIAS= pyuic5=${LOCALBASE}/bin/pyuic5-${PYTHON_VER} \
pyrcc5=${LOCALBASE}/bin/pyrcc5-${PYTHON_VER}
.include <bsd.port.pre.mk>
post-patch:
@cd ${WRKSRC}/data && ${REINPLACE_CMD} ' \
s|#!/bin/bash|#!/bin/sh| ; \
s|exec $$PYTHON |exec ${PYTHON_CMD} | ; \
s|ps -f -u |ps -U |' \
cadence cadence-aloop-daemon cadence-jacksettings cadence-logs \
cadence-pulse2jack cadence-pulse2loopback cadence-render \
cadence-session-start catarina catia claudia claudia-launcher
${REINPLACE_CMD} -e 's|-mtune=generic||' ${WRKSRC}/c++/Makefile.mk
.if ! ${ARCH} == amd64 && ! ${ARCH} == i386
${REINPLACE_CMD} -e 's|-msse -mfpmath=sse||' ${WRKSRC}/c++/Makefile.mk
.endif
.include <bsd.port.post.mk>
|