2003-03-24 03:47:16 +01:00
|
|
|
# New ports collection makefile for: py-musicbrainz
|
|
|
|
# Date created: 23 March 2003
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= musicbrainz
|
2005-09-13 19:27:10 +02:00
|
|
|
PORTVERSION= 1.0.b3
|
2004-08-30 21:01:58 +02:00
|
|
|
PORTEPOCH= 1
|
2003-03-24 03:47:16 +01:00
|
|
|
CATEGORIES= audio python
|
2005-09-13 19:27:10 +02:00
|
|
|
MASTER_SITES= ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/
|
2003-03-24 03:47:16 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2005-09-13 19:27:10 +02:00
|
|
|
DISTNAME= python-${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}-picard
|
2003-03-24 03:47:16 +01:00
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-24 03:47:16 +01:00
|
|
|
COMMENT= MusicBrainz bindings for Python
|
|
|
|
|
2004-08-30 21:01:58 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2004-03-17 06:21:35 +01:00
|
|
|
LIB_DEPENDS= musicbrainz.4:${LIBMUSICBRAINZ_PORTDIR}
|
2003-03-24 03:47:16 +01:00
|
|
|
|
|
|
|
LIBMUSICBRAINZ_PORTDIR= ${PORTSDIR}/audio/libmusicbrainz
|
2004-08-30 21:01:58 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
EXAMPLES= cd2trm.py findartist.py getcdtracklengths.py cdid.py \
|
|
|
|
findtrack.py gettrm.py cdlookup.py generatetrm.py \
|
|
|
|
fileinfolookup.py getalbum.py
|
2003-03-24 03:47:16 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
|
2004-08-30 21:01:58 +02:00
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/musicbrainz.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/musicbrainz.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/musicbrainz.pyo
|
2004-03-22 01:49:24 +01:00
|
|
|
|
2004-08-30 21:01:58 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
PLIST_FILES+= ${EXAMPLES:S/^/%%EXAMPLESDIR%%\//}
|
|
|
|
PLIST_DIRS= %%EXAMPLESDIR%%
|
|
|
|
.endif
|
2003-03-24 03:47:16 +01:00
|
|
|
|
2004-08-30 21:01:58 +02:00
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for i in ${EXAMPLES}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/${i} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2003-03-24 03:47:16 +01:00
|
|
|
|
2004-08-30 21:01:58 +02:00
|
|
|
.include <bsd.port.mk>
|