1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/audio/py-musicbrainz/Makefile

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: py-musicbrainz
# Date created: 23 March 2003
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= musicbrainz
PORTVERSION= 2.1.5
PORTEPOCH= 1
CATEGORIES= audio python
MASTER_SITES= ftp://ftp.musicbrainz.org/pub/musicbrainz/ \
http://uk.musicbrainz.org/pub/musicbrainz/ \
http://ftp.osuosl.org/pub/musicbrainz/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= libmusicbrainz-${PORTVERSION}
MAINTAINER= bsdkaffee@gmail.com
COMMENT= MusicBrainz bindings for Python
LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
EXAMPLES= cd2trm.py cdid.py cdlookup.py fileinfolookup.py findartist.py \
findtrack.py generatetrm.py getalbum.py getcdtracklengths.py \
gettrm.py
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python-musicbrainz
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
DESCR= ${PORTSDIR}/audio/libmusicbrainz/pkg-descr
DISTINFO_FILE= ${PORTSDIR}/audio/libmusicbrainz/distinfo
PLIST_FILES= %%PYTHON_SITELIBDIR%%/musicbrainz.py \
%%PYTHON_SITELIBDIR%%/musicbrainz.pyc \
%%PYTHON_SITELIBDIR%%/musicbrainz.pyo
.ifndef(NOPORTDOCS)
PLIST_FILES+= ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
.endif
WRKSRC= ${WRKDIR}/libmusicbrainz-${PORTVERSION}/python
PORTSCOUT= limit:^2\.
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_SCRIPT} ${EXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>