2013-05-06 12:22:41 +02:00
|
|
|
# Created by: Lewis Thompson (purple@lewiz.net)
|
2004-11-23 23:31:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= freevo
|
2009-06-01 21:56:31 +02:00
|
|
|
PORTVERSION= 1.9.0
|
Update to libmpc version 1.0.1 which brings the following fixes:
- 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)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 8
|
2004-11-23 23:31:56 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Freevo%20releases/${PORTVERSION}
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2007-03-16 10:54:14 +01:00
|
|
|
MAINTAINER= fbsd@opal.com
|
2004-11-23 23:31:56 +01:00
|
|
|
COMMENT= Open source digital jukebox
|
|
|
|
|
2009-02-02 04:24:19 +01:00
|
|
|
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
|
|
|
|
mencoder:${PORTSDIR}/multimedia/mencoder \
|
|
|
|
aumix:${PORTSDIR}/audio/aumix \
|
|
|
|
tv_cat:${PORTSDIR}/textproc/p5-xmltv \
|
2011-09-29 23:18:00 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}zope.interface>=3.3.0_1:${PORTSDIR}/devel/py-zope.interface \
|
2009-02-02 04:24:19 +01:00
|
|
|
${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml \
|
|
|
|
${PYTHON_SITELIBDIR}/kaa/__init__.py:${PORTSDIR}/multimedia/py-kaa-base \
|
|
|
|
${PYTHON_SITELIBDIR}/kaa/imlib2/__init__.py:${PORTSDIR}/multimedia/py-kaa-imlib2 \
|
|
|
|
${PYTHON_SITELIBDIR}/kaa/metadata/__init__.py:${PORTSDIR}/multimedia/py-kaa-metadata \
|
2012-07-31 15:38:28 +02:00
|
|
|
${PYTHON_SITELIBDIR}/BeautifulSoup.py:${PORTSDIR}/www/py-beautifulsoup32 \
|
2004-11-23 23:31:56 +01:00
|
|
|
${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
|
|
|
|
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
2009-02-02 04:24:19 +01:00
|
|
|
${PYTHON_SITELIBDIR}/Numeric/Numeric_headers/__init__.py:${PORTSDIR}/math/py-numeric
|
|
|
|
|
|
|
|
FREEVO_USER= freevo
|
|
|
|
FREEVO_GROUP= ${FREEVO_USER}
|
|
|
|
FREEVO_UID= 523
|
|
|
|
FREEVO_GID= ${FREEVO_UID}
|
|
|
|
FREEVO_HOME= /var/db/${FREEVO_USER}
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2011-01-20 14:58:54 +01:00
|
|
|
SUB_LIST+= PYTHON_VERSION=${PYTHON_DEFAULT_VERSION} \
|
|
|
|
PORTVERSION=${PORTVERSION} \
|
2009-02-02 04:24:19 +01:00
|
|
|
FREEVO_USER=${FREEVO_USER} \
|
|
|
|
FREEVO_GROUP=${FREEVO_GROUP} \
|
|
|
|
FREEVO_UID=${FREEVO_UID} \
|
|
|
|
FREEVO_GID=${FREEVO_GID} \
|
|
|
|
FREEVO_HOME=${FREEVO_HOME}
|
|
|
|
SUB_FILES= pkg-message pkg-install pkg-deinstall
|
2006-08-12 08:17:37 +02:00
|
|
|
|
2013-12-15 17:22:17 +01:00
|
|
|
USES= twisted:web
|
2004-11-23 23:31:56 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2013-12-15 17:22:17 +01:00
|
|
|
PYDISTUTILS_INSTALLNOSINGLE= yes
|
|
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
|
|
PYDISTUTILS_SETUP= ${PYSETUP}
|
|
|
|
|
|
|
|
PLIST_SUB= PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2009-02-02 04:24:19 +01:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
RC_SCRIPT= ${PREFIX}/etc/rc.d/${PORTNAME}
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2009-02-02 04:24:19 +01:00
|
|
|
CONFDIR= ${PREFIX}/etc/${PORTNAME}
|
2009-06-01 21:56:31 +02:00
|
|
|
DATADIR= ${PREFIX}/share/${PORTNAME}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2013-09-20 22:57:48 +02:00
|
|
|
NO_STAGE= yes
|
2013-05-06 12:22:41 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2009-06-01 21:56:31 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2013-05-06 12:22:41 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2009-06-01 21:56:31 +02:00
|
|
|
.endif
|
2004-11-23 23:31:56 +01:00
|
|
|
|
|
|
|
post-patch:
|
2013-05-06 12:22:41 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
2010-05-31 23:38:16 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| freevo_locale| # freevo_locale|' ${WRKSRC}/${PORTNAME}
|
|
|
|
@${MV} ${WRKSRC}/i18n ${WRKSRC}/i18n-nls-disabled
|
2009-06-01 21:56:31 +02:00
|
|
|
.endif
|
2004-11-23 23:31:56 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/freevo_config.py
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/local_conf.py.example
|
2010-05-31 23:38:16 +02:00
|
|
|
@${MV} ${WRKSRC}/src/www/htdocs/favorites.rpy.orig ${WRKDIR}
|
2011-01-20 14:58:54 +01:00
|
|
|
@${MV} ${WRKSRC}/src/www/htdocs/search.rpy.orig ${WRKDIR}
|
|
|
|
@${RM} ${WRKSRC}/src/www/htdocs/fileinfo.rpy.orig ${WRKSRC}/src/www/htdocs/guide.rpy.orig \
|
|
|
|
${WRKSRC}/src/www/htdocs/guidechannel.rpy.orig ${WRKSRC}/src/www/htdocs/proginfo.rpy.orig \
|
|
|
|
${WRKSRC}/src/www/htdocs/vlcwin.rpy.orig
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2013-12-15 17:22:17 +01:00
|
|
|
do-configure:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2004-11-23 23:31:56 +01:00
|
|
|
post-install:
|
2009-02-02 04:24:19 +01:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
${MKDIR} ${CONFDIR}
|
|
|
|
${CHMOD} a+rx ${CONFDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/local_conf.py.example ${CONFDIR}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-11-23 23:31:56 +01:00
|
|
|
|
2009-04-22 02:46:42 +02:00
|
|
|
.include <bsd.port.mk>
|