summaryrefslogtreecommitdiff
path: root/audio/py-sdl_mixer/Makefile
blob: 1a166490a730c4bb640b8318e382218d706cd160 (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
41
42
# New ports collection makefile for:	pysdl_mixer
# Date created:		2005-10-05
# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=	sdl_mixer
PORTVERSION=	0.0.3
CATEGORIES=	audio python
MASTER_SITES=	http://download.gna.org/pysdlmixer/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	pysdl_mixer-${PORTVERSION}

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Pysdl_mixer is a python interface to SDL's sdl_mixer

BUILD_DEPENDS=	pyrexc:${PORTSDIR}/devel/pyrex
LIB_DEPENDS=	openal.0:${PORTSDIR}/audio/openal

DIST_SUBDIR=	python
USE_SDL=	sdl mixer
USE_PYTHON=	yes
USE_PYDISTUTILS=yes
WRKSRC=		${WRKDIR}/pysdl_mixer-${PORTVERSION}
EXAMPLESDIR=	${PREFIX}/share/examples/py-sdl-mixer

post-patch:
	@${REINPLACE_CMD} -e 's,"SDL","SDL-1.1",g' ${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e 's,SDL/SDL,SDL11/SDL,g' ${WRKSRC}/sdl_mixer.c
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
		${WRKSRC}/setup.py

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>