aboutsummaryrefslogtreecommitdiffstats
path: root/audio/py-eyed3/Makefile
blob: d99ba081e1bbcadc1aa198e47f0ee42300e359d4 (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
# New ports collection makefile for:    py-eyed3
# Date created:     22 August 2003
# Whom:         Hye-Shik Chang <perky@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   eyed3
PORTVERSION=    0.6.10
CATEGORIES= audio python
MASTER_SITES=   http://eyed3.nicfit.net/releases/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   eyeD3-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org
COMMENT=    Python module for processing ID3 tags

LIB_DEPENDS=    id3:${PORTSDIR}/audio/id3lib

USE_PYTHON= 2.4-
USE_PYTHON_PREFIX=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  PYTHON="${PYTHON_CMD}"
MAKE_ENV=   SETUP_ARGS_BUILD="${PYDISTUTILS_BUILDARGS}" \
        SETUP_ARGS_INSTALL="${PYDISTUTILS_INSTALLARGS}"
DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}

MAN1=       eyeD3.1
MANCOMPRESSED=  yes

post-patch:
    ${REINPLACE_CMD} -e 's,PYTHON="",,g' -e 's,/usr/local,${LOCALBASE},g' \
        -e 's,2\\\.\[23456789\]\\\.,2.[23456789],g' \
        ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's,\(setup.py build\),\1 $${SETUP_ARGS_BUILD},g' \
        -e 's,\(setup.py install\),\1 $${SETUP_ARGS_INSTALL} ,g' \
        -e 's,^docdir:=.*,docdir:=${DOCSDIR},g' \
        ${WRKSRC}/Makefile.in

.include <bsd.port.mk>