mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
1961df2b62
Approved by: alexbl (mentor)
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# New ports collection makefile for: tunapie
|
|
# Date created: 2006-04-03
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tunapie
|
|
PORTVERSION= 1.3.2
|
|
CATEGORIES= multimedia audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Tuner for streaming internet radio and TV
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
|
|
streamripper:${PORTSDIR}/audio/streamripper \
|
|
xmms:${PORTSDIR}/multimedia/xmms
|
|
|
|
NO_BUILD= yes
|
|
USE_PYTHON= yes
|
|
USE_WX= 2.6
|
|
WX_COMPS= python:run
|
|
|
|
OPTIONS= ADULT "non-censored TV listings" off \
|
|
XINE "use xine instead of mplayer" off
|
|
|
|
MAN1= tunapie.1
|
|
PLIST_SUB+= DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/-rc4-3$/_rc4/}
|
|
|
|
FIND_FILES= -type f -and \( -name "install.sh" -or -name "*.py" \)
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && ${FIND} . ${FIND_FILES} -exec ${REINPLACE_CMD} \
|
|
-e 's|%%DATADIR%%|${DATADIR}|g'\
|
|
-e 's|%%DESKTOPDIR%%|${DESKTOPDIR}|g' \
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
-e 's|%%MANPREFIX%%|${MANPREFIX}|g' \
|
|
-e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
-e 's|%%VIDEOPLAYER%%|${VIDEOPLAYER}|g' \
|
|
-e 's|%%X11BASE%%|${X11BASE}|g' {} ";"
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR} ${DATADIR}/pixmaps
|
|
${MKDIR} ${DESKTOPDIR}
|
|
cd ${WRKSRC} && ./install.sh ${ADULT_TVLIST}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_ADULT)
|
|
ADULT_TVLIST= --adult
|
|
.endif
|
|
|
|
.if defined(WITH_XINE)
|
|
RUN_DEPENDS+= xine:${PORTSDIR}/multimedia/xine
|
|
VIDEOPLAYER= ${X11BASE}/bin/xine
|
|
.else
|
|
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
|
|
VIDEOPLAYER= ${LOCALBASE}/bin/mplayer
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|