blob: 44a723fa3eea5019410e5c452981dd235c0f76ea (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# New ports collection makefile for: musescore
# Date created: 28 Jul 2011
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= musescore
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/mscore/mscore/MuseScore-${PORTVERSION}
DISTNAME= mscore-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free music composition & notation software
LIB_DEPENDS= asound.2:${PORTSDIR}/audio/alsa-lib \
sndfile.1:${PORTSDIR}/audio/libsndfile
BUILD_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator
RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator
USE_BZIP2= yes
USE_CMAKE= yes
USE_QT_VER= 4
QT_COMPONENTS= corelib gui network svg xml script scripttools designer webkit \
qmake_build moc_build uic_build linguist_build rcc_build
MAKE_JOBS_SAFE= yes
CMAKE_SOURCE_PATH= ${WRKSRC}/mscore
CMAKE_OUTSOURCE= yes
ALL_TARGET= lrelease all
DATADIR= ${PREFIX}/share/mscore-${PORTVERSION}
# Couldn't get portaudio to work, so disable it by default
OPTIONS= JACK "Jack support" on \
PORTAUDIO "Portaudio support" off
.include <bsd.port.options.mk>
.if ${OSVERSION} < 802502 || ( ${OSVERSION} >= 900000 && ${OSVERSION} < 900027 )
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-log2
.endif
.if !defined(WITHOUT_JACK)
CMAKE_ARGS+= -DBUILD_JACK:BOOL=ON
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
.else
CMAKE_ARGS+= -DBUILD_JACK:BOOL=OFF
.endif
.if !defined(WITHOUT_PORTAUDIO)
LIB_DEPENDS+= portaudio.2:${PORTSDIR}/audio/portaudio2
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|; \
s|-lfreetype|${LOCALBASE}/lib/libfreetype.so|' \
${WRKSRC}/mscore/mscore/CMakeLists.txt
@${FIND} ${WRKSRC} -name CMakeLists.txt -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e \
'/set(CMAKE_CXX_FLAGS/ { s|-g||; /$${CMAKE_CXX_FLAGS}/ ! s|"|&$${CMAKE_CXX_FLAGS} |; }'
.if defined(WITHOUT_PORTAUDIO)
@${REINPLACE_CMD} -e '/PKGCONFIG.*portaudio/ d' ${WRKSRC}/mscore/CMakeLists.txt
.endif
post-install:
@${ECHO}; ${CAT} ${PKGMESSAGE}; ${ECHO}
.include <bsd.port.mk>
|