blob: ffade55e30dce7c140ad009d991cb3f546c75272 (
plain) (
blame)
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
|
# $FreeBSD$
PORTNAME= CsoundQt
DISTVERSION= 0.9.5
PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= yuri@FreeBSD.org
COMMENT= Csound frontend with editor, integrated help, widgets, other features
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/lgpl-2.1.txt
LIB_DEPENDS= libcsound64.so:audio/csound
USES= compiler:c++11-lib desktop-file-utils gl gmake qmake qt:5 shared-mime-info
USE_GITHUB= yes
USE_QT= concurrent core declarative gui network printsupport widgets xml buildtools_build
USE_GL= gl
QMAKE_ARGS= CONFIG+="CSOUND_API_INCLUDE_DIR=${LOCALBASE}/include/csound CSOUND_LIBRARY_DIR=${LOCALBASE}/lib build64" \
INSTALL_DIR=${PREFIX} SHARE_DIR=${PREFIX}/share \
qcs.pro
PLIST_FILES= bin/${PORTNAME}-d-cs6 \
bin/csoundqt \
share/applications/${PORTNAME}.desktop \
share/icons/hicolor/128x128/mimetypes/csound.png \
share/icons/hicolor/scalable/apps/qtcs.svg \
share/mime/packages/x-csound-csd.xml \
share/mime/packages/x-csound-orc.xml \
share/mime/packages/x-csound-sco.xml
OPTIONS_DEFINE= EXAMPLES
PORTEXAMPLES= *
post-patch:
@${REINPLACE_CMD} 's|Q_OS_LINUX|Q_OS_FREEBSD| ; s|/usr/|${LOCALBASE}/|' ${WRKSRC}/src/types.h
post-install:
@${MV} ${STAGEDIR}${DATADIR}/Examples ${STAGEDIR}${EXAMPLESDIR}
@${RMDIR} ${STAGEDIR}${DATADIR}
@${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/bin/${PORTNAME}-d-cs6
.include <bsd.port.mk>
|