mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
a5da770e67
Xorg is now looking in ${LOCALBASE}/share/fonts by default Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1)) Large cleanup on lots of font ports All fonts are now properly dynamically generating fonts.dir and fonts.scale instead of sometime overwriting existing ones) All fonts are generating fontconfig's cache Improve consistency in fonts ports
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# Created by: Elias Mandouvalos <ocean@mail.gr>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= karaoke
|
|
PORTVERSION= 0.7.5
|
|
PORTREVISION= 8
|
|
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= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
|
|
libaa.so:${PORTSDIR}/graphics/aalib
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game \
|
|
dejavu>0:${PORTSDIR}/x11-fonts/dejavu \
|
|
${PYNUMPY}
|
|
|
|
USES= desktop-file-utils iconv python:2 zip
|
|
USE_SDL= sdl
|
|
USE_XORG= x11 xau xcb xdmcp
|
|
USE_WX= 3.0+
|
|
WX_COMPS= python:lib
|
|
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
DATADIR= ${PREFIX}/share/py${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= MUTAGEN
|
|
|
|
MUTAGEN_DESC= Mutagen support
|
|
MUTAGEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
|
|
|
|
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} ${STAGEDIR}${DATADIR}/fonts
|
|
.for i in DejaVuSans.ttf DejaVuSansCondensed-Bold.ttf DejaVuSansCondensed.ttf
|
|
@${LN} -sf ${LOCALBASE}/share/fonts/dejavu/${i} \
|
|
${STAGEDIR}${DATADIR}/fonts
|
|
.endfor
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pycdgAux.so
|
|
|
|
.include <bsd.port.mk>
|