mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
4942ce5a7d
- Add significantly better support in bsd.python.mk for working with Python Eggs and the easy_install system Tested by: pointyhat runs Approved by: pav (portmgr) Most work by: perky Thanks to: pav
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
# 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
|
|
PORTREVISION= 2
|
|
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
|
|
PYDISTUTILS_PKGNAME= pysdl_mixer
|
|
WRKSRC= ${WRKDIR}/pysdl_mixer-${PORTVERSION}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-sdl-mixer
|
|
|
|
post-patch:
|
|
@${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>
|