summaryrefslogtreecommitdiff
path: root/audio/py-music21/Makefile
blob: 103cfe6a5cfdd31d540db40d22b75faed065cd7b (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

PORTNAME=	music21
DISTVERSION=	6.7.1
CATEGORIES=	audio python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Toolkit for computer-aided musical analysis

LICENSE=	BSD3CLAUSE LGPL3
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}joblib>0:devel/py-joblib@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}jsonpickle>0:devel/py-jsonpickle@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}more-itertools>0:devel/py-more-itertools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}webcolors>0:graphics/py-webcolors@${PY_FLAVOR} \
		lilypond:print/lilypond \
		mscore:audio/musescore \
		xdg-open:devel/xdg-utils

USES=		python:3.5+
USE_PYTHON=	distutils autoplist

NO_ARCH=	yes

post-patch:
	@${REINPLACE_CMD} -e " \
		s|/usr/bin/lilypond|${LOCALBASE}/bin/lilypond|; \
		s|/usr/bin/mscore3|${LOCALBASE}/bin/mscore|; \
		s|/usr/bin/xdg-open|${LOCALBASE}/bin/xdg-open|" \
		${WRKSRC}/music21/environment.py

.include <bsd.port.mk>