aboutsummaryrefslogtreecommitdiff
path: root/audio/albumart/Makefile
blob: 0af06106837def6efd7db257d545fdb91a1db59d (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
# New ports collection makefile for: albumart
# Date created:		27 Aug 2008
# Whom:			Timothy Bourke <timbob@bigpond.com>
#
# $FreeBSD$
#

PORTNAME=	albumart
PORTVERSION=	1.6.6
PORTREVISION=	3
CATEGORIES=	audio python
MASTER_SITES=	http://muksuluuri.ath.cx/~skyostil/projects/albumart/dist/

MAINTAINER=	timbob@bigpond.com
COMMENT=	GUI application for downloading album cover art

USE_GMAKE=	yes
USE_PYTHON=	yes
USE_PYDISTUTILS=yes

RUN_DEPENDS+=	py*-qt>=3.1:${PORTSDIR}/x11-toolkits/py-qt
RUN_DEPENDS+=	py*-imaging>=1.1:${PORTSDIR}/graphics/py-imaging

post-patch:
	${CP} ${WRKSRC}/bin/albumart-qt ${WRKSRC}/bin/albumart-qt.orig
	echo "#!${PYTHON_CMD}" > ${WRKSRC}/bin/albumart-qt
	${TAIL} -n +2 ${WRKSRC}/bin/albumart-qt.orig >> ${WRKSRC}/bin/albumart-qt
	${CP} ${WRKSRC}/setup.py ${WRKSRC}/setup.py.orig
	${SED} -e "s/os.system(\"make\")/os.system(\"${GMAKE}\")/" \
	    ${WRKSRC}/setup.py.orig > ${WRKSRC}/setup.py

.include <bsd.port.mk>