freebsd-ports/audio/py-karaoke/Makefile
Niclas Zeising 92ea0d614b The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:

Xorg 7.7

Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities

Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.

PR:		ports/177942
Exp-run by:	miwi
Approved by:	portmgr (miwi)

Thanks to all who helped testing!
2013-05-25 14:37:02 +00:00

64 lines
1.7 KiB
Makefile

# Created by: Elias Mandouvalos <ocean@mail.gr>
# $FreeBSD$
PORTNAME= karaoke
PORTVERSION= 0.7.5
CATEGORIES= audio python
MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python karaoke application (Plays CD+G, MP3+G, OGG+G files)
LICENSE= LGPL21 # (or later)
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
aa:${PORTSDIR}/graphics/aalib
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game \
dejavu>0:${PORTSDIR}/x11-fonts/dejavu \
${PYNUMPY}
OPTIONS_DEFINE= MUTAGEN
MUTAGEN_DESC= Enable Mutagen support
USES= iconv
USE_ZIP= yes
USE_SDL= sdl
USE_XORG= x11 xau xcb xdmcp
USE_WX= 2.6+
WX_COMPS= python:lib
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
DATADIR= ${PREFIX}/share/py${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMUTAGEN}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.cfg
@${REINPLACE_CMD} -e \
'/if /s|==|=|' ${WRKSRC}/install/cdg2mpg
.for i in pykaraoke.desktop pykaraoke_mini.desktop
@${REINPLACE_CMD} -e \
'/^Encodings=/d ; \
/^Icon=/s|/usr/share/pykaraoke|${DATADIR}| ; \
/^MimeType=/s|audio/midi$$|audio/midi;| ; \
/^Categories=/s|Application;||' ${WRKSRC}/install/${i}
.endfor
post-install:
@${MKDIR} ${DATADIR}/fonts
.for i in DejaVuSans.ttf DejaVuSansCondensed-Bold.ttf DejaVuSansCondensed.ttf
@${LN} -sf ${LOCALBASE}/lib/X11/fonts/dejavu/${i} ${DATADIR}/fonts
.endfor
.include <bsd.port.mk>