mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
3be3e90f93
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
87 lines
2.4 KiB
Makefile
87 lines
2.4 KiB
Makefile
# Created by: Nicola Vitale <nivit@email.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tunapie
|
|
PORTVERSION= 2.1.18
|
|
PORTREVISION= 3
|
|
CATEGORIES= multimedia audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.1
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.r,rc,}
|
|
|
|
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
|
|
|
|
NO_BUILD= yes
|
|
USE_PYTHON= yes
|
|
USE_WX= 2.6+
|
|
WX_COMPS= python:run
|
|
|
|
OPTIONS_DEFINE= ADULT AMAROK TOTEM VLC XINE AUDACIOUS BEEP_MEDIA_PLAYER
|
|
ADULT_DESC= non-censored TV listings
|
|
AMAROK_DESC= use amarok instead of mplayer
|
|
TOTEM_DESC= use totem instead of mplayer
|
|
VLC_DESC= use vlc instead of mplayer
|
|
XINE_DESC= use xine instead of mplayer
|
|
AUDACIOUS_DESC= use audacious instead of xmms
|
|
BEEP_MEDIA_PLAYER_DESC= use beep-media-player instead of xmms
|
|
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
MAN1= tunapie.1
|
|
.endif
|
|
|
|
PLIST_SUB+= DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"
|
|
|
|
FIND_FILES= -type f -and \( -name "install.sh" -or -name "*.py" \)
|
|
|
|
NO_STAGE= yes
|
|
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|%%PYTHON_CMD%%|${PYTHON_CMD}|g' \
|
|
-e 's|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g' {} ";" \
|
|
|
|
do-install:
|
|
@${MKDIR} ${DESKTOPDIR}
|
|
@cd ${WRKSRC} && ./install.sh ${ADULT_TVLIST}
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
@${CP} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
|
|
.endif
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MADULT}
|
|
ADULT_TVLIST= --adult
|
|
.endif
|
|
|
|
# default VIDEOPLAYER
|
|
.if ${PORT_OPTIONS:MAMAROK}
|
|
RUN_DEPENDS+= amarok:${PORTSDIR}/audio/amarok
|
|
.elif ${PORT_OPTIONS:MTOTEM}
|
|
RUN_DEPENDS+= totem:${PORTSDIR}/multimedia/totem
|
|
.elif ${PORT_OPTIONS:MXINE}
|
|
RUN_DEPENDS+= xine:${PORTSDIR}/multimedia/xine
|
|
.elif ${PORT_OPTIONS:MVLC}
|
|
RUN_DEPENDS+= vlc:${PORTSDIR}/multimedia/vlc
|
|
.else
|
|
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
|
|
.endif
|
|
|
|
# default AUDIOPLAYER
|
|
.if ${PORT_OPTIONS:MAUDACIOUS}
|
|
RUN_DEPENDS+= audacious:${PORTSDIR}/multimedia/audacious
|
|
.elif ${PORT_OPTIONS:MBEEP_MEDIA_PLAYER}
|
|
RUN_DEPENDS+= beep-media-player:${PORTSDIR}/multimedia/beep-media-player
|
|
.else
|
|
RUN_DEPENDS+= xmms:${PORTSDIR}/multimedia/xmms
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|