mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
6076813926
- remove LIB_DEPENDS audio/id3lib - enable NOPORTDOCS option. PR: 106880 Submitted by: Li-Wen Hsu <lwhsu@lwhsu.org> Approved by: maintainer timeout
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# 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.11
|
|
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
|
|
|
|
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}
|
|
MANDIR= ${PREFIX}/man
|
|
|
|
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' \
|
|
-e 's,^mandir:=.*,mandir:=${MANDIR},g' \
|
|
${WRKSRC}/Makefile.in
|
|
.if defined(NOPORTDOCS)
|
|
${REINPLACE_CMD} -e 's,.*docdir.*,#,g' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|